Constant veloren_common_state::state::MAX_DELTA_TIME

source ·
const MAX_DELTA_TIME: f32 = 1.0;
Expand description

At what point should we stop speeding up physics to compensate for lag? If we speed physics up too fast, we’d skip important physics events like collisions. This constant determines the upper limit. If delta time exceeds this value, the game’s physics will begin to produce time lag. Ideally, we’d avoid such a situation.