Engine

core.engine.get_fps_limit

Shared

Retrieves current maximum frames per second

Syntax

local limit = core.engine.get_fps_limit()

Behaviour depends on where it is called.

  • Server — returns the FPS limit currently enforced on all clients.
  • Client — returns the FPS limit currently in effect, which is the lower of the server's limit and the local limit.
  • No limit — 0 means no limit is applied.

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intlimitCurrent maximum frames per second

Examples

Prints current FPS limit
core.engine.print("info", "FPS Limit:", core.engine.get_fps_limit())

On this page