Miscellaneous

getfpscap

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

Sintaks

getfpscap(): number
Alias get_fps_cap

Return

NamaTipeDeskripsi
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

Deskripsi

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

Panggil tanpa parameter. Fungsi membaca context yang dibutuhkan dari status runtime saat ini.

Mengembalikan fpsCap (number). Gunakan tabel returns untuk memisahkan nilai sukses, hasil nil, dan error yang bisa dipulihkan.

Contoh

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

local fpsCap = getfpscap()
print(fpsCap)