Re: [PATCH] Flush the wl_display at the end of SwapBuffers

2013-12-04 Thread Kristian Høgsberg
On Wed, Dec 04, 2013 at 02:36:05PM +, Neil Roberts wrote: > I think this is a good idea. Imagine a simple game main loop like this: > > while (TRUE) { > do_some_game_logic(); > redraw(); > eglSwapBuffers(); > } > > In that case it wouldn't flush the commit until the righ

Re: [PATCH] Flush the wl_display at the end of SwapBuffers

2013-12-04 Thread Giulio Camuffo
2013/12/4 Neil Roberts : > I think this is a good idea. Imagine a simple game main loop like this: > > while (TRUE) { > do_some_game_logic(); > redraw(); > eglSwapBuffers(); > } > > In that case it wouldn't flush the commit until the right at the > beginning of each call to

Re: [PATCH] Flush the wl_display at the end of SwapBuffers

2013-12-04 Thread Neil Roberts
I think this is a good idea. Imagine a simple game main loop like this: while (TRUE) { do_some_game_logic(); redraw(); eglSwapBuffers(); } In that case it wouldn't flush the commit until the right at the beginning of each call to eglSwapBuffers when it waits for the frame

[PATCH] Flush the wl_display at the end of SwapBuffers

2013-12-03 Thread Axel Davy
We would like the compositor to receive the commited buffer as soon as possible, so it has the time to treat it, and release old ones. We shouldn't rely on the client to flush the queue for us. Signed-off-by: Axel Davy --- We flush the wl_display after we flush the drawable. src/egl/drivers/dr