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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug DX12 + XR + HDRP seems really bugged

Discussion in '2023.1 Beta' started by Qleenie, Mar 14, 2023.

  1. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    778
    Hi,

    wanted to try out DX12 and check performance compared to DX11.
    With my test setup (HDRP+ DX12 + OpenXR + Unity 2023.1.7b) I ran into lots of issues:
    - very varying performance (in my test scene between 8ms GPU time and 50ms GPU time on repeated runs).
    - lots of crashes; in best case just crash of Unity Editor, in worst case crash of my PC (which basically never happened before).

    No issues with DX11 on same setup.
     
    dclipca likes this.
  2. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    778
    Update: after some restarts / driver update it seems to run more stable (performance and overall stability).
    Performance under DX12 is still worse then DX11, both in simple and complex scenarios. As the delta seems to be linear, I guess the overall HDRP / OpenXR overhead makes DX12 perform worse then DX11. I measured around 2ms GPU rendering time difference, even in near empty scene (with a 3080).
     
  3. dclipca

    dclipca

    Joined:
    Oct 30, 2021
    Posts:
    22
    Same issue. Wanted to try DX12 in my HDRP project with OpenXR. As in your case, the performance varies from ~1X to ~7X FPS seemingly randomly both in Editor and Build.