Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. 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:
    55
    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:
    400
    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:
    55
    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.