-
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: I think this might be the source of the problem. Can you please check and confirm? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Lzrs111 Yup I think you spotted a memory leak! I can confirm this behavior locally. I'm looking at the code and I think I've spotted the issue. ![]() |
Beta Was this translation helpful? Give feedback.
@Lzrs111 Yup I think you spotted a memory leak! I can confirm this behavior locally.
I'm looking at the code and I think I've spotted the issue.