MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / executeUserScalableTask

Method executeUserScalableTask

OgreMain/src/OgreSceneManager.cpp:4468–4481  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

4466 }
4467 //---------------------------------------------------------------------
4468 void SceneManager::executeUserScalableTask( UniformScalableTask *task, bool bBlock )
4469 {
4470 mRequestType = USER_UNIFORM_SCALABLE_TASK;
4471 mUserTask = task;
4472
4473 if( mForceMainThread )
4474 updateWorkerThreadImpl( 0 );
4475 else
4476 {
4477 mWorkerThreadsBarrier->sync(); // Fire threads
4478 if( bBlock )
4479 mWorkerThreadsBarrier->sync(); // Wait them to complete
4480 }
4481 }
4482 //---------------------------------------------------------------------
4483 void SceneManager::waitForPendingUserScalableTask()
4484 {

Callers 4

collectLightsMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateGameEntitiesMethod · 0.80

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected