Exponential instance growth/horrible performance in Unity for seemingly no reason?

From just running the FMOD Engine in my Unity editor for my project, the game runs fine at first, but even without playing a single sound, the number of instances goes up ridiculously high until I literally can’t stop the Unity scene without the entire editor crashing. It goes without saying that the game performance quickly hits hard frame drops.

The number of objects using all of these events total no more than 5-6 GameObjects in the scene. I am using my Master bank in the FMOD Studio project for all of these sound events, and none of them are accessed from an Update() or other per-frame function – they are all situational and context-based, responding to player input or a collision. But even without activating any of those actions, the instance count just skyrockets.

What exactly am I doing wrong here? Attached below is a snippet from the profiler.
Unity 2022.3.3f1, FMOD Studio 2.02.08.

Hi,

Could you please set the Logging Level in the FMOD Settings to Log:
image
then share the Editor log after the editor crashes.

In the profiler if you choose the lifespan option: FMOD Studio | Profiling - Lifespans which will let you know which event(s) is being initiated exponentially. Please check this event(s) are not being triggered unexpectedly.

Hope this helps!

then share the Editor log after the editor crashes.

I can’t, because the Unity editor crashes first.

Here’s an average profile from that session. At no point am I ever playing more than 7-14 voices, which from my amateur knowledge of sound engines doesn’t exactly constitute “max performance” – but the number of instances just keeps rising. Why is this? I play sounds from events.

And what’s with these weird CPU spikes?

By the way – this is after I’ve limited the Max Instances on sound to 1-4, generally.

Either way, I look forward to you helping me resolve this, and thanks for your help. And the free-to-start software! :grinning:

I know I’m not entitled to a reply, but I would really appreciate some help here. I’ll write a post if I solve the issue, but this is super frustrating at the moment. Game is unplayable.

Found the solution.
image
This should be self-evident, but don’t create instances once per frame.

Moved it to Start() and everything was alright. Thank goodness.

Hi,

Thank you for sharing the solution