G.RealFrameTime

From GMod Wiki

Revision as of 21:45, 2 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax RealFrameTime( )
Where is this used?
Description:
Returns the time it took to render the previous frame.
Returns: Float frametime
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.RealFrameTime]G.RealFrameTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis will print the clients FPS.
Used onNewerClient.png
Code
print( 1 / RealFrameTime() );
Output113.77777777778


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox