From a4ea2c27083c5a93ce7f7ca3cc2bf5d225573759 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Tue, 26 Apr 2022 16:07:48 -0500 Subject: [PATCH] Use old sleep in dedicated mode --- src/d_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 9cfd694e7..6aeaf61e5 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -778,7 +778,7 @@ void D_SRB2Loop(void) debugload--; #endif - interp = R_UsingFrameInterpolation(); + interp = R_UsingFrameInterpolation() && !dedicated; doDisplay = screenUpdate = false; ticked = false; @@ -891,10 +891,15 @@ void D_SRB2Loop(void) // Fully completed frame made. frameEnd = I_GetFrameTime(); - if (!singletics) + if (!singletics && !dedicated) { I_FrameCapSleep(frameEnd); } + else if (dedicated) + { + // Preserve the pre-interp sleeping behavior for dedicated mode + I_Sleep(); + } // I_FinishUpdate is now here instead of D_Display, // because it synchronizes it more closely with the frame counter.