It looks like you're new here. If you want to get involved, click one of these buttons!
function onEnterFrame(event) local fps = 1/event.deltaTime print(fps) end
local frame = 0 local timer = os.timer() local function displayFps() frame = frame + 1 if frame == 60 then local currentTimer = os.timer() print(60 / (currentTimer - timer)) frame = 0 timer = currentTimer end end stage:addEventListener(Event.ENTER_FRAME, displayFps)
Comments
www.tntengine.com
I don't know if there's the same facility with Android.
If i build and run project from eclipse, i can see fps in logcat
The fps seen in Xcode console and logcat uses a algorithm like: