We’re creating a game using the HTML5 framework (v2.1.0) for PC and iPad.
The game consists of only a few sprites and a few HUD elements, this runs stable @60 fps on the iPad2 in safari.
But we’re noticing a major frame drop when we try to play a simple sound effect. (from 60 to 15-20 fps when a single sound effect starts playing.)
We are using 3 different audio files:
HUD_select.mp3, HUD_select.ogg and HUD_select.wav, with 128kbps bitrate. (Of which the iPad seems to load the mp3 file)
We’re preloading the audio using the following line:
The effect is started using the following line:
Are we missing something? Or is there a way to improve the performance of the AudioEngine?