[mutter/wip/frame-synchronization: 66/69] Use XSyncSetPriority()
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/frame-synchronization: 66/69] Use XSyncSetPriority()
- Date: Fri, 16 Nov 2012 19:12:56 +0000 (UTC)
commit e2bc53c4705ab8858b501f6781d10e1776289869
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Nov 12 13:43:28 2012 -0500
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 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index bb61d72..507823d 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -642,8 +642,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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]