From 1164c5d569e8a40d98aa3822e63002f9498dcb8a Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sat, 26 Jul 2025 13:37:24 -0400 Subject: [PATCH] Fix console framerate issues and Fix Boolean type on windows --- src/d_main.cpp | 19 +++++++++++++++++-- src/doomtype.h | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index e7aeb022a..13ca54472 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -920,9 +920,24 @@ void D_SRB2Loop(void) rendertimefrac_unpaused = FRACUNIT; } - if ((interp || doDisplay) && !frameskip) + if (interp || doDisplay) { - ranwipe = D_Display(); + if (!frameskip) + { + ranwipe = D_Display(); + } + else if (frameskip) + { + // always update console and hud + // otherwise it may take minutes to open it + CON_Drawer(); + + if (gamestate == GS_LEVEL) + { + ST_Drawer(); + HU_Drawer(); + } + } } // Only take screenshots after drawing. diff --git a/src/doomtype.h b/src/doomtype.h index ebe44698a..9743ca838 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -163,7 +163,7 @@ extern "C" { #ifndef _WIN32 typedef int32_t boolean; #else -#define BOOL boolean +#define boolean BOOL #endif #ifndef __cplusplus