projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332af88
)
gallium/hud: fix FPS computation for framerate > 4.2k
author
Marek Olšák
<maraeo@gmail.com>
Thu, 11 Apr 2013 11:16:42 +0000
(13:16 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 16 Apr 2013 11:56:47 +0000
(13:56 +0200)
src/gallium/auxiliary/hud/hud_fps.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/hud/hud_fps.c
b/src/gallium/auxiliary/hud/hud_fps.c
index
71cdfd0
..
80381f5
100644
(file)
--- a/
src/gallium/auxiliary/hud/hud_fps.c
+++ b/
src/gallium/auxiliary/hud/hud_fps.c
@@
-47,7
+47,8
@@
query_fps(struct hud_graph *gr)
if (info->last_time) {
if (info->last_time + gr->pane->period <= now) {
- double fps = info->frames * 1000000 / (double)(now - info->last_time);
+ double fps = (uint64_t)info->frames * 1000000 /
+ (double)(now - info->last_time);
info->frames = 0;
info->last_time = now;