Miscellaneous

getfpscap

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

Składnia

getfpscap(): number
Aliasy get_fps_cap

Zwroty

NazwaTypOpis
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Opis

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

Wywolaj bez parametrow. Funkcja czyta potrzebny kontekst z aktualnego stanu runtime.

Zwraca fpsCap (number). Uzyj tabeli zwrotow, aby oddzielic wartosci sukcesu, wyniki nil i bledy do obsluzenia.

Przykład

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

local fpsCap = getfpscap()
print(fpsCap)