Loading resources in background thread
Posted: Mon Oct 28, 2019 1:28 pm
Hi.
I am trying to achieve background resource loading in background thread.
I am using Ogre 2.2 build. I tried both builds with OGRE_THREAD_SUPPORT = 1 and OGRE_THREAD_SUPPORT = 2.
Same thing happens no metter if I am using my custom loading base on Ogre::WorkQueue or using Ogre's built in ResourceBackgroundManager class.
I just tried to load single material from material script. Always get the same error in ScriptCompilerManager::parseScript function when executing this part: if (!OGRE_THREAD_POINTER_GET(mScriptCompiler)).
Error is: vector iterator not dereferencable.
Any ideas ?
Thx
I am trying to achieve background resource loading in background thread.
I am using Ogre 2.2 build. I tried both builds with OGRE_THREAD_SUPPORT = 1 and OGRE_THREAD_SUPPORT = 2.
Same thing happens no metter if I am using my custom loading base on Ogre::WorkQueue or using Ogre's built in ResourceBackgroundManager class.
I just tried to load single material from material script. Always get the same error in ScriptCompilerManager::parseScript function when executing this part: if (!OGRE_THREAD_POINTER_GET(mScriptCompiler)).
Error is: vector iterator not dereferencable.
Any ideas ?
Thx