grandMA3 User Manual Publication
GetDebugFPS()

grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetDebugFPS()
Version 2.0

Description

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

Arguments

This function does not accept any arguments.

Return

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

Example

This example prints the FPS number:

Lua
return function ()
-- Prints the current frames per second.
Printf("Current FPS: " .. GetDebugFPS())
end