The scale at which time passes. Default is 1.
The time in seconds it took to complete the last frame (Read Only).
The time in seconds it took to complete the last frame (Read Only). Timescale is not applied.
FPS for this frame.
Note that this returns the raw value (e.g. 59.88023952362959) and will fluctuate a lot between frames.
If you want a more stable FPS, use smoothedFps instead.
same as frameCount
The total number of frames that have passed (Read Only). Same as frame
The time in seconds it took to complete the last frame (Read Only).
The smoothed time in seconds it took to complete the last frame (Read Only).
Approximated frames per second
the smoothed FPS value over the last 60 frames with decimals.
The time in seconds since the start of Needle Engine.
Provides time-related information for frame-based game logic.
Access via
this.context.timefrom any component.Example: Using deltaTime for frame-rate independent movement
Example: Checking elapsed time