Hi,
I am working on Phaser 3 version. I have made both desktop view and mobile view versions of my game but it is lagging a lot in mobile version… on searching I found that it is due to memory leak. Now I have tried .destroy() method to destroy the registry but it did not work either. Could you help me find a work around? I have been searching on this past 2 weeks.
What memory leak did you find?
This is the snapshot of memory I took… It keeps growing each time and I do not know how to find which code is making a problem. I am new to phaser and javascript so please guide me
hi Mahnoor0,
have you any code that you can share with us to see whats going on?
Only a snapshot of the top-level-objects wont help here.
it sounds like some loop / update-problem if it gets slower and slower.
or did it start slow allready?
Hi @Puccini thank you for your feedback but I found the solution. It was due to canvas and webgl difference. Fps changes on canvas at some devices so using Phaser.AUTO worked for me.
I found the solution here: How to improve performance on mobile - Phaser 2 - HTML5 Game Devs Forum