Version: 2019.3
LanguageEnglish
  • C#

QualitySettings.asyncUploadPersistentBuffer

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.