Miscellaneous

getfpscap

Returns the current FPS cap value represented by Roblox, or 0 when the value cannot be read.

構文

getfpscap(): number
エイリアス get_fps_cap

戻り値

名前説明
fpsCapnumberCurrent 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)