QualitySettings.asyncUploadBufferSize

Switch to Manual
public static int asyncUploadBufferSize ;

Description

异步纹理上传可在渲染线程上以基于时间片的方式异步上传纹理,同时对内存和时间切片进行严格的控制。除了驱动程序必须进行的分配以外,不进行任何其他分配。为了读取数据和上传纹理数据,将重用一个大小可控的环形缓冲区。

Use asyncUploadBufferSize to set the buffer size for asynchronous texture uploads. The size is in megabytes. Minimum value is 2 and maximum is 512. Although the buffer will resize automatically to fit the largest texture currently loading, it is recommended to set the value approximately to the size of biggest texture used in the Scene to avoid re-sizing of the buffer which can incur performance cost.

using UnityEngine;

public class StartupExampleScript : MonoBehaviour { void Start() { // Set Ring Buffer Size to 16 MB. QualitySettings.asyncUploadBufferSize = 16; } }

另请参阅:Quality Settings