From a5a08f830a8f3676cdcce9ef33368ac512cf76ff Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Thu, 27 Jul 2023 19:22:21 +1000 Subject: [PATCH] curl: use much less conservative performance defaults 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 --- libcurl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcurl.c b/libcurl.c index 1b2e5696..31e331a1 100644 --- 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)"}; -- 2.39.2