]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Effectively disable server->client rate limiting for testing bones_was_here/noratelim
authorbones_was_here <bones_was_here@xa.org.au>
Sun, 28 Feb 2021 13:57:41 +0000 (23:57 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Sun, 28 Feb 2021 13:57:41 +0000 (23:57 +1000)
qdefs.h
sv_send.c

diff --git a/qdefs.h b/qdefs.h
index 463761e9b43a311993b6b182edf5f657c07b9a72..8dc0da9472c7473265a2390de23c1b2de16b4757 100644 (file)
--- a/qdefs.h
+++ b/qdefs.h
 
 #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) ' ')
index 984f9635ac4494afe78410e2d937510be2cccde2..9e9f94d712d6d227673ecf6197e5831723c54f29 100644 (file)
--- 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);