More lenient max deltatime to avoid physics lag

Former-commit-id: bdd4a9d634f9aa1e52ab3885e5b8a49348011760
This commit is contained in:
Joshua Barretto 2019-05-17 13:39:40 +01:00
parent babb5ff0cd
commit fa052a22b7

View File

@ -39,7 +39,7 @@ pub struct DeltaTime(pub f32);
/// too fast, we'd skip important physics events like collisions. This constant determines what
/// the upper limit is. If delta time exceeds this value, the game's physics will begin to produce
/// time lag. Ideally, we'd avoid such a situation.
const MAX_DELTA_TIME: f32 = 0.05;
const MAX_DELTA_TIME: f32 = 0.15;
pub struct Changes {
pub new_chunks: HashSet<Vec3<i32>>,