mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-14 07:49:35 -06:00
Generalize Syncable interface and use mutex locks for SyncData
This commit is contained in:
@@ -787,11 +787,7 @@ void OpenSpaceEngine::preSynchronization() {
|
||||
void OpenSpaceEngine::postSynchronizationPreDraw() {
|
||||
double t1 = Time::ref().j2000Seconds();
|
||||
|
||||
if (!_isMaster) {
|
||||
if (_settingsEngine->useDoubleBuffering()) {
|
||||
_syncEngine->applySyncedUpdates();
|
||||
}
|
||||
}
|
||||
_syncEngine->postsync(_isMaster);
|
||||
|
||||
if (_isInShutdownMode) {
|
||||
if (_shutdownCountdown <= 0.f) {
|
||||
@@ -972,7 +968,7 @@ void OpenSpaceEngine::decode() {
|
||||
_syncEngine->decode(_syncBuffer.get());
|
||||
|
||||
_scriptEngine->deserialize(_syncBuffer.get());
|
||||
//_renderEngine->deserialize(_syncBuffer.get(), _settingsEngine->useDoubleBuffering());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user