Jump to content

Move callback crashes application after some time passes


Recommended Posts

Hi all, 

I have a custom object extending Phaser Sprite and In it, I'm attaching moveCallback that updates object position according to pointer position. 

This move callback is deleted after action button is pressed. But as there is not time span in which button should be pressed, if user moves around too long eventually tab will pile up memory, hit 4GB of RAM and crash.  

So what would be a smart/correct way to cleanup this memory as it doesn't get cleared while move callback is active and even when I delete move callback, so it's major performance issue that I need to solve. 

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...