diff options
author | Robert Bragg <robert@linux.intel.com> | 2013-02-15 16:51:11 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-02-15 17:44:49 +0000 |
commit | 7ab54be3b7a12da09830d94b596cc759ce85393c (patch) | |
tree | b7fdc688d8cb3215c7506e993b7306af8dac2eb2 /tests | |
parent | 700de0ea8eb00e1704686e64b904485b44340086 (diff) | |
download | cogl-7ab54be3b7a12da09830d94b596cc759ce85393c.tar.gz |
avoid redundant idle if using FRAME_SYNC to throttle
This updates the examples and test-journal which now use the _FRAME_SYNC
events to throttle rendering so that they don't install a redundant idle
handler to paint when they get a FRAME_SYNC event and instead they now
directly paint when the event is received.
(cherry picked from commit 579eb75e6ac6f50d7a9cfe5093435126158b3c96)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/micro-perf/test-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/micro-perf/test-journal.c b/tests/micro-perf/test-journal.c index e7df5893..a96fa3e0 100644 --- a/tests/micro-perf/test-journal.c +++ b/tests/micro-perf/test-journal.c @@ -130,7 +130,7 @@ frame_event_cb (CoglOnscreen *onscreen, void *user_data) { if (event == COGL_FRAME_EVENT_SYNC) - g_idle_add (paint_cb, user_data); + paint_cb (user_data); } int |