WoW:API GetFramerate: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
((Completes previous edit))
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
Retrieve the current framerate (frames / second).
Retrieve the current framerate (frames / second).


Line 24: Line 25:


: Returns the current framerate.
: Returns the current framerate.
----
{{WoW API}}

Revision as of 17:29, 6 January 2007

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.