Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

getFPS

getFPS()

Returns the current FPS count. This allows you to chose how to display, or log, the current FPS count.

// draws the fps counter on every frame
onEachFrame()
    fps = getFPS()
    drawText( fps, 100, 100 )
end

See Also