Miscellaneous

getfpscap

Returns the current FPS cap value represented by Roblox, or 0 when the value cannot be read.

Syntaxe

getfpscap(): number
Alias get_fps_cap

Retours

NomTypeDescription
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Description

Returns the current FPS cap value represented by Roblox, or 0 when the value cannot be read.

Appelle le sans parametre. La fonction lit le contexte necessaire depuis l etat runtime actuel.

Il renvoie fpsCap (number). Utilise la table des retours pour separer les valeurs reussies, les resultats nil et les erreurs recuperables.

Exemple

Read the FPS cap value currently represented by the TaskScheduler cap field.

local fpsCap = getfpscap()
print(fpsCap)