From d09f9c0d1dd579a640ac4e02d19e8b858f2f1e65 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 27 Jun 2011 00:29:17 +0300 Subject: [PATCH] made dtime jitter compare value and fps calculation a bit faster changing --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;