mutter/cogl
Erico Nunes 523b27e267 cogl/onscreen: Discard depth/stencil before swapping buffers
Marking the the depth/stencil as discarded before swapping buffers for
the screen signals the GPU that we don't need to keep them around for
the future.
This helps performance by reducing memory bandwidth usage in some GPUs
which may optimize to not write those buffers back to memory at all
after rendering, when they would just be cleared right after that
anyway.
It is not necessary to mark buffers as discarded after swapping buffers.
This should have no effect according to the spec (since that is going to
be followed by new rendering commands which make the buffer valid again)
and removing that has shown no impact in performance tests.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2091>
2023-02-08 15:01:34 +00:00
..
cogl cogl/onscreen: Discard depth/stencil before swapping buffers 2023-02-08 15:01:34 +00:00
cogl-pango g-i: Drop unneeded since/stability annotations 2022-11-22 13:32:52 +01:00
.gitignore
cogl-config.h.meson
cogl-mutter-config.h.in
config-custom.h
meson.build build: Fix Sysprof interface path with split sysprof package 2023-01-28 10:34:57 +01:00