Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Feature Request OpenXR: XRStats.TryGetGPUTimeLastFrame fails

Discussion in 'VR' started by DylanF, Feb 11, 2021.

Thread Status:
Not open for further replies.
  1. DylanF

    DylanF

    Joined:
    Jun 25, 2013
    Posts:
    54
    XRStats.TryGetGPUTimeLastFrame is returning false with OpenXR (testing with an Index).

    This seems to be needed in order to drive HDRP's dynamic resolution feature. Is there another way to do it? FrameTimingManager doesn't return information either (using DX11).
     
  2. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    398
    OpenXR doesn't yet return this info - the working group has discussed having a statistics type extension but right now it doesn't exist. We're looking into adding own GPU fences for returning an approximation of this info in a future release of the Unity OpenXR Package. We'll swap over to whatever OpenXR provides when that is ready.
     
  3. DylanF

    DylanF

    Joined:
    Jun 25, 2013
    Posts:
    54
    Great! Thanks for working on a quicker solution. That will allow me to use more of HDRP's features without forcing the player to find the right performance/quality balance.
     
Thread Status:
Not open for further replies.