버전
Wwise Unreal Integration Documentation
|
Memory management is an important part of working with the Wwise Unreal Integration. For background on memory management in Wwise, refer to Optimizing Memory Allocation and Tips to Reduce Memory Usage.
Memory usage in the Wwise Unreal Integration is strongly affected by the type of SoundBank your project uses:
For more information about the differences between auto-defined and user-defined SoundBanks, refer to Managing SoundBanks.
As described in the previous section, Wwise media Assets are loaded in memory when the SoundBanks that reference or contain them are loaded. The media is unloaded when both of the following conditions are met:
In certain situations, the Wwise sound engine might still need a media asset after its associated Unreal assets are destroyed. For example, there might be a reverb tail that continues for several frames after the sound stops.
In integrated projects, some items are loaded in Wwise memory and others are loaded in Unreal. Because memory usage is divided between Wwise and Unreal, you have to monitor memory in each program to obtain a complete picture of memory usage. In Wwise, you can use the Advanced Profiler to view memory allocated by Wwise (see Advanced Profiler). In Unreal, use the Wwise Memory Stats to monitor memory allocated by Unreal.
Each item's memory location is passed to Wwise through either the LoadBankMemoryView or LoadBankMemoryCopy function. LoadBankMemoryView
is not shown in Wwise, but LoadBankMemoryCopy
is.
The function that is used and the memory location both vary depending on how your Events and media are structured:
LoadBankMemoryView
.LoadBankMemoryCopy
.The Wwise Unreal Integration enables several options in Unreal Stats that monitor Wwise memory usage, including several items in the WwiseMemory category. You can view the stats as an overlay in the editor or through the Session Frontend. For more information about Unreal Stats, see Stat Commands.
The following Wwise memory statistics are available, which you can view in different places in Unreal:
Through the Unreal Stats, you can view Wwise memory usage information in the Unreal Editor's level viewport.
To view Wwise memory usage:
In the viewport, open the menu in the upper left and select Stat > Wwise > WwiseMemory. The Unreal memory monitor opens in the viewport and displays Wwise memory usage statistics.
The Unreal Session Frontend includes a Profiler, in which you can view the Wwise memory Stats. For more information about the Session Frontend, see Unreal Frontend.
To view Stats in the Session Frontend:
Enable Data Capture and Data Preview. You can select any of the WwiseMemory Stats:
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요