G.FrameNumber

From GMod Wiki

Revision as of 16:30, 13 June 2010 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax FrameNumber( )
Where is this used?
Description:
Returns the number of frames that have been displayed until then.
Returns: Integer
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.FrameNumber]G.FrameNumber [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example will print your FPS in the console (Don't type it in the console or the results will be flawed.)
Used onNewerClient.png
Code
local reference = FrameNumber()
timer.Simple(1, function() print(FrameNumber() - reference ) end)
OutputYour FPS.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox