Best way to use 3D audio while maximizing performance?
Hi, I was wondering what the most efficient method is for using the Oculus Audio SDK to create sound in Unity. Currently I have disabled 3Daudio prefabs placed in the scene, and activate them when I need them to play (disabling them after a certain amount of time). I've noticed that this is causing drops as high as 4 FPS.
Another solution I've thought of is to spawn the prefabs at a location via Instantiate, but I figure that will be even more performance intensive. Yet another possible solution is keeping the 3Daudio prefabs enabled, but calling the audio.Play() function when they are needed. However, wouldn't having the audio objects just sitting in the scene also cause performance overhead?
What are your guys' solutions for using 3D audio without FPS drop?
Another solution I've thought of is to spawn the prefabs at a location via Instantiate, but I figure that will be even more performance intensive. Yet another possible solution is keeping the 3Daudio prefabs enabled, but calling the audio.Play() function when they are needed. However, wouldn't having the audio objects just sitting in the scene also cause performance overhead?
What are your guys' solutions for using 3D audio without FPS drop?
