WoW:API GetFramerate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
((Completes previous edit)) |
||
Line 1: | Line 1: | ||
Retrieve the current framerate (frames / second). | |||
local framerate = GetFramerate(); | |||
---- | ---- | ||
Line 13: | Line 11: | ||
;''Returns'' | ;''Returns'' | ||
:; | :;framerate : Float - The current framerate in frames per second. | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
local framerate = GetFramerate(); | |||
local framerate = GetFramerate(); | message("Your current FPS is " .. floor(framerate) .. "fps."); | ||
;''Result'' | ;''Result'' | ||
Displays the current framerate in a message box. | |||
---- | ---- | ||
;''Description'' | ;''Description'' | ||
: | : Returns the current framerate. | ||
---- | ---- | ||
{{WoW API}} | {{WoW API}} |
Revision as of 13:34, 11 June 2006
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.