0
0

I’m on the iPhone.

Is there a requirement or an ideal frequency to call FMOD_System_Update?

I’m chasing down some sound latency issues in my multi-threaded app. (I realize FMOD is not threadsafe. All FMOD interaction happens in one thread. The UI is in the main app thread.)

I’m currently calling FMOD_System_Update as infrequently as 64 times/second (16 ms) or as frequently as 320 times/second (3 ms). Should this matter?

  • You must to post comments
0
0

We don’t have an ideal rate in which you should call System::update() it generally comes down to how much granularity you require. If you look at the docs under System::update() it lists the things that it does, for instance, callbacks, 3d positioning and virtual voice updating.

Generally it should be once for game tick / frame, I wouldn’t be calling it every 3ms unless you have a very specific reason. The example apps call it every 50ms because there is no requirement for low granularity, but if you need a ballpark figure 20ms is usually a good choice.

Also it’s worth noting that all the sound mixing and output latency is driven by a separate mixer thread that works independently of System::update(), calling it more frequently will not reduce mixing delays.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.