CycleData: { delta: number; elapsed: number; now: number }

Data representing the current cycle of the particle system's update loop.

Type declaration

  • delta: number
  • elapsed: number
  • now: number
const cycleData: CycleData = {
now: performance.now(),
delta: 0.016, // 16ms frame time
elapsed: 1.25, // 1.25 seconds since start
};