made dtime jitter compare value and fps calculation a bit faster changing
authorPerttu Ahola <celeron55@gmail.com>
Sun, 26 Jun 2011 21:29:17 +0000 (00:29 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 26 Jun 2011 21:29:17 +0000 (00:29 +0300)
src/game.cpp

index 55ae6686edd4ccc41b348af8c183dbadba418ee8..30206bf40cd5cbee42be58bd47ce6c9f5407548b 100644 (file)
@@ -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;