-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sprite Animations are not removed completely. #1449
Comments
Can you prove this through with a profile dump / timeline evidence please. |
I have added in some extra checks and reference clearing in the dev branch, so if you could build and test against that it'd be good thanks |
Ok I tested this against 2.3-dev. The example I used creates 1 new looped animated sprite every 50ms. I let it run until it had destroyed 2500 sprites and checked the memory profile in dev tools and it was fine - a bit of gc every 30 seconds or so, but memory never went beyond 21MB. So I'm happy this is resolved.
|
There is a problem with memory leak. When you will add looped animation to the sprite, it somehow holds the sprite in memory after using sprite's destroy method preventing garbage collector to free the memory.
The text was updated successfully, but these errors were encountered: