Sakthivadivel Posted April 29, 2017 Share Posted April 29, 2017 Hi, I have developed a game using phaser js while the playing the game for 15 to 20 minutes continously it shows the error message "A problem occurred with this webpage, so it was reloaded." in iPad 4,iOS 9.2.1 , iPad Air, Nexus 7 , Android 6.0 but in Desktop its working fine.How to fix it? Can anyone help me... Thanks, Sakthi Link to comment Share on other sites More sharing options...
MikeW Posted April 29, 2017 Share Posted April 29, 2017 I would load the task manager on the desktop and look to see if there is a memory leak. The desktop should be able to handle a memory leak much longer then the mobile devices as it has access to more ram. How much memory/cpu is the browser using at first versus after an hour. Link to comment Share on other sites More sharing options...
SeelenGeier Posted April 29, 2017 Share Posted April 29, 2017 Do you add a lot of sprites? Try destroying sprites instead of killing them or better reuse killed sprites with revive if possible. Do you have a link to the game for us? Link to comment Share on other sites More sharing options...
Sakthivadivel Posted May 2, 2017 Author Share Posted May 2, 2017 Hi MikeW, Thanks for your reply.I check the cpu usage while playing the game.While starting the game the CPU -16 % and the memory is 52% after one hour it becomes 28% and 59% respectively... Link to comment Share on other sites More sharing options...
Sakthivadivel Posted May 2, 2017 Author Share Posted May 2, 2017 Hi SeelenGeier, Thanks for your reply.Yes I have lot of sprites and actually I am not killing the sprites I have do it with destroy() only... Link to comment Share on other sites More sharing options...
Recommended Posts