projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd22ea0
)
made dtime jitter compare value and fps calculation a bit faster changing
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 26 Jun 2011 21:29:17 +0000
(
00:29
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 26 Jun 2011 21:29:17 +0000
(
00:29
+0300)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index 55ae6686edd4ccc41b348af8c183dbadba418ee8..30206bf40cd5cbee42be58bd47ce6c9f5407548b 100644
(file)
--- a/
src/game.cpp
+++ b/
src/game.cpp
@@
-1099,7
+1099,7
@@
void the_game(
*/
static f32 dtime_avg1 = 0.0;
- dtime_avg1 = dtime_avg1 * 0.9
8 + dtime * 0.02
;
+ dtime_avg1 = dtime_avg1 * 0.9
6 + dtime * 0.04
;
f32 dtime_jitter1 = dtime - dtime_avg1;
static f32 dtime_jitter1_max_sample = 0.0;