From 0d36f4f1dd0590564d0165014c159f2a379546d5 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 12 Nov 2012 13:43:28 -0500 Subject: [PATCH] Use XSyncSetPriority() Use XSyncSetPriority() to prioritize the compositor above applications for X server priority. In practice, this makes little difference because the Xorg "smart scheduler" will schedule in a single application for time slices that exceed the frame drawing time, but it's theoretically right and might make a difference if the X server scheduler is improved. https://bugzilla.gnome.org/show_bug.cgi?id=685463 --- src/core/display.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index a17d9d198..922304f52 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -639,8 +639,11 @@ meta_display_open (void) the_display->xsync_event_base = 0; } else - the_display->have_xsync = TRUE; - + { + the_display->have_xsync = TRUE; + XSyncSetPriority (the_display->xdisplay, None, 10); + } + meta_verbose ("Attempted to init Xsync, found version %d.%d error base %d event base %d\n", major, minor, the_display->xsync_error_base,