From d3cc9dec7cc5f72f30aa49a1bb6969de699114a4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 8 Nov 2024 12:06:38 +0100 Subject: [PATCH] Increase default `cl_maxfps` and `cl_maxpackets` to 125 This provides a more responsive gameplay experience with more consistent input handling. `rate` was also increased accordingly to ensure all packets are sent (the new default matches `sv_max_rate`). --- doc/client.asciidoc | 4 ++-- src/client/input.c | 2 +- src/client/main.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/client.asciidoc b/doc/client.asciidoc index 03a38437a..c27685368 100644 --- a/doc/client.asciidoc +++ b/doc/client.asciidoc @@ -43,7 +43,7 @@ cl_maxpackets:: Number of packets client sends per second. 0 means no particular limit. Unless connected using Q2PRO protocol, this variable is ignored and packets are sent in sync with client physics frame rate, controlled with - ‘cl_maxfps’ variable. Default value is 30. + ‘cl_maxfps’ variable. Default value is 125. cl_fuzzhack:: Enables ‘cl_maxpackets’ limit even if Q2PRO protocol is not in use by @@ -83,7 +83,7 @@ r_maxfps:: cl_maxfps:: Specifies client physics frame rate if ‘cl_async’ 1 or 2 is used. Otherwise, limits both rendering and physics frame rates. Default value is - 60. + 125. cl_gibs:: Controls rendering of entities with ‘EF_GIB’ flag set. When using Q2PRO diff --git a/src/client/input.c b/src/client/input.c index fb5586615..d7059391b 100644 --- a/src/client/input.c +++ b/src/client/input.c @@ -691,7 +691,7 @@ void CL_RegisterInput(void) Cmd_Register(c_input); cl_nodelta = Cvar_Get("cl_nodelta", "0", 0); - cl_maxpackets = Cvar_Get("cl_maxpackets", "30", 0); + cl_maxpackets = Cvar_Get("cl_maxpackets", "125", 0); cl_fuzzhack = Cvar_Get("cl_fuzzhack", "0", 0); cl_packetdup = Cvar_Get("cl_packetdup", "1", 0); #if USE_DEBUG diff --git a/src/client/main.c b/src/client/main.c index 5f4b6e88a..8cd227338 100644 --- a/src/client/main.c +++ b/src/client/main.c @@ -2717,7 +2717,7 @@ static void CL_InitLocal(void) cl_predict->changed = cl_predict_changed; cl_kickangles = Cvar_Get("cl_kickangles", "1", CVAR_CHEAT); cl_warn_on_fps_rounding = Cvar_Get("cl_warn_on_fps_rounding", "1", 0); - cl_maxfps = Cvar_Get("cl_maxfps", "62", 0); + cl_maxfps = Cvar_Get("cl_maxfps", "125", 0); cl_maxfps->changed = cl_sync_changed; cl_async = Cvar_Get("cl_async", "1", 0); cl_async->changed = cl_sync_changed; @@ -2796,7 +2796,7 @@ static void CL_InitLocal(void) info_spectator = Cvar_Get("spectator", "0", CVAR_USERINFO); info_name = Cvar_Get("name", "unnamed", CVAR_USERINFO | CVAR_ARCHIVE); info_skin = Cvar_Get("skin", "male/grunt", CVAR_USERINFO | CVAR_ARCHIVE); - info_rate = Cvar_Get("rate", "15000", CVAR_USERINFO | CVAR_ARCHIVE); + info_rate = Cvar_Get("rate", "60000", CVAR_USERINFO | CVAR_ARCHIVE); info_msg = Cvar_Get("msg", "1", CVAR_USERINFO | CVAR_ARCHIVE); info_hand = Cvar_Get("hand", "0", CVAR_USERINFO | CVAR_ARCHIVE); info_hand->changed = info_hand_changed;