mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-02 06:23:03 +00:00
Use old sleep in dedicated mode
This commit is contained in:
parent
c79df7d58e
commit
a4ea2c2708
1 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue