WoW:API GetFramerate

Revision as of 13:34, 11 June 2006 by WoWWiki>Starlightblunder ((Completes previous edit))

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.

Template:WoW API