Phaser API Documentation

  Version: 
stepLimitFPS(time)

Description:

The main step method with an fps limiter. This is called each time the browser updates, either by Request Animation Frame, or by Set Timeout. It is responsible for calculating the delta values, frame totals, cool down history and more. You generally should never call this method directly.

Parameters:

name type description
time number

The timestamp passed in from RequestAnimationFrame or setTimeout.

Since: 3.60.0
Source: src/core/TimeStep.js (Line 638)