mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
made dtime jitter compare value and fps calculation a bit faster changing
This commit is contained in:
parent
dd22ea051a
commit
d09f9c0d1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user