diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2014-01-18 21:35:32 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2014-01-18 21:35:32 +0100 |
commit | 70b18cc4c05398cd06558f4634937a70c2436546 (patch) | |
tree | f8c6bddca695e2421cf400b4b4ce56afcfc06b3f /src | |
parent | d88511f89cc3f7a8f235c96773bcd3e2f396d4f2 (diff) | |
download | colobot-70b18cc4c05398cd06558f4634937a70c2436546.tar.gz colobot-70b18cc4c05398cd06558f4634937a70c2436546.tar.bz2 colobot-70b18cc4c05398cd06558f4634937a70c2436546.zip |
Move engine frame update after game state update
This should finally fix #225
Diffstat (limited to 'src')
-rw-r--r-- | src/app/app.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index a2162b1..70bec81 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -960,15 +960,15 @@ int CApplication::Run() { LogEvent(event); - StartPerformanceCounter(PCNT_UPDATE_ENGINE); - m_engine->FrameUpdate(); - StopPerformanceCounter(PCNT_UPDATE_ENGINE); - m_sound->FrameMove(m_relTime); StartPerformanceCounter(PCNT_UPDATE_GAME); m_robotMain->ProcessEvent(event); StopPerformanceCounter(PCNT_UPDATE_GAME); + + StartPerformanceCounter(PCNT_UPDATE_ENGINE); + m_engine->FrameUpdate(); + StopPerformanceCounter(PCNT_UPDATE_ENGINE); } StopPerformanceCounter(PCNT_UPDATE_ALL); |