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 个参数调用: value。参数表会说明哪些值必填,哪些值只用于细化行为。

不返回数据。将调用视为一个动作,并在调用点附近处理错误。

示例

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

setfpscap(240)
print(getfpscap())