Difference between revisions of "love.timer.getFPS"
m (Removed bad advice) |
|||
Line 1: | Line 1: | ||
Returns the current frames per second. | Returns the current frames per second. | ||
− | |||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Revision as of 17:20, 6 June 2013
Returns the current frames per second.
Function
Synopsis
fps = love.timer.getFPS( )
Arguments
None.
Returns
number fps
- The current FPS.
Examples
Display text at the top left of the screen showing the current FPS.
function love.draw()
love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10)
end
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