[Mesa-dev] [PATCH 1/1] gallium/hud: use double values for all graphs

2017-06-17 Thread Christoph Haag
This specifically helps the fps graph. It calculates the fps like this: (uint64_t)info->frames * 100 / (double)(now - info->last_time); The timings when query_new_value() are called will vary, so fps values of e.g. 59.9 fps will be truncated to 59 fps. Rounding the value before casting to

Re: [Mesa-dev] [PATCH 1/1] gallium/hud: use double values for all graphs

2017-06-19 Thread Marek Olšák
On Sat, Jun 17, 2017 at 4:57 PM, Christoph Haag wrote: > This specifically helps the fps graph. It calculates the fps like this: > (uint64_t)info->frames * 100 / (double)(now - info->last_time); > The timings when query_new_value() are called will vary, so fps values of > e.g. 59.9 fps wil