Hey guys
I’m trying to play some sound effects in my game (iOS) unfortunately the performance are really really bad…
I have the impression that the sound is loaded in memory before each play…
I’m not sure how to manually manage the memory for audio clip in unity (actually does it even make sense ?)
I was actually expecting this to be managed directly by unity so I believe I must be missing something…
I’ve tried heaps of different solutions…
using playOneShot on an AudioSource component
using the static PlayClipAtPoint function (on AudioSource)
using Play directly on a AudioClip (member of my gameobject)
so far I always have the same performance issue (even in the editor actually, when I display the graphics stats, sometimes a frame would go up to 20ms instead of just 3ms…)
my sounds are in wav format so they should not require any decompression (the sound I use for testing is also pretty small : less than a second long)
from the unity documentation, it seems to be the fastest way to play a sound…
I’ve forced them to mono in order to save a bit of memory and the load type is “decompress on load”
anyway I’m pretty confused and would be happy with any help you could provide
cheers
oX