社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

+6 投票
Unity Version: 2019.4.4f1

Wwise Version: 2019.2.0

We've discovered that AkSoundEngine.UnloadBank does not free up the "Total Reserved Memory" that is allocated by AkSoundEngine.LoadBank and have determined via PIX that we are leaking memory.

We are evaluating the improvements to this area of performance in Wwise 2019.2.9. The Wwise Profiler is reporting less leak than our current version (there's still some undesired allocation though). However, a full upgrade is not ideal because of the amount of effort involved in integrating and testing the changes.

It would be great if we could fix this issue with a custom version of the plugin for our current version of Wwise, but it is unclear if that's feasible with what is available in the SDK or if we would have to do something else.

Any insight into addressing this issue would be helpful.
问题关闭原因: Issue resolved with upgrade
分类:General Discussion | 用户: Anthony L. (250 分)
已关闭 用户:Anthony L.
Not an answer unfortunately, just wanted to add weight to this question by adding that we are also experiencing this in Wwise 2019.2.9, steady reserved memory increases when loading and unloading content (with consistent Used memory, i.e. we are not leaking resources from our code) It may be even worse when preparing from a large number of loose individual events, we've seen leaks of ~5MB on each reload.
We are facing the same issue. We have released a game on multiple platforms and have had reports of the game often crashing on Switch after playing a certain time. In one of our tests which consist of unloading and reloading the same level multiple times, the native heap inspector has shown us that wwise allocates 10MB EXTRA each scene loading even if we verified that we are properly unloading all soundbanks from the previous load. Another test is that we then load an empty scene (and unloading all soundbanks) and this memory still stays allocated.
We are using Wwise 2019.2.5 with Unity 2019.4.12f1.
Any help would be greatly appreciated!
To update my previous post, in a small project, we saw the same issue on wwise 2019.2.5 as when we tested in our game. Upgrading to wwise 2019.2.9 has fixed the issue in the small project. Valid for both PC and Switch so it might be a cross-platform issue.
Our test was to load 10 soundbanks and then unload them. After each unload, we would check the memory stats. Reserved memory kept increasing by 10MB each cycle.

1个回答

0 投票
 
已采纳
Update: We did further evaluation of the 2019.2.9 upgrade and are finding that there's a huge improvement in memory performance (no more leaks!!!).
用户: Anthony L. (250 分)
采纳于 用户:Noemie P. (Audiokinetic)
...