@web-engine-dev/time / FixedTimeConfig
Interface: FixedTimeConfig
Fixed timestep configuration
Example
typescript
const config: FixedTimeConfig = {
timestep: 1 / 60, // 60 Hz physics updates
maxUpdatesPerFrame: 5, // Prevent spiral of death
};Properties
maxUpdatesPerFrame?
optionalmaxUpdatesPerFrame:number
Maximum number of fixed updates per frame (prevents spiral of death)
timestep?
optionaltimestep:number
Fixed timestep in seconds (default: 1/60)