GetFPSLimit
Jump to navigation
Jump to search
This function retrieves the maximum FPS (Frames per second) that players on the server can run their game at.
Syntax
int getFPSLimit ()
Returns
Returns an integer between 25 and 32767 (refer to the note above) of the maximum FPS that players can run their game at.
Example
This example displays a message in the chatbox showing the current FPS limit.
function checkFPSLimit() local fpsLimit = getFPSLimit() outputChatBox("The FPS limit is: "..fpsLimit) end addCommandHandler("checkfpslimit", checkFPSLimit) -- Add command "checkfpslimit" which calls the function checkFPSLimit
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown