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)