diff options
author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2020-07-09 17:48:32 +0800 |
---|---|---|
committer | Robert Mader <robert.mader@posteo.de> | 2020-08-30 12:04:07 +0000 |
commit | 86af337585e35aad9caa094da63a9ca887f6e0c9 (patch) | |
tree | b7fd2ee5ccda5b3d417571fcbf53280a782cf529 /src/wayland/meta-xwayland-dnd.c | |
parent | 30809665d84ac1a74c8787219579e65b5d1e612f (diff) | |
download | mutter-86af337585e35aad9caa094da63a9ca887f6e0c9.tar.gz |
background-content: Use redraw_clip when culling is unavailable
When in the overview culling via `self->clip_region` is unavailable.
The region is `NULL` because the paint call has not originated from a
`WindowGroup`, because the overview does not use `WindowGroup`.
So the main wallpaper was being painted in full while in the overview.
That's a waste of effort because `redraw_clip` is going to be used to
stencil/scissor out only the parts that are changing. We don't need to
paint *most* of the wallpaper, only the parts behind anything changing.
For the overview this reduces GPU power usage (intel_gpu_top) roughly
10% and reduces render times almost as much.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1363
Diffstat (limited to 'src/wayland/meta-xwayland-dnd.c')
0 files changed, 0 insertions, 0 deletions