From 07ae933dddadd7fd207c76c4e8e3a3452ef6c1b5 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sun, 28 Feb 2021 23:57:41 +1000 Subject: [PATCH] Effectively disable server->client rate limiting for testing --- qdefs.h | 2 +- sv_send.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qdefs.h b/qdefs.h index 463761e9..8dc0da94 100644 --- a/qdefs.h +++ b/qdefs.h @@ -177,7 +177,7 @@ #define ON_EPSILON 0.1 ///< point on plane side epsilon -#define NET_MINRATE 1000 ///< limits "rate" and "sv_maxrate" cvars +#define NET_MINRATE 1000000 ///< limits "rate" and "sv_maxrate" cvars // In Quake, any char in 0..32 counts as whitespace //#define ISWHITESPACE(ch) ((unsigned char) ch <= (unsigned char) ' ') diff --git a/sv_send.c b/sv_send.c index 984f9635..9e9f94d7 100644 --- a/sv_send.c +++ b/sv_send.c @@ -1429,8 +1429,8 @@ static void SV_SendClientDatagram (client_t *client) // obey rate limit by limiting packet frequency if the packet size // limiting fails // (usually this is caused by reliable messages) - if (!NetConn_CanSend(client->netconnection)) - return; +// if (!NetConn_CanSend(client->netconnection)) +// return; // PROTOCOL_DARKPLACES5 and later support packet size limiting of updates maxrate = max(NET_MINRATE, sv_maxrate.integer); -- 2.39.2