Miscellaneous

setfpscap

Sets the FPS cap value and returns no values.

الصيغة

setfpscap(value: number)
أسماء بديلة set_fps_cap

الوسائط

الاسمالنوعالوصف
valuenumberRequested FPS cap.

الوصف

Sets the FPS cap value and returns no values. Values that are non-finite, less than or equal to 0, or greater than 2000 are treated as 2000.

استدعه مع 1 parameter: value. يوضح جدول arguments القيم المطلوبة والقيم التي تضبط السلوك.

لا يعيد بيانات. تعامل مع الاستدعاء كإجراء وتعامل مع الأخطاء حول موضع الاستدعاء عند الحاجة.

مثال

Set the TaskScheduler FPS cap field and read it back with getfpscap.

setfpscap(240)
print(getfpscap())