버전
Before defining the advanced settings for your objects, you may want to review the following sections, which provide you with a series of tips and best practices that can help you get the results you want.
Set music objects to higher priority - in most cases, the music objects in your game should have a higher priority than other objects. This will ensure that your music plays back continuously in situations when many objects are triggered and the playback limit is surpassed.
Kill short Sound SFX when they fall below Volume Threshold - in most situations, you should use the Kill voice option for short sound SFX that fall below the volume threshold because sending them to the virtual voice list will do either of the following:
If Play from beginning or Resume is selected, the sound will most likely be played outside its original context.
If Play from elapsed time is selected, CPU will be used uselessly for a sound that will likely die as a virtual voice.
Before deciding which virtual voice option to use, you should be aware of the virtual voice settings' memory and CPU usage:
Play from beginning - This option uses a small amount of memory and CPU, but if the sound is streamed, there may be a delay when it returns from the virtual voice.
Play from elapsed time - This option can save some CPU and memory, but if the sound is streamed, there may be a delay when it returns from the virtual voice.
Resume - This option uses a smaller amount of CPU but a larger amount of memory because it keeps the memory buffers on hold for when the sound returns from the virtual voice. Be aware that if a sound never returns from the virtual voice because it never re-enters the radius, the memory buffers will remain in memory for the length of the game. If this occurs for many sounds, the memory buffers will accumulate over time and may end up taking a significant amount of memory in the game.
The following illustration displays the memory and CPU usage for each of the virtual voice options in relation to each other and to the Continue to Play option:
Of course, when you take into account a sound's audio format, sample rate, streaming settings, and so on, the differences between these options can go from negligible to very large.
Always Calculated |
Not Calculated When Virtual |
---|---|
|
|
Note | |
---|---|
Most of the time, buffers of audio data are freed when the voice becomes virtual, except for the Resume behavior. |
Note | |
---|---|
Effects on busses of the Master-Mixer Hierarchy are processed only when there is at least one physical voice playing through this bus. |
When using instance limiting with music objects, be careful not to set the limit too low because it may prevent certain clips from playing causing breaks or cuts in your music. Remember that when fading and switching between Music Segments, you can easily use up several instances, with the different pre-entry and post-exit parts of one or more clips within each segment, as well as any Stinger segments that might be playing.
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요