diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-27 00:29:17 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-27 00:29:17 +0300 |
commit | d09f9c0d1dd579a640ac4e02d19e8b858f2f1e65 (patch) | |
tree | afe6b98c3ee2bd14c855a1124774cdadc28cd176 | |
parent | dd22ea051a643a1ca2657958c8552849dc1ffa36 (diff) | |
download | minetest-d09f9c0d1dd579a640ac4e02d19e8b858f2f1e65.tar.gz minetest-d09f9c0d1dd579a640ac4e02d19e8b858f2f1e65.tar.bz2 minetest-d09f9c0d1dd579a640ac4e02d19e8b858f2f1e65.zip |
made dtime jitter compare value and fps calculation a bit faster changing
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 55ae6686e..30206bf40 100644 --- 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.98 + dtime * 0.02; + dtime_avg1 = dtime_avg1 * 0.96 + dtime * 0.04; f32 dtime_jitter1 = dtime - dtime_avg1; static f32 dtime_jitter1_max_sample = 0.0; |