Miscellaneous

getfpscap

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

ไวยากรณ์

getfpscap(): number
Aliases get_fps_cap

Returns

ชื่อชนิดคำอธิบาย
fpsCapnumberCurrent FPS cap value, or 0 when unavailable.

คำอธิบาย

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

เรียกโดยไม่ต้องมี parameter ฟังก์ชันอ่าน context ที่ต้องใช้จาก runtime state ปัจจุบัน

ส่งคืน fpsCap (number) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้

ตัวอย่าง

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

local fpsCap = getfpscap()
print(fpsCap)