[clutter] gdk: Fix frame budget diagnostics
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] gdk: Fix frame budget diagnostics
- Date: Mon, 21 Sep 2015 17:13:32 +0000 (UTC)
commit 3816d5a6bb5257d5f65dbbb40029a353e0523f67
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Sep 17 16:32:33 2015 +0100
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
clutter/gdk/clutter-master-clock-gdk.c | 4 ++++
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 c069f71..ff102a7 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]