Hi! Recently I swapped to using a single timeline and magnet regions to swap between ambiences and songs in our game. I’m using several magnet regions, some of which are quantized, and some of which aren’t, for things I want to snap to instantly. The region conditions are using a single “User: Labeled” parameter.
It works, but instead of being instant, the non-quantized transitions still take a long time to trigger, maybe something like 250-500ms if I had to guess. Is this just a limitation of magnet regions or is there anything we can do to make it react faster?
Our previous solution, starting and stopping events ourselves, was instant, so I don’t believe it has anything to do with buffer size.
I’m afraid we’ll need more information to diagnose this issue. Does the issue occur only in-game, or can it be reproduced in FMOD Studio? Are you able to take a video of a session in which this occurs?
I should mention that ~20 ms of latency is expected when using transition markers or magnet regions with parameter trigger conditions, due to the unavoidable limitations of scheduling sample data playback.
The latency demoed in the video i posted seems a lot higher than 40ms, right? I can’t bring it into a video editor at the moment to get a precise number but its almost a whole quarter note at 138bpm, which would be in the ballpark of ~500ms. And the magnet region for “Silence,” which I’m switching to, has no quantization.
Are you able to send us a copy of a project containing an event that exhibits the behavior, so that we can investigate the cause? You can upload packaged projects in the uploads tab of your profile page, provided you’ve registered a game project you’re working on with us.
You can register a game by going to https://www.fmod.com/profile#projects and clicking the “Register new project” button. Registering is free, but gives us a better idea of what kinds of games people are making with FMOD.