Unity QualitySettings.vSyncCount 垂直同步数

QualitySettings.vSyncCount 垂直同步数

Description 描述

The VSync Count.

垂直同步数。

The number of VSyncs that should pass between each frame. Use 'Don't Sync' (0) to not wait for VSync. Value must be 0, 1 or 2.

VSyncs数值需要在每帧之间传递,使用0为不等待垂直同步。值必须是0,1或2。

using UnityEngine;
using System.Collections; 
public class ExampleClass : MonoBehaviour 
{    
    void Example()
    {
         QualitySettings.vSyncCount = 1;   
    }
}

原文地址:https://www.cnblogs.com/Peng18233754457/p/10097007.html