Phaser API Documentation

  Version: 
fpsLimit: number

Description:

Enforce a frame rate limit. This forces how often the Game step will run. By default it is zero, which means it will run at whatever limit the browser (via RequestAnimationFrame) can handle, which is the optimum rate for fast-action or responsive games.

However, if you are building a non-game app, like a graphics generator, or low-intensity game that doesn't require 60fps, then you can lower the step rate via this Game Config value:

fps: {
  limit: 30
}

Setting this beyond the rate of RequestAnimationFrame will make no difference at all.

Use it purely to restrict updates in low-intensity situations only.

Type:
number
Default: 0
Since: 3.60.0
Source: src/core/TimeStep.js (Line 115)