Prechádzať zdrojové kódy

added sound.stream_preload_size

JCash 7 mesiacov pred
rodič
commit
be14def3da

+ 3 - 0
docs/en/manuals/project-settings.md

@@ -318,6 +318,9 @@ Otherwise, you risk evicting new chunks each frame.
 #### Stream Chunk Size
 The size of each streamed chunk. `16384` bytes by default.
 
+#### Stream Preload Size
+Determines the size of the initial chunk for sound files read from the archive.
+
 ---
 
 ### Sprite

+ 1 - 0
docs/en/manuals/sound-streaming.md

@@ -100,4 +100,5 @@ The game project supports these settings:
 * `sound.stream_enabled` (default 0) - If enabled, enables streaming of all sound files
 * `sound.stream_cache_size` (default 2097152 bytes) - The max size of the cache containing _all_ chunks.
 * `sound.stream_chunk_size` (default 16384 bytes) - Determines size of each chunk that is loaded from a file at a time
+* `sound.stream_preload_size` (default 16384 bytes) - Determines size of initial chunk read from each found file in the archive