Closed genevictor closed 13 years ago
Hi genevictor, OpenGenius works on the gc problem.
Thanks, Weikkuan Zhou
2011/4/28 genevictor < reply@reply.github.com>
Please consider if these two changes could help speed up gc by early removing strong references to potentially orphan nodes. In my testing project which a huge scene hierarchy takes up lots of memory and many actions perform within, was never garbage collected after replaced by next smaller scene. After paying a whole night with Memory Analzyer there were two findings.
- Some of the Nodes which performed actions in the huge scene is retained by the pool in ActionManager. After applying this fix gc really able reclaim the huge scene.
- CCLabel's setString uses texture.setLoader which cause strong reference in GLResourceLoader's WeakHashMap entry. I can't think of a fix, any help will be appreciated.
Reply to this email directly or view it on GitHub: https://github.com/ZhouWeikuan/cocos2d/pull/10
Please consider if these two changes could help speed up gc by early removing strong references to potentially orphan nodes. In my testing project which a huge scene hierarchy takes up lots of memory and many actions perform within, was never garbage collected after replaced by next smaller scene. After paying a whole night with Memory Analzyer there were two findings.