Skip to content

GetDebugFPS()

The GetDebugFPS Lua function returns a float number with the frames per second.

This function does not accept any arguments.

  • Number:
    The returned number indicates the current frames per second.

This example prints the FPS number:

Copy CodeLua
```
return function ()
-- Prints the current frames per second.
Printf("Current FPS: " .. GetDebugFPS())

end