made dtime jitter compare value and fps calculation a bit faster changing

This commit is contained in:
Perttu Ahola 2011-06-27 00:29:17 +03:00
parent dd22ea051a
commit d09f9c0d1d
1 changed files with 1 additions and 1 deletions

View 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;