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

Memory utilization #3137

Closed
ishmulyan opened this issue Oct 6, 2015 · 0 comments
Closed

Memory utilization #3137

ishmulyan opened this issue Oct 6, 2015 · 0 comments

Comments

@ishmulyan
Copy link
Contributor

When load image by cc.loader.load(), registered loaders (_cc.imgLoader and _cc.serverImgLoader) automatically create texture for image by complete loading and add it into cc.textureCache.
In my opinion this is not clearly, because cc.loader.release() didn't clear texture from cache and reference for image still store into texture cache and gc can't unload image from memory. We should be additionaly clear image from texture cache.
Should be cc.loader.release() clear image from cc.textureCache?

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

No branches or pull requests

1 participant