Volt

getfpscap

Gets the current FPS cap.

Syntax

getfpscap() -> number

Returns

TypeDescription
numberCurrent FPS cap

Description

getfpscap returns the current maximum FPS setting.

Example

local currentCap = getfpscap()
print("Current FPS cap:", currentCap)

-- Toggle between capped and uncapped
if currentCap == 0 then
    setfpscap(60)
else
    setfpscap(0)
end

On this page