Cú pháp
setfpscap(value: number)Alias
set_fps_capĐối số
| Tên | Kiểu | Mô tả |
|---|---|---|
value | number | Requested FPS cap. |
Mô tả
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.
Goi voi 1 parameter: value. Bang arguments giai thich gia tri nao bat buoc va gia tri nao chi tinh chinh hanh vi.
Khong tra ve du lieu. Xem call nhu mot action va xu ly loi quanh vi tri goi khi can.
Ví dụ
Set the TaskScheduler FPS cap field and read it back with getfpscap.
setfpscap(240)
print(getfpscap())