Streaming
This section contains settings related to resource streaming.本节包含与资源流有关的设置。
First Frames Force | 通过控制台访问: render_streaming_first_frames_force (API控制) |
---|---|
Max Threads | 通过控制台访问: render_streaming_max_threads (API控制) |
Particles Memory Limit | 通过控制台访问: render_streaming_particles_memory_limit (API控制) |
Preload at World Loading#
Shaders | 通过控制台访问: render_shaders_preload (API控制) |
---|
BudgetsBudgets#
Loading | 通过控制台访问: render_streaming_budget_loading (API控制) |
---|---|
Textures Destroy | 通过控制台访问: render_streaming_budget_destroy_textures (API控制) |
Meshes Destroy | 通过控制台访问: render_streaming_budget_destroy_meshes (API控制) |
TexturesTextures#
Streaming Mode | streaming mode for textures. The following modes are available:
通过控制台访问: render_streaming_textures_mode (API控制) |
---|---|
Cache Resolution | 通过控制台访问: render_streaming_textures_cache_resolution (API控制) |
Memory Limit | 通过控制台访问: render_streaming_textures_memory_limit (API控制) |
Life Time | 通过控制台访问: render_streaming_textures_life_time (API控制) |
Meshes GPUMeshes GPU#
Streaming Mode | streaming mode for loading meshes to video memory (VRAM). The following modes are available:
通过控制台访问: render_streaming_meshes_mode_vram (API控制) |
---|---|
Memory Limit | 通过控制台访问: render_streaming_meshes_limit_vram (API控制) |
Life Time | 通过控制台访问: render_streaming_meshes_life_time_vram (API控制) |
Meshes CPUMeshes CPU#
Streaming Mode | streaming mode for loading meshes to memory (RAM). The following modes are available:
通过控制台访问: render_streaming_meshes_mode_ram (API控制) |
---|---|
Memory Limit | 通过控制台访问: render_streaming_meshes_limit_ram (API控制) |
Life Time | 通过控制台访问: render_streaming_meshes_life_time_ram (API控制) |
Prefetch CPUPrefetch CPU#
Collision Mode | mode of asynchronous pre-loading of meshes to memory before they are used. Pre-loading is available only for meshes, which have at least one surface with the Collision flag set. There are 3 modes of loading such meshes to RAM:
通过控制台访问: render_streaming_meshes_prefetch_collision (API控制) |
---|---|
Intersection Mode | mode of asynchronous pre-loading of meshes into memory before they are used. Pre-loading is available only for meshes, which have at least one surface with the Intersection flag set. There are 3 modes of loading such meshes to RAM:
通过控制台访问: render_streaming_meshes_prefetch_intersection (API控制) |
Radius | radius within which meshes are pre-loaded into memory. The value should exceed the physics radius (for collisions) and/or the radius within which intersections are calculated. 数值范围: [0.0f, inf]. 默认值为 : 0.0f. 通过控制台访问: render_streaming_meshes_prefetch_radius (API控制) |
For OpenGL OnlyFor OpenGL Only#
The settings below are available for OpenGL API only.以下设置仅适用于OpenGL API。
Async Buffer |
Size of an intermediate buffer (between the CPU and new resource) used for mesh and texture streaming, in Mb. The size of this buffer must be equal to the size of the largest resource (mesh/texture), otherwise in case of a larger resource, the buffer will be resized causing a spike. 用于网格和纹理流传输的中间缓冲区(在CPU和新资源之间)的大小,以Mb为单位。此缓冲区的大小必须等于最大资源的大小(网格/纹理),否则,在资源较大的情况下,将调整缓冲区的大小,从而导致峰值。 Be aware, that the size of this intermediate buffer will be added to total memory consumption.请注意,此中间缓冲区的大小将添加到总内存消耗中。 |
---|---|
Async Buffer Indices |
Size of an intermediate buffer, analogous to the Async Buffer above, used for mesh streaming (to store vertex indices of meshes), in Mb.类似于上面的Async Buffer的中间缓冲区的大小,以Mb为单位,用于网格流传输(存储网格的顶点索引)。 Be aware, that the size of this intermediate buffer will be added to total memory consumption.请注意,此中间缓冲区的大小将添加到总内存消耗中。 |
Async Buffer Synchronization |
Enable buffer synchronization for transferring data from the streaming thread to the main one. When disabled, both async buffer and async buffer for indices are created anew each time. This reduces the number of buffer synchronizations but increases the number of memory allocations.启用缓冲区同步以将数据从流线程传输到主线程。禁用后,每次都会重新创建索引的异步缓冲区和异步缓冲区。这减少了缓冲区同步的数量,但增加了内存分配的数量。 Sometimes (depending on the hardware/driver used, e.g. when the main thread is affected by sychronization primitives in other threads) memory allocation may be faster than synchronizations, in such cases, when streaming becomes unacceptably slow, it is recommended to disable buffer synchronization.有时(取决于所使用的硬件/驱动程序,例如,当主线程受到其他线程中的同步原语影响时),内存分配可能比同步要快,在这种情况下,当流变得令人无法接受的慢时,建议禁用缓冲区同步。 |