mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Increase the default HTTPClient download chunk size to 64 KiB
This improves download speeds at the cost of increased memory usage. This change also effects HTTPRequest automatically. See #32807 and #33862.
This commit is contained in:
@@ -153,9 +153,9 @@
|
||||
<member name="body_size_limit" type="int" setter="set_body_size_limit" getter="get_body_size_limit" default="-1">
|
||||
Maximum allowed size for response bodies. If the response body is compressed, this will be used as the maximum allowed size for the decompressed body.
|
||||
</member>
|
||||
<member name="download_chunk_size" type="int" setter="set_download_chunk_size" getter="get_download_chunk_size" default="4096">
|
||||
<member name="download_chunk_size" type="int" setter="set_download_chunk_size" getter="get_download_chunk_size" default="65536">
|
||||
The size of the buffer used and maximum bytes to read per iteration. See [member HTTPClient.read_chunk_size].
|
||||
Set this to a higher value (e.g. 65536 for 64 KiB) when downloading large files to achieve better speeds at the cost of memory.
|
||||
Set this to a lower value (e.g. 4096 for 4 KiB) when downloading small files to decrease memory usage at the cost of download speeds.
|
||||
</member>
|
||||
<member name="download_file" type="String" setter="set_download_file" getter="get_download_file" default="""">
|
||||
The file to download into. Will output any received file into it.
|
||||
|
||||
Reference in New Issue
Block a user