menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
I am having performance issues with Queries in the SDK. Whenever I call a Query function, my game thread will stall for a few milliseconds. Is there something I can do?
分类:General Discussion | 用户: Moderator (Audiokinetic) (490 分)
修改于 用户:Moderator (Audiokinetic)

1个回答

+2 投票
 
已采纳
Most calls in the AK::SoundEngine::Query namespace acquire the global sound engine mutex, which can be held for several milliseconds by the sound engine thread. It is therefore recommended to register a AkGlobalCallbackFunc (using AK::SoundEngine::RegisterGlobalCallback) and do the Queries from there, as your function will then be called at each audio frame from inside the audio thread, already holding the mutex.
用户: Moderator (Audiokinetic) (490 分)
采纳于 用户:Adrien L. (Audiokinetic)
...