Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions com.unity.render-pipelines.universal/Runtime/XR/XRSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ internal List<XRPass> SetupFrame(CameraData cameraData)
// Disable vsync on the main display when rendering to a XR device.
QualitySettings.vSyncCount = 0;
// On Android and iOS, vSyncCount is ignored and all frame rate control is done using Application.targetFrameRate.
// Set targetFrameRate to XR refresh rate (round up)
float frameRate = 120.0f;
frameRate = display.TryGetDisplayRefreshRate(out float refreshRate) ? refreshRate : frameRate;
float frameRate = 300.0f;
Application.targetFrameRate = Mathf.CeilToInt(frameRate);

CreateLayoutFromXrSdk(camera, singlePassAllowed: true);
Expand Down