]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disabled size throttling of packets if csqc is used (because it was very
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Jan 2008 23:31:06 +0000 (23:31 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Jan 2008 23:31:06 +0000 (23:31 +0000)
easy to end up with >128 byte entity updates which can in some cases
never be sent at all due to the size throttling)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8013 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index c471ff35eda1d837a815cad82f73644c032d63ee..864695fc471cb31d163a1fb653224afe0e03adbe 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1781,6 +1781,10 @@ static void SV_SendClientDatagram (client_t *client)
                maxsize = (int)(clientrate * sys_ticrate.value);
                maxsize = bound(128, maxsize, 1400);
                maxsize2 = 1400;
+               // csqc entities can easily exceed 128 bytes, so disable throttling in
+               // mods that use csqc (they are likely to use less bandwidth anyway)
+               if (sv.csqc_progsize > 0)
+                       maxsize = maxsize2;
        }
 
        // obey rate limit by limiting packet frequency if the packet size