mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
Decrease the main-loop priority of the frame cycle
Change CLUTTER_PRIORITY_REDRAW to be lower than the GTK+ resize and relayout priorities to avoid starving GTK+ when run in the same process as clutter. Remove the unused CLUTTER_PRIORITY_TIMELINE http://bugzilla.openedhand.com/show_bug.cgi?id=1637 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
fc83e36477
commit
64bb2e694f
@ -66,20 +66,15 @@ GQuark clutter_init_error_quark (void);
|
||||
/**
|
||||
* CLUTTER_PRIORITY_REDRAW:
|
||||
*
|
||||
* Priority of the redraws.
|
||||
* Priority of the redraws. This is chosen to be lower than the GTK+
|
||||
* redraw and resize priorities, because in application with both
|
||||
* GTK+ and Clutter it's more likely that the Clutter part will be
|
||||
* continually animating (and thus able to starve GTK+) than
|
||||
* vice-versa.
|
||||
*
|
||||
* Since: 0.8
|
||||
*/
|
||||
#define CLUTTER_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 20)
|
||||
|
||||
/**
|
||||
* CLUTTER_PRIORITY_TIMELINE:
|
||||
*
|
||||
* Priority of the timelines.
|
||||
*
|
||||
* Since: 0.8
|
||||
*/
|
||||
#define CLUTTER_PRIORITY_TIMELINE (G_PRIORITY_DEFAULT + 30)
|
||||
#define CLUTTER_PRIORITY_REDRAW (G_PRIORITY_HIGH_IDLE + 50)
|
||||
|
||||
/* Initialisation */
|
||||
void clutter_base_init (void);
|
||||
|
Loading…
Reference in New Issue
Block a user