QualitySettings.asyncUploadPersistentBuffer

Switch to Manual
public static bool asyncUploadPersistentBuffer;

Description

This flag controls if the async upload pipeline's ring buffer remains allocated when there are no active loading operations. Set this to true, to make the ring buffer allocation persist after all upload operations have completed. If you have issues with excessive memory usage, you can set this to false. This means you reduce the runtime memory footprint, but memory fragmentation can occur. The default value is true.

using UnityEngine;
public class StartupExampleScript : MonoBehaviour
{
    void Start()
    {
        // The upload buffer will be deallocated when all uploads are complete.
        QualitySettings.asyncUploadPersistentBuffer = false;
    }
}

See Also: Quality Settings.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答