From: havoc Date: Fri, 25 Jan 2008 23:31:06 +0000 (+0000) Subject: disabled size throttling of packets if csqc is used (because it was very X-Git-Tag: xonotic-v0.1.0preview~2499 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f0dc259ec532846e6b950e34cd5083b001f6f9e;p=xonotic%2Fdarkplaces.git disabled size throttling of packets if csqc is used (because it was very 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 --- diff --git a/sv_main.c b/sv_main.c index c471ff35..864695fc 100644 --- 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