summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-09-17 16:32:33 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-09-21 18:03:04 +0100
commit3816d5a6bb5257d5f65dbbb40029a353e0523f67 (patch)
treeeda8762e46767066859e692c86b46e65c4b085fa
parent9e8da646368394f3004e72c4bc4409ad1c473c92 (diff)
downloadclutter-3816d5a6bb5257d5f65dbbb40029a353e0523f67.tar.gz
gdk: Fix frame budget diagnostics
Set the frame budget so that CLUTTER_ENABLE_DIAGNOSTIC correctly outputs timing diagnostics from the ClutterMasterClockGdk. https://bugzilla.gnome.org/show_bug.cgi?id=755357
-rw-r--r--clutter/gdk/clutter-master-clock-gdk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter/gdk/clutter-master-clock-gdk.c b/clutter/gdk/clutter-master-clock-gdk.c
index c069f7139..ff102a754 100644
--- a/clutter/gdk/clutter-master-clock-gdk.c
+++ b/clutter/gdk/clutter-master-clock-gdk.c
@@ -462,6 +462,10 @@ clutter_master_clock_gdk_init (ClutterMasterClockGdk *self)
ClutterStageManager *manager;
const GSList *stages, *l;
+#ifdef CLUTTER_ENABLE_DEBUG
+ self->frame_budget = G_USEC_PER_SEC / 60;
+#endif
+
self->clock_to_stage = g_hash_table_new_full (g_direct_hash, g_direct_equal,
g_object_unref, NULL);
self->stage_to_clock = g_hash_table_new_full (g_direct_hash, g_direct_equal,