(svn r19593) -Codechange: improve loading/executing the desync logs

This commit is contained in:
rubidium
2010-04-09 17:08:44 +00:00
parent e9f60d5d13
commit de155e78e7
3 changed files with 62 additions and 12 deletions

View File

@@ -300,13 +300,15 @@ void VideoDriver_Dedicated::MainLoop()
cur_ticks = GetTime();
_realtime_tick += cur_ticks - prev_cur_ticks;
if (cur_ticks >= next_tick || cur_ticks < prev_cur_ticks) {
if (cur_ticks >= next_tick || cur_ticks < prev_cur_ticks || _ddc_fastforward) {
next_tick = cur_ticks + 30;
GameLoop();
UpdateWindows();
}
CSleep(1);
/* Don't sleep when fast forwarding (for desync debugging) */
if (!_ddc_fastforward) CSleep(1);
}
}