Miscellaneous

getfpscap

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

الصيغة

getfpscap(): number
أسماء بديلة get_fps_cap

القيم الراجعة

الاسمالنوعالوصف
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.

استدعه من دون parameters. تقرأ الدالة السياق المطلوب من حالة runtime الحالية.

يعيد fpsCap (number). استخدم جدول returns للفصل بين قيم النجاح ونتائج nil والأخطاء القابلة للمعالجة.

مثال

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

local fpsCap = getfpscap()
print(fpsCap)