Audio Optimization

Though audio is not normally a performance bottleneck, you can still optimize to save memory.

Optimizeyourmobilegameperformanceimage8.jpg

Use original uncompressed WAV files as your source assets when possible

If you use any compressed format (such as MP3 or Vorbis), Unity will decompress it, then recompress it during build time. This results in two lossy passes, degrading the final quality.

Compress the clip and reduce the compression bitrate

Reduce the size of your clips and memory usage with compression:

Sound effects on mobile devices should be 22,050 Hz at most. Using lower settings usually has minimal impact on the final quality; use your own ears to judge.

Choose the proper Load Type

The setting varies by clip size.

Unload muted AudioSources from memory

When implementing a mute button, don’t simply set the volume to 0. You can Destroy the AudioSource component to unload it from memory, provided the player does not need to toggle this on and off very often.