Search Unity

Bug Unity.XR.Oculus.Performance.TrySetDisplayRefreshRate fails on device and errors in editor

Discussion in 'XR Interaction Toolkit and Input' started by bteeps, Oct 31, 2022.

  1. bteeps

    bteeps

    Joined:
    May 4, 2020
    Posts:
    2
    This function: Unity.XR.Oculus.Performance.TrySetDisplayRefreshRate(120); fails in the editor. It always runs 120 anyways, but TryGetDisplayRefreshRate returns 0.

    Little to no info on this API. Please point me to some documentation. Type it into google with quotes and youll get 5 results.

    In the actual quest 2, it throws an exception and no code in the same function gets run.

    I think same problem as this (no answers):
    https://forum.unity.com/threads/uni...ysetdisplayrefreshrate-returns-false.1292003/

    Please, this is a blocker for our game, some help would be much appreciated.