Max Instances doesn't seem to work as intended

I’m having trouble getting the desired result from the Max instances setting on an event. I have a radio receiver event which occasionally is triggered to play when a vehicle in a city is spawned. In Unreal, every non player car has this radio receiver component on them, but on spawning, There is currently a one in 10 chance that it will play this radio receiver event.

There is a global radio in the game and this radio receiver event exists to receive the signal of this radio using an F mod transceiver effect, and play the radio from the position of the vehicle as it drives around. I only ever want one of these radios to be audible at a time, so I have set its Max instances setting to one with stealing setting “furthest”. with this, I get the result I want - occasionally a vehicle can be heard playing the radio.

When I check the FMOD profiler however I often see there are many more than one instance playing. Is this right? I would expect to only ever see one lifespan visible in the profiler, occasionally cut off when a new one begins.


I will test it again when I get the chance, but now in the blueprint I explicitly tell the radio receiver instance to be released when it stops. Maybe this will help (And I should have done it anyway), but it would still be good to know If my thinking is on the right track in the first place.

Thanks!

Hi,

Thanks for the bug report - this definitely isn’t expected behavior, and I’ve passed it on to the development team for further investigation. Explicitly stopping and release the instance from the blueprint should work around this behavior. Just to confirm though, in my reproduction of this issue, FMOD will log the following warning:

EventInstance::update(): Event has waited 10.0 seconds for DSP graph to go idle - check for plugins that may be keeping it active

Can I get you to confirm whether you’re also seeing this on your end in UE’s output log? You may need to enable API error logging and set FMOD’s logging level to “LOG” in order for the warning to show up.