mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-06 06:47:23 -04:00
We are spending quite significant CPU time walking through the clip rects, taking a pixman box, converting it to a wlr box, intersecting it and ultimately converting it back to a pixman box before adding it to the rect union. Just intersect the clip region once ahead of time, and use pixman boxes the entire way. This also makes it easy to bail early if nothing intersects. Gives a small 97.95% reduction in CPU time for the Vulkan renderer in the grid/clip200/1024 benchmark. Signed-off-by: Kenny Levinsen <kl@kl.wtf> |
||
|---|---|---|
| .. | ||
| shaders | ||
| meson.build | ||
| pass.c | ||
| pixel_format.c | ||
| renderer.c | ||
| texture.c | ||
| util.c | ||
| vulkan.c | ||