mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 13:38:34 -06:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user