- Move call to I_GetInputFrac() to ensure we're never stalled waiting for a tic.

This commit is contained in:
Mitchell Richters 2023-03-29 01:51:45 +11:00
parent d665037075
commit 9f8cda4be3
2 changed files with 3 additions and 4 deletions

View file

@ -1982,7 +1982,6 @@ void Net_SkipCommand (int cmd, uint8_t **stream)
void Net_ClearFifo(void)
{
I_SetFrameTime();
I_ResetInputTime();
gametime = I_GetTime();
}

View file

@ -562,9 +562,6 @@ void TryRunTics (void)
realtics = entertic - oldentertics;
oldentertics = entertic;
// update the scale factor for unsynchronised input here.
inputScale = I_GetInputFrac();
// get available tics
NetUpdate ();
@ -744,6 +741,9 @@ void MainLoop ()
}
I_SetFrameTime();
// update the scale factor for unsynchronised input here.
inputScale = I_GetInputFrac();
TryRunTics (); // will run at least one tic
// Update display, next frame, with current state.
I_StartTic();