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

2013-09-13 Thread Pekka Paalanen
On Wed, 11 Sep 2013 22:29:13 +0200 Axel Davy wrote: > I think you should too set the number of back buffers to 4 instead of > 3. > > It looks like if the compositor wants to use the buffers as > framebuffers and do a pageflip, > it uses 2 buffers at a time (one used for the frame displayed, and

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

2013-09-11 Thread Axel Davy
I think you should too set the number of back buffers to 4 instead of 3. It looks like if the compositor wants to use the buffers as framebuffers and do a pageflip, it uses 2 buffers at a time (one used for the frame displayed, and one used for the pending pageFlip request). The third buffer se

[PATCH 1/2] wayland: Add support for eglSwapInterval

2013-09-11 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 it simply doesn't install a frame callback so that the next