Debugging High Memory Usage

HI :wave:

I am working an a pretty large game containing lots of scenes and sprite-based gameobjects. I am running in to some memory limitations on mobile devices, specifically tablets with ~2 GB memory. Working with the Chrome Web Developer Tools it looks like there only around ~20 MB of stuff on the heap. However if I profile the running app on an iPad e.g I can see the com.apple.WebKit.WebContent process is taking up 1.3 Gb of memory from just launching a few scenes. Eventually the process gets killed by the OS causing the webview to restart. Same thing happens in the android app. I tried to load the game as a straight webpage instead, and the same thing happens there. So it is nothing pertaining to the cordova wrapper app.

Any insight into debugging issues with high amount of RAM usage much appriciated :raised_hands:

I also encountered this problem,
and I wrote a test

phaser3 switch scene, the memory have no release…