Phaser API Documentation

  Version: 
setFps([fps])

Description:

Limits the Tween system to run at a particular frame rate.

You should not set this above the frequency of the browser, but instead can use it to throttle the frame rate lower, should you need to in certain situations.

Parameters:

name type arguments Default description
fps number <optional> 240

The frame rate to tick at.

Returns:
Description:

This Tween Manager instance.

Since: 3.60.0