Re: [PATCH v3 weston] gears: fix invalid calculation of the first FPS

2014-08-18 Thread Pekka Paalanen
On Sun, 10 Aug 2014 23:47:45 +0900 Ryo Munakata wrote: > At the calculation of the first FPS, gears has initialized last > FPS time with gettimeofday(). > But the callback_data passed in the callback of wl_surface_frame() > is the current time, in milliseconds, with an undefined base. > Because o

Re: [PATCH v3 weston] gears: fix invalid calculation of the first FPS

2014-08-11 Thread Nils Chr. Brause
On Sun, Aug 10, 2014 at 4:47 PM, Ryo Munakata wrote: > At the calculation of the first FPS, gears has initialized last > FPS time with gettimeofday(). > But the callback_data passed in the callback of wl_surface_frame() > is the current time, in milliseconds, with an undefined base. > Because of

[PATCH v3 weston] gears: fix invalid calculation of the first FPS

2014-08-10 Thread Ryo Munakata
At the calculation of the first FPS, gears has initialized last FPS time with gettimeofday(). But the callback_data passed in the callback of wl_surface_frame() is the current time, in milliseconds, with an undefined base. Because of this subtracting last FPS time from callback_data makes no sense.