I faced with memory limitation. Thus my approach is to load and use some textures first, then some other textures which aren’t needed right now will be loaded just-in-time when I need it, but of course I have to clear all previous loaded textures first to make a room for it.
The point is that I need to do this pretty smooth. I think I use multi-threading.
So my question is “Is it safe to use CCSpriteFrameCache to load additional spritesheet in seperate thread?”.
I knew that cocos2d-x is not thread-safe, but my strategy is to use as minimum of cocos2d related classes in separate thread as much. When I finish loading, I will continue creating a new CCSprite or anything represents my objects in a main normal thread.