textmode.js / Textmodifier / deltaTime
Method: deltaTime()
ts
deltaTime(): number;Time in milliseconds between the current frame and the previous frame.
deltaTime() is useful for creating frame-rate-independent animations. By multiplying velocities and movements by deltaTime(), animations will run at consistent speeds regardless of the actual frame rate.
Returns
number
Milliseconds elapsed since the previous frame.