Miscellaneous

getfpscap

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

Cú pháp

getfpscap(): number
Alias get_fps_cap

Giá trị trả về

TênKiểuMô tả
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Mô tả

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

Goi khong can parameter. Function doc context can thiet tu runtime state hien tai.

Tra ve fpsCap (number). Dung bang returns de tach gia tri thanh cong, ket qua nil va loi co the xu ly.

Ví dụ

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

local fpsCap = getfpscap()
print(fpsCap)