added preSynchronization call to renderEngine in openspace engine.

added call to updateCamera for current focus node. (Note that this causes master to be 1 frame ahead of slaves and should be changed)
This commit is contained in:
Joakim Kilby
2015-02-17 08:21:49 +01:00
parent 52e51b76bf
commit 79d8bb40c5
2 changed files with 6 additions and 2 deletions

View File

@@ -496,9 +496,11 @@ void OpenSpaceEngine::preSynchronization() {
const double dt = sgct::Engine::instance()->getDt();
_interactionHandler.update(dt);
_interactionHandler.lockControls();
//_interactionHandler.lockControls();
Time::ref().advanceTime(dt);
_renderEngine.preSynchronization();
}
}
@@ -538,7 +540,7 @@ void OpenSpaceEngine::render() {
void OpenSpaceEngine::postDraw() {
if (sgct::Engine::instance()->isMaster())
_interactionHandler.unlockControls();
//_interactionHandler.unlockControls();
_renderEngine.postDraw();
}