]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
curl: use much less conservative performance defaults
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 27 Jul 2023 09:22:21 +0000 (19:22 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 29 Jul 2023 07:40:43 +0000 (17:40 +1000)
Matches defaults used in Xonotic >= 0.8.2

Dedicated server throughput is still limited by ticrate to avoid a
reduction in frame pacing precision, see 025fbac31da7f654e296e20b3037b5ce88074f8b

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
libcurl.c

index 1b2e5696e08a224015ab128ce499b4df0c39d304..31e331a1170e1faadf75f915a4e3d1c3f084ce77 100644 (file)
--- a/libcurl.c
+++ b/libcurl.c
@@ -8,8 +8,8 @@
 #include "image_png.h"
 
 static cvar_t curl_enabled = {CF_SHARED | CF_ARCHIVE, "curl_enabled","1", "whether libcurl may be used to GET files or POST data"};
-static cvar_t curl_maxdownloads = {CF_SHARED | CF_ARCHIVE, "curl_maxdownloads","1", "maximum number of concurrent HTTP/FTP downloads"};
-static cvar_t curl_maxspeed = {CF_SHARED | CF_ARCHIVE, "curl_maxspeed","300", "maximum download speed (KiB/s)"};
+static cvar_t curl_maxdownloads = {CF_SHARED | CF_ARCHIVE, "curl_maxdownloads","3", "maximum number of concurrent HTTP/FTP downloads"};
+static cvar_t curl_maxspeed = {CF_SHARED | CF_ARCHIVE, "curl_maxspeed","0", "maximum download speed (KiB/s)"};
 static cvar_t curl_useragent = {CF_SHARED, "curl_useragent","1", "send the User-Agent string (note: turning this off may break stuff)"};
 static cvar_t curl_useragent_append = {CF_SHARED, "curl_useragent_append","", "a string to append to the User-Agent string (useful for name and version number of your mod)"};