ReferenceMiscellaneous

getfpscap

Reads the current instance’s requested frame limit.

Syntax

getfpscap() -> number

Also available as

get_fps_cap

Returns

TypeDescription
numberRequested limit; zero means uncapped.

Description

Zero means uncapped; finite values of at least 1 are supported. The cap is a limit, not a promise of achieved performance. VSync, the display compositor, rendering load and system resources can impose a lower actual frame rate.

Example

setfpscap(60)
print(getfpscap())

These are Game executor contracts. Check build requirements and session lifetimes before using them.