Search Unity

Question OpenGL vs Vulkan for OpenXR

Discussion in 'VR' started by keveleigh, Apr 6, 2023.

  1. keveleigh

    keveleigh

    Official Microsoft Employee

    Joined:
    Jun 19, 2015
    Posts:
    35
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    OpenGLES3 works fine.
    When new features get added they might only support vulkan (as seen with oculus xr plugin), but OpenXR has no API specific features afaik.
    Just try and find out :p
     
  3. keveleigh

    keveleigh

    Official Microsoft Employee

    Joined:
    Jun 19, 2015
    Posts:
    35
    I was trying it and seeing noticeably degraded performance on OpenGL when compared to Vulkan, so I was checking to see if it was something known in the implementation here. If you're having success with it, though, it must be something else! Thanks for the info!
     
  4. Tanya_Li

    Tanya_Li

    Unity Technologies

    Joined:
    Jun 29, 2020
    Posts:
    105
    Hey~ Both OpenGLES and Vulkan should work with OpenXR SDK. We didn't observe the noticeable performance degraded on OpenGLES in our performance testing.
    Maybe you were hitting a GLES only bug?
     
    keveleigh likes this.
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    I second that. I get a max of 4% difference in performance between the 2 dependant on what API is used.
    Did you update Unity and OpenXR? If you use depth maybe force prepass
     
    keveleigh likes this.
  6. keveleigh

    keveleigh

    Official Microsoft Employee

    Joined:
    Jun 19, 2015
    Posts:
    35
    It's probable! Thanks for the info! That helps narrow down our investigation space.
     
    DevDunk likes this.