[−][src]Function tetra::time::get_blend_factor_precise
pub fn get_blend_factor_precise(ctx: &Context) -> f64
Returns a precise value between 0.0 and 1.0, representing how far between updates the game loop currently is.
For example, if the value is 0.01, an update just happened; if the value is 0.99, an update is about to happen.
This can be used to interpolate when rendering.
This function returns an f64, which is a very precise representation of the blend factor,
but often difficult to use in game logic without casting. If you need an f32
, call
time::get_blend_factor
instead.