Controlling mixing callback

(Florian Eisele) #1


While profiling our game code, I just noticed that “FMOD_OS_Thread_Callback” sometimes kicks in at an inconvenient point of time, totally blocking our worker thread system and ultimately causing a frame drop. Is it somehow possible to control the point of time when the callback may run?

Thanks and best regards,

(Mathew Block) #2

There is no way in the API to control when FMOD threads execute. Some are based on elapsed time, some are servicing asynchronous requests and are thus on demand, others are driven by the sound card.

With a source license you can control the priority of all threads, and for the elapsed time based ones you can control the wake up time.