From 7f0dc259ec532846e6b950e34cd5083b001f6f9e Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 25 Jan 2008 23:31:06 +0000 Subject: [PATCH] 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 --- sv_main.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.2