mileung Posted August 27, 2015 Share Posted August 27, 2015 I have a game that is only 11mb right now, but after finally wrapping the game with CocoonJS, I noticed the the game would go from 60fps to <15fps in about 10 seconds. I think the only way the game could be slowing down is having something like an infinite array; I have an array that I push to to get the direction of a swipe, then I set that array to an empty array to prevent an infinite array. Link to comment Share on other sites More sharing options...
Skeptron Posted August 27, 2015 Share Posted August 27, 2015 A memory leak of some sort is very likely to cause your issue. Did you try to completely delete the array? Like delete myVar; But the issue could be elsewhere. You could try Phaser debug plugin or Chrome canvas inspector for more info. Link to comment Share on other sites More sharing options...
Recommended Posts