From c3340959dedb7b8386a358705f0cb0bc473b494f Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 27 Apr 2022 17:22:39 -0400 Subject: [PATCH] Fix I_FrameCapSleep not respecting cpusleep Jonathan Joestar bruh --- src/sdl/i_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 05386e9b5..db1f099cd 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -2306,7 +2306,7 @@ boolean I_FrameCapSleep(const double t) while (curTime < destTime) { - if (curTime < sleepTime && cv_sleep.value <= 0) + if (curTime < sleepTime && cv_sleep.value > 0) { // Wait 1ms at a time (on default settings) // until we're close enough.