Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Usage of GL.Flush in the rendering process stalls rendering thread #48

Open
justonia opened this issue Oct 10, 2019 · 0 comments
Open

Comments

@justonia
Copy link

In the Holoplay.cs script where rendering is done, there is a call to:

GL.Flush() with the comment that it helps 3D cursor ReadPixels faster.

On my machines (Pro Vega 20, RTX 2070) this introduces up to 0.15ms of GPU stalling between each render view. It can be seen in the profiler as Gfx.WaitForCommands. Given how many views get rendered each frame, this is a not-insignificant performance issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant