Re: why wi_surface_frame callback delay two frames

2015-05-05 Thread Pekka Paalanen
On Tue, 5 May 2015 09:14:42 + Nancy Zou wrote: > Hi Pekka > > >>how do you differ from the main loops and event handlers in Weston's > >>simple-shm.c or simple-egl.c? > >>Are you using EGL? Which implementation of EGL? > > I try to do a implementation for the wayland-egl flip driver becaus

RE: why wi_surface_frame callback delay two frames

2015-05-05 Thread Nancy Zou
Hi Pekka >>how do you differ from the main loops and event handlers in Weston's >>simple-shm.c or simple-egl.c? >>Are you using EGL? Which implementation of EGL? I try to do a implementation for the wayland-egl flip driver because my linux sgx driver don't support wayland now. When I do it, I r

Re: why wi_surface_frame callback delay two frames

2015-05-05 Thread Pekka Paalanen
On Tue, 5 May 2015 06:53:44 + Nancy Zou wrote: > Hi all > > My wayland/Weston version is 1.5.0. > > I use wl_surface_frame to listen the frame done callback info. I get the > frame 0 callback when the frame 2 is drawing. If I wait for frame 0 callback > when drawing frame 1, the program i

why wi_surface_frame callback delay two frames

2015-05-05 Thread Nancy Zou
Hi all My wayland/Weston version is 1.5.0. I use wl_surface_frame to listen the frame done callback info. I get the frame 0 callback when the frame 2 is drawing. If I wait for frame 0 callback when drawing frame 1, the program is in dead loop. Does this result is right? Is there any problem in