Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
197 stars 9 forks source link

Switch to Vulkan graphics API #312

Open Frooxius opened 4 years ago

Frooxius commented 4 years ago

Eventually I'd like to switch the graphics pipeline to Vulkan from DirectX 11 & OpenGL, which should offer performance benefits.

However I've recently checked on the state of Vulkan support in Unity again and unfortunately it's still not ready for use. Even a fully empty project with just a cube will crash on start when used with Single-Pass stereo rendering in all available Unity versions (including 2020.1a). In the current stable version the graphics is corrupted on startup.

shiftyscales commented 4 years ago

I've learned of the existence of the MoltenVK wrapper library which will allow us to use Vulkan on Metal/macOS, which will be useful for #149:

https://github.com/KhronosGroup/MoltenVK

Apparently as of a few months ago, Unity supports Vulkan on the Quest too:

https://uploadvr.com/unity-oculus-quest-vulkan/

https://developer.oculus.com/blog/vulkan-support-for-oculus-quest-in-unity-experimental/

Frooxius commented 4 years ago

Unfortunately MoltenVK doesn't help us, because we're going through Unity. That's only if we were using our own graphics engine.

There are still other things blocking this, like video playback and so on.