WoW:API GetFramerate: Difference between revisions
Jump to navigation
Jump to search
GetFramerate - Documentation by Anti-Gremlin-
No edit summary |
mNo edit summary |
||
Line 37: | Line 37: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|GetFramerate]] | |||
[[Category:API Core Functions|GetFramerate]] |
Revision as of 14:33, 27 August 2005
Retrieve the current Framerate (FPS)
framerate = GetFramerate();
- Arguments
- none
- Returns
- freamrate
- The current frames per second.
- Example
-- Get the FrameRate from the Client
local framerate = GetFramerate();
if(framerate >= 30) then
message( "Great FPS!" );
elseif( framerate < 30 and framerate > 10 ) then
message( "Average FPS..." );
elseif( framerate <= 10 ) then
message( "Bad FPS!!!!" );
end
- Result
Message box appears with what kind of FPS you have.
- Description
- Retrieve the current framerate of your system