Mercurial > mm7
diff Game.cpp @ 816:cfc65feef029
* Player Recovery Times
* Player Attack fixes
* Debug log to timers
author | Nomad |
---|---|
date | Tue, 26 Mar 2013 12:40:27 +0200 |
parents | 9a3121bbc1d0 |
children | 9c3f28b31b4a |
line wrap: on
line diff
--- a/Game.cpp Tue Mar 26 06:40:04 2013 +0200 +++ b/Game.cpp Tue Mar 26 12:40:27 2013 +0200 @@ -355,8 +355,16 @@ pMouse->_469EA4(); pRenderer->EndScene(); } + + static int gtc_old = GetTickCount(); + int gtc = GetTickCount(); + auto evt_old = pEventTimer->uStartTime, + msc_old = pMiscTimer->uStartTime; pEventTimer->Update(); pMiscTimer->Update(); + Log::Warning(L"Evt/Msc/GTC dt: %u/%u/%u", pEventTimer->uTimeElapsed, pMiscTimer->uTimeElapsed, gtc - gtc_old); + gtc_old = gtc; + OnTimer(0); GameUI_StatusBar_UpdateTimedString(0); if ( pMiscTimer->bPaused && !pEventTimer->bPaused )