1
0
Fork 0
mutter-performance-source/examples
Neil Roberts 4efd82a3b6 Convert the two SDL examples to use the frame callback
The two SDL examples now throttle their rendering to the
COGL_FRAME_EVENT_SYNC event. Previously the examples would redraw
whenever a mouse motion event is received but now they additionally
wait for the sync event which means that if another mouse event comes
immediately after rendering the last frame it theoretically could
avoid blocking waiting for the last frame to complete. In practice
however the SDL winsys doesn't support swap events so it will get the
sync event immediately anyway, but it's nice to have the code as an
example and a test.

This patch also changes the mainloop a bit to do the equivalent steps
without the outer main loop which I think makes it a bit easier to
follow.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 97cdd832dded2ebfaa42ee4bc43319cb8648d01b)
2013-01-31 16:56:08 +00:00
..
android/hello Adds CoglError api 2013-01-22 17:47:39 +00:00
cogl-crate.c cogl-crate: use new _add_frame_callback api 2013-01-30 20:09:49 +00:00
cogl-gles2-context.c Adds CoglError api 2013-01-22 17:47:39 +00:00
cogl-gles2-gears.c Adds CoglError api 2013-01-22 17:47:39 +00:00
cogl-hello.c cogl-hello: use new _add_frame_callback api 2013-01-30 20:09:49 +00:00
cogl-info.c renderer: expose CoglOutputs 2013-01-30 19:57:22 +00:00
cogl-msaa.c Adds CoglError api 2013-01-22 17:47:39 +00:00
cogl-sdl-hello.c Convert the two SDL examples to use the frame callback 2013-01-31 16:56:08 +00:00
cogl-sdl2-hello.c Convert the two SDL examples to use the frame callback 2013-01-31 16:56:08 +00:00
cogl-x11-foreign.c Adds CoglError api 2013-01-22 17:47:39 +00:00
cogl-x11-tfp.c Adds CoglError api 2013-01-22 17:47:39 +00:00
cogland.c Adds CoglError api 2013-01-22 17:47:39 +00:00
crate.jpg Adds another example that draws a 3D crate 2011-06-30 14:33:11 +01:00
Makefile.am build: update to build with automake 1.13 2013-01-22 18:00:05 +00:00