From 9747eab9f3e41d0646db3f8ee1880044eadef86b Mon Sep 17 00:00:00 2001 From: Indev Date: Thu, 8 May 2025 17:20:21 +0300 Subject: [PATCH] Add I_Sleep into CONS_Error so if a wad file was not found game won't take 100% of cpu --- src/console.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/console.c b/src/console.c index b97ba9934..7f417625b 100644 --- a/src/console.c +++ b/src/console.c @@ -1334,7 +1334,12 @@ void CONS_Error(const char *msg) // dirty quick hack, but for the good cause while (I_GetKey() != KEY_ENTER) + { + // Sleep so we don't take too much of cpu usage + I_Sleep(1.f/TICRATE*1000); + I_OsPolling(); + } } //======================================================================