sonobus
sonobus copied to clipboard
Sonobus as Unity Audio Plugin causing terrible performance
I built out Sonobus as a Unity Audio Plugin in Projucer > Visual Studio, using the SonoBus.jucer file (and not tweaking any settings). It was imported and unloaded successfully into Unity but it causes serious CPU related performance issues:
(A process taking on average 1000ms to complete every frame, reducing the frame rate of an empty scene from 2500 fps to 1fps)
- I tried disabling the GUI/Editor related code but the problem persisted.
- I disabled Unity Audio under Project Settings > Audio and performance immediately went back to normal.
- I also tried building out some of the other Projucer Plugin Examples as Unity Audio Plugins and they performed as expected.
I believe some audio process within Sonobus is not playing nicely with Unity. Does anyone have any ideas? Or tried/succeeded with building Sonobus as a Unity Audio Plugin?
I have not tried Unity plugin stuff at all.... and probably don't really have time to troubleshoot this... but maybe some profiling should point you to the trouble spot...
Just FYI, I have just switched over to CMake (from projucer) in the develop branch (for mac/win/linux) and am about to merge it to main....
Why would you wanna use SonoBus as a Unity plugin? Do you wanna use it for multiplayer voice chat? That seems excessive. If you insist, perhaps it it possible for Unity to use other plugin formats like VST, that would yield better performance.