Miscellaneous

getfpscap

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

Syntax

getfpscap(): number
Aliase get_fps_cap

Rückgaben

NameTypBeschreibung
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Beschreibung

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

Rufe es ohne Parameter auf. Die Funktion liest den nötigen Kontext aus dem aktuellen Runtime-Status.

Es gibt fpsCap (number) zurück. Nutze die Rückgabetabelle, um erfolgreiche Werte von nil-Ergebnissen und behandelbaren Fehlern zu trennen.

Beispiel

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

local fpsCap = getfpscap()
print(fpsCap)