SpriteFrameCache怎么清理缓存,试过removeSpriteFrames,destoryInstance(),xcode里的Memory没减少。还有如果有很多plist文件,Memory会很多,这种情况怎么优化?
可以将plist存入map里,不用时将特定的plist删除就行
你可以看看spriteframecachehelper这个类
但是要注意的是清理完spriteframe后要回收下纹理内存
纹理内存?TextureCache?
这样可以?SpriteFrameCache::getInstance()->removeSpriteFramesFromFile(<#const std::string &plist#>) 我用这个怎么不管用