mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
frontend/widgets: Optimize preview primitive rendering
Certain draw calls were creating/destroying vertex buffers. Every call. That's kind of not a great thing to do, so instead use the new gs_draw_quadf() function to optimize rendering and reduce the need for swapping vertex buffers. Also uses a shader for DrawStripedLine so it does not have to split it up into separate draw calls.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f