Skip to content

CF_DELTA_TIME_INTERPOLANT

Category: time
GitHub: cute_time.h


The remaining interpolant between two fixed timestep updates, used for rendering.

Remarks

When fixed-timestepping is used (turned on by cf_set_fixed_timestep) usually rendering happens at a different frequency than the fixed updates. To produce smooth visuals, the current time is mod'd producing an interpolant value from [0,1]. Typically games will store two transforms, the previous and current transform, each representing a position at a fixed timestep interval. This interpolant value is to interpolate between these two states to produce a smooth rendering transition.

CF_DELTA_TIME
cf_update_time
CF_OnUpdateFn
cf_set_fixed_timestep_max_updates
cf_set_fixed_timestep