Sign in to follow this  
Followers 0
Ashwini

Phaser Memory Leak Issue

1 post in this topic

Hi All, In my phaser game when I play audio and change game state,  its memory usage goes overflow and chrome browser gets crash. please advise.

     for (var i = 0; i < objModel.audioArr.length; i++) 
    {
        objModel.audioArr.pause();
        objModel.audioArr.destroy(true);
        objModel.audioArr=null;
    }
         objModel.audioArr=[];

state.start('PhaserPreloader');

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.