Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.