From: Perttu Ahola Date: Sun, 26 Jun 2011 21:29:17 +0000 (+0300) Subject: made dtime jitter compare value and fps calculation a bit faster changing X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d09f9c0d1dd579a640ac4e02d19e8b858f2f1e65;p=zefram%2Fminetest%2Fminetest_engine.git made dtime jitter compare value and fps calculation a bit faster changing --- diff --git a/src/game.cpp b/src/game.cpp index 55ae6686..30206bf4 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;