構文
getfpscap(): numberエイリアス
get_fps_cap戻り値
| 名前 | 型 | 説明 |
|---|---|---|
fpsCap | number | Current FPS cap value, or 0 when unavailable. |
説明
Returns the current FPS cap value represented by Roblox, or 0 when the value cannot be read.
パラメータなしで呼び出します。関数は現在の runtime 状態から必要な context を読み取ります。
fpsCap (number) を返します。戻り値表を使って成功値、nil 結果、回復可能なエラーを分けて扱ってください。
例
Read the FPS cap value currently represented by the TaskScheduler cap field.
local fpsCap = getfpscap()
print(fpsCap)