You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making a game which is basically a Vampire Survivors clone - so lots of enemies, projectiles and Actors in general. I've noticed that after a while on mobile especially the game just kinda slows down and crashes. My guess is there's a memory leak somewhere. After checking the code on my side, I can't find any problems, so I decided to take heap snapshots and it seems the Entity Manager _entititiesToRemove array does not get cleared, just gets filled with more entities:
Snapshot 1:
Snapshot2 :
I think this might be the source of the problem. Can you please check and confirm? Thanks
The text was updated successfully, but these errors were encountered:
Discussed in #2715
Originally posted by Lzrs111 August 1, 2023
Hi,
I'm making a game which is basically a Vampire Survivors clone - so lots of enemies, projectiles and Actors in general. I've noticed that after a while on mobile especially the game just kinda slows down and crashes. My guess is there's a memory leak somewhere. After checking the code on my side, I can't find any problems, so I decided to take heap snapshots and it seems the Entity Manager _entititiesToRemove array does not get cleared, just gets filled with more entities:
Snapshot 1:
Snapshot2 :
I think this might be the source of the problem. Can you please check and confirm? Thanks
The text was updated successfully, but these errors were encountered: