getfpscap
Gets the current FPS cap.
Syntax
getfpscap() -> numberReturns
| Type | Description |
|---|---|
number | Current 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)
endRelated Functions
setfpscap- Set FPS cap