From 3e0357f29bd6ad279bc81c5960f9c36448218130 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Thu, 23 Jul 2020 09:01:15 -0700 Subject: [PATCH] Fixed sync_delay so it doesn't render during stalls, but still processes windows messaging. --- code/redalert/conquer.cpp | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/code/redalert/conquer.cpp b/code/redalert/conquer.cpp index eeb7080..272211d 100644 --- a/code/redalert/conquer.cpp +++ b/code/redalert/conquer.cpp @@ -2132,20 +2132,21 @@ static void Sync_Delay(void) */ while (FrameTimer) { Color_Cycle(); - Call_Back(); - - if (SpecialDialog == SDLG_NONE) { -#ifdef WIN32 - WWMouse->Erase_Mouse(&HidPage, TRUE); -#endif //WIN32 - KeyNumType input = KN_NONE; - int x, y; - Map.Input(input, x, y); - if (input) { - Keyboard_Process(input); - } - Map.Render(); - } +// Call_Back(); +// +// if (SpecialDialog == SDLG_NONE) { +//#ifdef WIN32 +// WWMouse->Erase_Mouse(&HidPage, TRUE); +//#endif //WIN32 +// KeyNumType input = KN_NONE; +// int x, y; +// Map.Input(input, x, y); +// if (input) { +// Keyboard_Process(input); +// } +// Map.Render(); +// } + SDL_PumpEvents(); } animFrameNum+=0.5f; // This is garbage and needs to be fixed with proper delta time bits!!! if (!FrameTimer) {