Skip to content

@web-engine-dev/time


@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?

optional maxUpdatesPerFrame: number

Maximum number of fixed updates per frame (prevents spiral of death)


timestep?

optional timestep: number

Fixed timestep in seconds (default: 1/60)

Proprietary software. All rights reserved.