diff options
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/dedicated_v.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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); } } |