GetFPSLimit: Difference between revisions
Jump to navigation
Jump to search
m (Lua converts numbers automatically) |
ThePiotrek (talk | contribs) mNo edit summary |
||
Line 21: | Line 21: | ||
addCommandHandler ( "fpslimit", fpsLim ) | addCommandHandler ( "fpslimit", fpsLim ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[pl:getFPSLimit]] | |||
==See Also== | ==See Also== | ||
{{Server functions}} | {{Server functions}} |
Revision as of 17:43, 21 July 2016
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 100 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 fpsLim() outputChatBox ( "The FPS limit is: " .. getFPSLimit () ) end -- Add console command "fpslimit" which calls the function fpsLim addCommandHandler ( "fpslimit", fpsLim )
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown