From 64bb2e694fde2656c26b3b0bf60edbab544ba7ee Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 6 Jun 2009 19:31:32 -0400 Subject: [PATCH] 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 --- clutter/clutter-main.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/clutter/clutter-main.h b/clutter/clutter-main.h index 194faec6f..d36f8f16f 100644 --- a/clutter/clutter-main.h +++ b/clutter/clutter-main.h @@ -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);