From b7fa08f78e49e1a949ba9c43a62a2fc8fd7bd9c7 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 1 Nov 2024 14:26:19 +0100 Subject: [PATCH] Increase default `cl_maxpackets` to 125 This decreases latency if FPS is greater than or equal to 30 (since the previous default for `cl_maxpackets` was `30`), and allows for more consistent input handling. `com_maxfps` already defaults to 125, so it's a 1:1 match if your PC can render 125 FPS. --- code/client/cl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 04cd1faab..37536db05 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -3311,7 +3311,7 @@ void CL_Init(void) { cl_pitchspeed = Cvar_Get("cl_pitchspeed", "140", CVAR_ARCHIVE); cl_anglespeedkey = Cvar_Get("cl_anglespeedkey", "1.5", 0); - cl_maxpackets = Cvar_Get("cl_maxpackets", "30", CVAR_ARCHIVE); + cl_maxpackets = Cvar_Get("cl_maxpackets", "125", CVAR_ARCHIVE); cl_packetdup = Cvar_Get("cl_packetdup", "1", CVAR_ARCHIVE); cl_run = Cvar_Get("cl_run", "1", CVAR_ARCHIVE);