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())