Use old sleep in dedicated mode

This commit is contained in:
Eidolon 2022-04-26 16:07:48 -05:00
parent c79df7d58e
commit a4ea2c2708

View file

@ -778,7 +778,7 @@ void D_SRB2Loop(void)
debugload--; debugload--;
#endif #endif
interp = R_UsingFrameInterpolation(); interp = R_UsingFrameInterpolation() && !dedicated;
doDisplay = screenUpdate = false; doDisplay = screenUpdate = false;
ticked = false; ticked = false;
@ -891,10 +891,15 @@ void D_SRB2Loop(void)
// Fully completed frame made. // Fully completed frame made.
frameEnd = I_GetFrameTime(); frameEnd = I_GetFrameTime();
if (!singletics) if (!singletics && !dedicated)
{ {
I_FrameCapSleep(frameEnd); 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, // I_FinishUpdate is now here instead of D_Display,
// because it synchronizes it more closely with the frame counter. // because it synchronizes it more closely with the frame counter.