Fixed sync_delay so it doesn't render during stalls, but still processes windows messaging.

This commit is contained in:
Justin Marshall
2020-07-23 09:01:15 -07:00
parent 4fdcf960d5
commit 3e0357f29b
+15 -14
View File
@@ -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) {