]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
cl_nolerp: use normal time synchronisation
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 21 Nov 2023 20:47:11 +0000 (06:47 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 9 Dec 2023 10:13:32 +0000 (20:13 +1000)
Fixes constant packet discards on LAN and impossible pings online,
when FPS > ticrate.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cl_main.c
cl_parse.c
client.h

index 6e385c8105942c68d82d9b59bf9dfb9c7849b94d..64e711c79ab349f52b6d6b7c4c0b0e93e352fd17 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1175,6 +1175,7 @@ static void CL_UpdateNetworkEntity(entity_t *e, int recursionlimit, qbool interp
        // someone or watching a cutscene of some sort
        if (cl_nolerp.integer || cls.timedemo)
                interpolate = false;
+
        if (e == cl.entities + cl.playerentity && cl.movement_predicted && (!cl.fixangle[1] || !cl.fixangle[0]))
        {
                VectorCopy(cl.movement_origin, origin);
index 91f0f274559a2894167f47306eec1f988fa6c63c..d0f39723ba39fa43dea4ffd4ea78cb8dbe5e5708 100644 (file)
@@ -3284,7 +3284,7 @@ static void CL_NetworkTimeReceived(double newtime)
        cl.opt_inputs_since_update = 0;
        cl.mtime[1] = cl.mtime[0];
        cl.mtime[0] = newtime;
-       if (cl_nolerp.integer || cls.timedemo || cl.mtime[1] == cl.mtime[0] || cls.signon < SIGNONS)
+       if (cls.timedemo || cl.mtime[1] == cl.mtime[0] || cls.signon < SIGNONS)
                cl.time = cl.mtime[1] = newtime;
        else if (cls.demoplayback)
        {
index 60d921e6496bb864373636b50bcd8f23f828d8ff..a7b275caa73c589ca04fa14ef318d0e7222447ab 100644 (file)
--- a/client.h
+++ b/client.h
@@ -1167,7 +1167,6 @@ extern cvar_t cl_anglespeedkey;
 extern cvar_t cl_autofire;
 
 extern cvar_t cl_shownet;
-extern cvar_t cl_nolerp;
 extern cvar_t cl_nettimesyncfactor;
 extern cvar_t cl_nettimesyncboundmode;
 extern cvar_t cl_nettimesyncboundtolerance;