summaryrefslogtreecommitdiff
path: root/gsk/gskdebug.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-08 19:56:56 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-09 18:35:51 +0100
commitb2e30fb66e2fe85f94fe8a5a3a5a23bd9435253a (patch)
tree1510bbacf759e49340e3b2a9567bcc5c3108c7ab /gsk/gskdebug.c
parentac9d48151bdf316f4dcb67eac75d73c6c05606a5 (diff)
downloadgtk+-b2e30fb66e2fe85f94fe8a5a3a5a23bd9435253a.tar.gz
vulkan: Don't wait until graphics are done computing
We can let the GPU do its stuff without waiting. The GPU knows what it's doing. Which means we now get a lot of time to spend on doing CPU things (read: we're way better in benchmarks). The old behavior is safer, so we want to keep it around for debugging. It can be reenabled with GSK_RENDERING_MODE=sync.
Diffstat (limited to 'gsk/gskdebug.c')
-rw-r--r--gsk/gskdebug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gsk/gskdebug.c b/gsk/gskdebug.c
index bf82b892c8..02ed8b8de0 100644
--- a/gsk/gskdebug.c
+++ b/gsk/gskdebug.c
@@ -16,6 +16,8 @@ static const GDebugKey gsk_debug_keys[] = {
static const GDebugKey gsk_rendering_keys[] = {
{ "geometry", GSK_RENDERING_MODE_GEOMETRY },
{ "shaders", GSK_RENDERING_MODE_SHADERS },
+ { "sync", GSK_RENDERING_MODE_SYNC },
+ { "staging-image", GSK_RENDERING_MODE_STAGING_IMAGE },
};
gboolean