From 40663eb2b5fbcd4dab4a69b620b98e43ee0ee05b Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 21 Jul 2024 23:28:29 +0200 Subject: [PATCH] lagless cam test --- src/d_main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index f23e64566..def35967c 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -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; } }