After connecting to a machine, you can begin to profile the audio and motion FX in your game by capturing data directly from the sound engine. All the information coming from the sound engine is displayed in the Capture Log. An entry is recorded in the Capture Log for the following types of information:
Notifications
Markers(标记)
Events
Actions
Properties(属性)
States(状态)
Switches(切换开关)
SoundBanks
Events Preparation
Error
Messages(消息)
MIDI 事件
API Calls
You can monitor each of these entries using the Performance Monitor and the Advanced Profiler. 这些视图包含有内存、声部和效果器的详细使用情况,以及流播放、SoundBank和插件等相关的详细信息。 For more information on monitoring performance, refer to 使用 Performance Monitor 进行监控和故障排查. You can also get Wwise to parse the data captured and provide you with some statistics on certain audio elements in your game or project. For more information on gathering statistics, refer to 从 Capture Session 获取统计信息.
Wwise 使用以下特殊标记和标颜色,来帮您对 Capture Log 中的条目进行快速分类。
界面元素 |
描述 |
|
---|---|---|
标记 | ||
白色/灰色圆圈
|
The white/gray circles indicate which items in the Capture Log were captured within 100 ms of the Performance Monitor time cursor position. 颜色越白表示条目离光标时间越近。可以按住 Shift 键并点击特定日志条目,强制光标移动至这个条目的时间戳。 |
|
蓝色圆圈
|
蓝色圆圈指示 Capture Log 中的哪些项彼此相关。选择日志中的一个条目时,就会显示相关的蓝色圆圈。 |
|
颜色 | ||
选定条目
|
在 Capture Log 中选定的条目会显示为蓝色。 |
|
相关条目
|
与所选条目相关的所有条目都会显示为蓝绿色。 |
|
Error(错误)
|
在捕获过程期间发生的所有错误都会显示为黄色。 voice starvation (声部匮乏)错误消息表明声音引擎无法及时向平台硬件缓冲区提供音频或振动数据,当过度使用主机 CPU(音频线程 CPU 占用接近 100%)时,就会发生此类问题。例如,当存在大量音频源同时使用多个音频效果器,平台 CPU 进行混音时就可能报错。 Source Starvation(源匮乏)错误消息表明输入的播放流匮乏,很可能是流播放管理器出于某种原因导致吞吐量不足。例如,在 DVD 上寻址时间过长时就会出现此消息。 |
|
Message(消息)
|
所有消息都会以绿色显示。 |
下图说明了各种标记和颜色在 Capture Log 中如何使用。
![]() |
将您的设计和原型集成到游戏中之前,通过在 Wwise 中的 Soundcaster(声音选角器)中直接进行捕获,还可以事先对其进行性能分析。有关使用 Soundcaster 的详细信息,请参阅第 31 章 创建模拟。
![]() |
注意 |
---|---|
Before profiling your game, you should load all unloaded Work Units back into the project. When Work Units are unloaded, the profiling information may be incomplete and possibly misleading. |