版本

menu_open
Wwise SDK 2022.1.12

◆ TrimForThread()

AKSOUNDENGINE_API void AK::MemoryMgr::TrimForThread ( )

Allows you to "trim" a thread being used with the memory manager. This is a function that will be called periodically by some Wwise-owned threads, so that any thread-local state can be cleaned up in order to return memory for other systems to use. For example, this can be used to return thread-local heaps to global stores or to finalize other deferred operations. This function is only required for optimization purposes and does not have to be defined. Therefore, unlike TermForThread, this is not expected to be called in all scenarios by Wwise. It is also recommended to be called by game engine integrations in any worker threads that run Wwise jobs. Refer to 使用 Job Manager 时的最佳做法 for more information.

参见

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅