Profiler how ridiculous Audio Memory usage

Helllo there!

So, one of our players can’t play our game, since his 8 GB RAM runs out of memory. Diving into the profiler, I found something really weird.
As seen in the Screenshot below, (taken in the moment the main game loads) I paused the game to see where the huge memory overhead came from.
Weirdly enough, the profile says the 1.09 GB used memory are for audio - but all audio files that are in the editor (seen to the right and below) have a combined size of 200 mb…

Any ideas how I can reduce that overhead?

Thanks in advance!

P.S. I hope this is the right subsection of the forum!

File size of assets has absolutely no correlation with their memory usage. What’s more important is how many AudioClips are currently playing, how much memory playback and streaming buffers require, and of course the “Decompress on Load” setting. As you can imagine, this makes the audio clip larger in memory, easily 5-10 times as much depending on format and compression settings.

That’s a good call!
Also if you have large audio files, like soundtracks, I recommend you use the “Streaming” load option to minimize their memory footprint.

1 Like