Page 1 of 1

Loading resources in background thread

Posted: Mon Oct 28, 2019 1:28 pm
by limesX
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

Re: Loading resources in background thread

Posted: Mon Oct 28, 2019 7:36 pm
by loath
from al2950's response on the other thread it sounds like 2.1+ does not support the old style background loading.

Re: Loading resources in background thread

Posted: Mon Oct 28, 2019 9:49 pm
by limesX
It appears so.
Anyone tried to implement this on 2.1 or 2.2 version? Any code examples?