Skip to content
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

FlxCamera memory leak #176

Open
erlioniel opened this issue Sep 11, 2013 · 2 comments
Open

FlxCamera memory leak #176

erlioniel opened this issue Sep 11, 2013 · 2 comments
Assignees
Labels

Comments

@erlioniel
Copy link

Memory leak in FlxCamera. For example:

var i : int = 100;
while(i--) {
    var cam:FlxCamera = new FlxCamera(0,0,FlxG.width,FlxG.height);
    FlxG.addCamera(cam);
    FlxG.removeCamera(cam, true);
}

After this code in stage create memory usage over 100 mb. Also work with FlxG.resetCameras();

@erlioniel
Copy link
Author

Leak detected in function FlxG.createBitmap() cache.

@Dovyski
Copy link
Member

Dovyski commented Sep 13, 2013

Thanks for the report and the valuable clue, @erlioniel ! We will check that soon.

@ghost ghost assigned Dovyski Sep 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants