Shapes - not working with Foveated Rendering
Hi Freya,
I am using immediate mode to draw a lot of my UI. I've run into a performance optimization problem while using Shapes. I am targeting the Meta Quest 3 using the OpenXR plugin.
If I enable Foveated Rendering and have any calls to immediate draw mode, the whole screen renders black inside the Quest 3. I've done a bunch of testing and narrowed it down to this.
Setting 'Universal Renderer Data/Compatibility/Intermediate Texture = Always' and OpenXR Fovetaed Rendering - Enabled.
-no Foveation seems to be applied, and the GPU performance is cut in half.
If Intermediate Texture is set to 'Auto' and Fovetaed Rendering - Enabled.
- Screen only renders black.
If Intermediate Texture is set to 'Auto' and Fovetaed Rendering - Disabled.
- Screen renders as it should, performance seems normal, but of course no benefit from foveated rendering.
Inside ShapesRenderPass.cs if you add
to the method RecordRenderGraph right after
This seems to partially fix the issue. The screen no longer renders black and immediate mode is drawing correctly, but my foveated rendering is not working. But at least I got everything to render for now.