Hey, i am writing a custom VR engine and try to understand xrEndFrame.
I am using Vulkan.
I have a problem in that xrEndFrame always waits on the GPU before it continues and i really don’t understand why. The spec doesn’t say anything about it.
On my renderthread i submit all my command buffers at the end and then immediately call xrEndFrame. Then the renderthread waits for the whole time the GPU processes the command buffers. This only happens if i submit a layer referencing a swapchain, i don’t even have to render into it or use it.
This blocks the entire engine continuing resulting in a very poor frame rate.
Why is this happening?
Thank you very much