Created
January 21, 2020 06:17
-
-
Save CynicatPro/83c07bf65b43ffbd43810ba836653f41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.XR; | |
[DefaultExecutionOrder(-10000)] | |
public class VRSettings : MonoBehaviour { | |
public float resolutionScale = 1.4f; | |
void Awake() { | |
XRSettings.eyeTextureResolutionScale = resolutionScale; | |
Time.fixedDeltaTime = Time.timeScale / XRDevice.refreshRate; | |
Application.targetFrameRate = -1; | |
Application.runInBackground = true; | |
QualitySettings.maxQueuedFrames = -1; | |
QualitySettings.vSyncCount = 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment