From: bones_was_here Date: Sun, 28 Feb 2021 13:57:41 +0000 (+1000) Subject: Effectively disable server->client rate limiting for testing X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=refs%2Fheads%2Fbones_was_here%2Fnoratelim;p=xonotic%2Fdarkplaces.git Effectively disable server->client rate limiting for testing --- 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);