WoW API: GetFramerate

From AddOn Studio
Revision as of 17:29, 6 January 2007 by WoWWiki>Hobinbot (upgraded deprecated template)
Jump to navigation Jump to search

WoW API < GetFramerate

Retrieve the current framerate (frames / second).

local framerate = GetFramerate();

Arguments
none

Returns
framerate
Float - The current framerate in frames per second.

Example
 local framerate = GetFramerate();
 message("Your current FPS is " .. floor(framerate) .. "fps.");
Result

Displays the current framerate in a message box.


Description
Returns the current framerate.