mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-15 00:17:48 -06:00
Use double buffering for time and camera syncing
This commit is contained in:
@@ -778,6 +778,11 @@ void OpenSpaceEngine::preSynchronization() {
|
||||
}
|
||||
|
||||
void OpenSpaceEngine::postSynchronizationPreDraw() {
|
||||
if (_settingsEngine->useDoubleBuffering() && !_isMaster) {
|
||||
Time::ref().updateDoubleBuffer();
|
||||
_renderEngine->camera()->updateDoubleBuffer();
|
||||
}
|
||||
|
||||
if (_isInShutdownMode) {
|
||||
if (_shutdownCountdown <= 0.f) {
|
||||
_windowWrapper->terminate();
|
||||
|
||||
Reference in New Issue
Block a user