Only enable syncing after the first frame due to high initialization load

This commit is contained in:
Alexander Bock
2016-09-24 09:07:15 +02:00
parent e1b2877525
commit 8cf39cdd29
2 changed files with 17 additions and 1 deletions
@@ -172,6 +172,10 @@ private:
// The current state of the countdown; if it reaches '0', the application will close
float _shutdownCountdown;
// The first frame might take some more time in the update loop, so we need to know to
// disable the synchronization; otherwise a hardware sync will kill us after 1 sec
bool _isFirstRenderingFirstFrame;
static OpenSpaceEngine* _engine;
};