Phaser API Documentation

  Version: 
start(callback, forceSetTimeOut, targetFPS)

Description:

Starts the requestAnimationFrame or setTimeout process running.

Parameters:

name type description
callback FrameRequestCallback

The callback to invoke each step.

forceSetTimeOut boolean

Should it use SetTimeout, even if RAF is available?

targetFPS number

The target fps rate (in ms). Only used when setTimeout is used.

Since: 3.0.0