Link to .capx file (required!):
Steps to reproduce:
1. preload audio sound
2. add event: Audio - All preloads complete - Play audio sound on loop
3. Run layout
Memory climbs and CPU is almost maxed out on the browser instance. The audio does play as expected but it starts to distort and then slows down as the CPU is bogged down.
Sound preloads, plays on a loop, mutes, and then I can unmute when needed.
Chrome: yes = Version 24.0.1312.57 m
Firefox: yes = Version 18.0.2
Internet Explorer: Yes = Version 9.0.8112.16421
Node-Webkit: Yes = Version bundled with r118
Operating system & service pack:
Win7 SP1, x64
Construct 2 version:
I experimented quite a few times to find the problem, and I believe that the "Audio - All Preloads Complete" is the the culprit here. If I remove that event and just play the audio loop "On start of layout", the audio doesn't play right away when I want it, but it doesn't cause the same issues.
Develop games in your browser. Powerful, performant & highly capable.
Closing as not a bug. The mistake is in your events: 'All preloads complete' is not a trigger, so you will be repeatedly playing sounds 60 times a second, which is the source of the memory leak and high CPU usage.
Hmmm. OK, I'll go back and RTFM. <img src="smileys/smiley9.gif" border="0" align="middle" /> Sorry to waste your time.