Move engine frame update after game state update

This should finally fix #225
dev-ui
Piotr Dziwinski 2014-01-18 21:35:32 +01:00
parent d88511f89c
commit 70b18cc4c0
1 changed files with 4 additions and 4 deletions

View File

@ -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);