Loading resources in background thread

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
limesX
Gnoblar
Posts: 17
Joined: Mon Nov 12, 2012 3:05 pm
x 2

Loading resources in background thread

Post 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
loath
Platinum Sponsor
Platinum Sponsor
Posts: 290
Joined: Tue Jan 17, 2012 5:18 am
x 67

Re: Loading resources in background thread

Post by loath »

from al2950's response on the other thread it sounds like 2.1+ does not support the old style background loading.
limesX
Gnoblar
Posts: 17
Joined: Mon Nov 12, 2012 3:05 pm
x 2

Re: Loading resources in background thread

Post by limesX »

It appears so.
Anyone tried to implement this on 2.1 or 2.2 version? Any code examples?
Post Reply