summaryrefslogtreecommitdiffstats
path: root/src/app/app.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2014-01-18 21:35:32 +0100
committerPiotr Dziwinski <piotrdz@gmail.com>2014-01-18 21:35:32 +0100
commit70b18cc4c05398cd06558f4634937a70c2436546 (patch)
treef8c6bddca695e2421cf400b4b4ce56afcfc06b3f /src/app/app.cpp
parentd88511f89cc3f7a8f235c96773bcd3e2f396d4f2 (diff)
downloadcolobot-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/app/app.cpp')
-rw-r--r--src/app/app.cpp8
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);