lagless cam test

This commit is contained in:
Alug committed 2024-07-27 15:03:55 +02:00
1 parent dca2827154
commit 40663eb2b5
1 file changed
+12
+12
View File
@@ -736,6 +736,18 @@ void D_SRB2Loop(void)
}
else if (rendertimeout < entertic) // in case the server hang or netsplit
{
// Lagless camera! Yay!
if (gamestate == GS_LEVEL && netgame)
{
// Evaluate the chase cam once for every local realtic
// This might actually be better suited inside G_Ticker or TryRunTics
for (tic_t chasecamtics = 0; chasecamtics < realtics; chasecamtics++)
{
P_RunChaseCameras();
}
R_UpdateViewInterpolation();
}
doDisplay = true;
}
}