Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
Category: debug (27)
fpsCategories
Parameters
noneInfo
Prints the current FPS value (frames per second) to the console.
CS2D's FPS are limited to 60.
Note: Useful to check if a server runs at maximum speed (60 FPS)
Note: Dedicated servers do not render frames so the term "FPS" is a bit misleading. They are still limited to 50 main game loop iterations per second which is meant by "FPS" when using this command on a dedicated server. If the value drops below 60 often it means that the server hardware can't keep up with the action going on on the server.
Lua Hooks
Lua Commands
Categories
Parameters
none
Info
Prints the current FPS value (frames per second) to the console.
CS2D's FPS are limited to 60.
CS2D's FPS are limited to 60.
Note: Useful to check if a server runs at maximum speed (60 FPS)
Note: Dedicated servers do not render frames so the term "FPS" is a bit misleading. They are still limited to 50 main game loop iterations per second which is meant by "FPS" when using this command on a dedicated server. If the value drops below 60 often it means that the server hardware can't keep up with the action going on on the server.