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

2014-08-10 Thread Ryo Munakata
From: Ryo Munakata To: "Nils Chr. Brause" Subject: Re: [PATCH v2 weston] gears: fix invalid calculation of the first FPS Date: Sun, 10 Aug 2014 23:51:40 +0900 X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.24; x86_64-unknown-linux-gnu) On Sun, 10 Aug 2014 16:02:35 +0200 "Nils Chr. Brause

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

2014-08-10 Thread Nils Chr. Brause
On Sun, Aug 10, 2014 at 06:26:36PM +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. > Beca

[PATCH v2 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.