Difference between revisions of "love.timer.getFPS"
(Clarification.) |
|||
Line 1: | Line 1: | ||
Returns the current frames per second. | Returns the current frames per second. | ||
+ | |||
+ | Displaying the FPS with [[love.graphics.print]] or [[love.graphics.setCaption]] can have an impact on this value. Keep this in mind while benchmarking your game. | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 9: | Line 11: | ||
=== Returns === | === Returns === | ||
{{param|number|fps|The current FPS.}} | {{param|number|fps|The current FPS.}} | ||
− | |||
− | |||
− | |||
== See Also == | == See Also == | ||
* [[parent::love.timer]] | * [[parent::love.timer]] |
Revision as of 21:09, 24 January 2012
Returns the current frames per second.
Displaying the FPS with love.graphics.print or love.graphics.setCaption can have an impact on this value. Keep this in mind while benchmarking your game.
Function
Synopsis
fps = love.timer.getFPS( )
Arguments
None.
Returns
number fps
- The current FPS.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info