Leçon 6

Table des matières

Memory Usage

To reduce the amount of memory loaded, you can split your big SoundBanks into smaller SoundBanks. By doing so, you’ll reduce the memory usage significantly at runtime. Let’s first get an estimate of the current SoundBank memory usage when everything is loaded, and we’ll then compare it with the more optimized loading of SoundBanks.

  1. From the WAG Unity project’s Audiokinetic menu, go to Certification > 251 > Lesson 6 and select All In One.

  2. Click Play.

  3. Switch to the WAG Wwise project, click the Remote… button in the toolbar.

  4. In the Remote Connections’ Available tab, double-click on the running WAG game.

  5. Head back to the Unity project and click Play to exit play mode.

  6. In the Wwise project, go to the Layouts menu and select Profiler.

  7. In the Advanced Profiler, select the SoundBanks tab.

In the list under All_In_One, you’ll see it has a memory usage of ~16.9 MB in the Object Memory column. Throughout this lesson, you'll separate the All_In_One SoundBank into smaller SoundBanks that will be loaded and unloaded when necessary. It will not reduce the total size of the SoundBanks, but less audio content will be loaded constantly, which reduces the runtime memory required for audio.


Cette page a-t-elle été utile ?