GetDebugFPS()
Description
Section titled âDescriptionâThe GetDebugFPS Lua function returns a float number with the frames per second.
Arguments
Section titled âArgumentsâThis function does not accept any arguments.
- Number:
The returned number indicates the current frames per second.
Example
Section titled âExampleâThis example prints the FPS number:
| Copy CodeLua |
| ``` |
| return function () |
-- Prints the current frames per second.Printf("Current FPS: " .. GetDebugFPS())end