Audio preload memory leak

0 favourites
  • 3 posts
From the Asset Store
Memory game, with 10 levels for you to have fun. Made in Construct3, template available for purchase.
  • Link to .capx file (required!):

    pwnsoft.com/c2capx/AudioBug.capx

    Steps to reproduce:

    1. preload audio sound

    2. add event: Audio - All preloads complete - Play audio sound on loop

    3. Run layout

    Observed result:

    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.

    Expected result:

    Sound preloads, plays on a loop, mutes, and then I can unmute when needed.

    Browsers affected:

    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:

    r118

    Other Steps:

    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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hmmm. OK, I'll go back and RTFM. <img src="smileys/smiley9.gif" border="0" align="middle" /> Sorry to waste your time.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)