mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-30 07:41:16 +00:00
Maximize cURL buffer size
Allows higher download throughput (from ~2 MB/s to ~60 MB/s at 120FPS) This has no effect for curl versions older than 7.53.0 (for which the buffer can only be shrunk below 16k)
This commit is contained in:
parent
63e59a4591
commit
e986384fde
1 changed files with 1 additions and 0 deletions
|
@ -301,6 +301,7 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL )
|
||||||
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_MAXREDIRS, 5);
|
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_MAXREDIRS, 5);
|
||||||
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_PROTOCOLS,
|
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_PROTOCOLS,
|
||||||
CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | CURLPROTO_FTPS);
|
CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | CURLPROTO_FTPS);
|
||||||
|
qcurl_easy_setopt_warn(clc.downloadCURL, CURLOPT_BUFFERSIZE, CURL_MAX_READ_SIZE);
|
||||||
clc.downloadCURLM = qcurl_multi_init();
|
clc.downloadCURLM = qcurl_multi_init();
|
||||||
if(!clc.downloadCURLM) {
|
if(!clc.downloadCURLM) {
|
||||||
qcurl_easy_cleanup(clc.downloadCURL);
|
qcurl_easy_cleanup(clc.downloadCURL);
|
||||||
|
|
Loading…
Reference in a new issue