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

Garbage collector for webgl renderer #261

Open
xvrh opened this issue Feb 1, 2017 · 2 comments
Open

Garbage collector for webgl renderer #261

xvrh opened this issue Feb 1, 2017 · 2 comments

Comments

@xvrh
Copy link
Contributor

xvrh commented Feb 1, 2017

Hello Bernhard,
Pixi.js has this "texture gargabe collector":
https://github.com/pixijs/pixi.js/blob/dev/src/core/renderers/webgl/TextureGarbageCollector.js

It seems to be about disposing texture when there are not in the stage anymore.

I'm thinking that it could be a good idea for TextField or _DisplayObjectCache.
If the developer forget to call the "dispose" method after removing them from the Stage would it create a memory leak?

Do you think this can be usefull for StageXL too?

@bp74
Copy link
Owner

bp74 commented Feb 1, 2017

I need to look at the PixiJS implementation what this actually does. WebGL textures should be garbage collected by the browser if there are no references anymore, but maybe this can be improved by the TextureGarbageCollector. I will take a look at it! Thanks for the suggestion.

@mnordine
Copy link
Contributor

mnordine commented Feb 1, 2017

I wonder if this is related to #257?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants