From 465e3be10509dd444edb3c7395f97115de1ad477 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 9 Apr 2010 17:08:44 +0000 Subject: (svn r19593) -Codechange: improve loading/executing the desync logs --- src/video/dedicated_v.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/video/dedicated_v.cpp') diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index 69de090ab..37797f7e4 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -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); } } -- cgit v1.2.3-54-g00ecf