Edouard Posted November 18, 2018 Share Posted November 18, 2018 Hi, In my game "Left 4 Dead" I have a memory leak, yet I cannot find it. I am not used to finding memory leaks, but I've really tried my best and I'm starting to give up ever finding it. I've been at it for a couple of days now I am using Phaser 3, and I think that my memory leak is related to Zombies that I generate quite a lot during waves of enemies. Here is the game if you wanna take the time to help me out: https://strayeddy.github.io/ Link to comment Share on other sites More sharing options...
tips4design Posted November 18, 2018 Share Posted November 18, 2018 Take a heap snapshot at the start, take a heap snapshot after some time (after some memory leaked) and compare the snapshots, see what objects are actually leaked. Link to comment Share on other sites More sharing options...
Edouard Posted November 18, 2018 Author Share Posted November 18, 2018 1 hour ago, tips4design said: Take a heap snapshot at the start, take a heap snapshot after some time (after some memory leaked) and compare the snapshots, see what objects are actually leaked. I did. I did not come here without trying to find the memory leak on my own for at least 8 hours, trust me. Link to comment Share on other sites More sharing options...
Recommended Posts