mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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
This commit is contained in:
parent
d8696c17be
commit
fcc178ee8c
@ -633,7 +633,10 @@ meta_display_open (void)
|
|||||||
the_display->xsync_event_base = 0;
|
the_display->xsync_event_base = 0;
|
||||||
}
|
}
|
||||||
else
|
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",
|
meta_verbose ("Attempted to init Xsync, found version %d.%d error base %d event base %d\n",
|
||||||
major, minor,
|
major, minor,
|
||||||
|
Loading…
Reference in New Issue
Block a user