- Documentation
- Server functions
- setFPSLimit
Function
setFPSLimit
Sets the frames per second limit (0-32767). The value is stored for compatibility with existing scripts (getFPSLimit) but does not cap the in-game frames yet; the player sets the limit in the game options.
Syntax
bool setFPSLimit(int fpsLimit)Arguments
fpsLimitint- The limit.
Returns
true on success.
Example
setFPSLimit(60)