Difference between revisions of "love.timer.getFPS"

m (1 revision: Importing from potato (again).)
m (added note about getFPS()'s performance)
Line 1: Line 1:
 
 
Returns the current frames per second.
 
Returns the current frames per second.
 
== Function ==
 
== Function ==
Line 10: Line 9:
 
=== Returns ===
 
=== Returns ===
 
{{param|number|fps|The current FPS.}}
 
{{param|number|fps|The current FPS.}}
 +
 +
=== Notes ===
 +
* getFPS() is known for poor performance, ironically reducing the FPS its designed to measure.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.timer]]
 
* [[parent::love.timer]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the current frames per second.}}
 
{{#set:Description=Returns the current frames per second.}}

Revision as of 13:26, 16 June 2010

Returns the current frames per second.

Function

Synopsis

fps = love.timer.getFPS( )

Arguments

None.

Returns

number fps
The current FPS.

Notes

  • getFPS() is known for poor performance, ironically reducing the FPS its designed to measure.

See Also