Re: [PATCH mesa v5 2/2] wayland: Add support for eglSwapInterval

2013-12-07 Thread Kristian Høgsberg
On Fri, Nov 15, 2013 at 01:50:50PM +, Neil Roberts wrote: > The Wayland EGL platform now respects the eglSwapInterval value. The value is > clamped to either 0 or 1 because it is difficult (and probably not useful) to > sync to more than 1 redraw. > > The main change is that if the swap interv

Re: [PATCH mesa v5 2/2] wayland: Add support for eglSwapInterval

2013-11-15 Thread Axel Davy
I'm not sure waiting 10ms when all the buffers aren't released is the best solution. In fact, I experimented a eglSwapInterval(0) behaviour with a simple patch to enable it: having 4 back buffers and using a roundtrip after commiting (that is: a bit similar to what you do, but without the poll

[PATCH mesa v5 2/2] wayland: Add support for eglSwapInterval

2013-11-15 Thread Neil Roberts
The Wayland EGL platform now respects the eglSwapInterval value. The value is clamped to either 0 or 1 because it is difficult (and probably not useful) to sync to more than 1 redraw. The main change is that if the swap interval is 0 then Mesa won't install a frame callback so that eglSwapBuffers