Hi All,
My Game has several STATES where in each state uses a bunch of “*.csb” scenes.
These scenes are added as childrens to a RootSceneNode. Hence navigation between views is faster in a STATE, as the scenes are already loaded in Memory.
So every time i change STATE i’m trying to load a this bunch of “.csb” files that are a part of that particular STATE, in a different thread that i’ve spawned using the following line of code:
std::async(std::launch::async, &CocosSceneManager::ThreadLoaderFunc, &CocosSceneManager::Get());
My ThreadLoaderFunc() runs through all the “.csb” that are needed be loaded in a loop.
I’m getting a CRASH somewhere in cocos2d:
:createSpriteFromSystemFont()…
Any pointers regarding this if I’m doing stuff in a wrong way or if it can be improved, will be greatly appreciated !
Thanks in advance.
- Aalekh.
PS: Callstack attached for reference :
