4efd82a3b6
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) |
||
---|---|---|
.. | ||
android/hello | ||
cogl-crate.c | ||
cogl-gles2-context.c | ||
cogl-gles2-gears.c | ||
cogl-hello.c | ||
cogl-info.c | ||
cogl-msaa.c | ||
cogl-sdl2-hello.c | ||
cogl-sdl-hello.c | ||
cogl-x11-foreign.c | ||
cogl-x11-tfp.c | ||
cogland.c | ||
crate.jpg | ||
Makefile.am |