OK. I took a deeper look. Unfortunately timer is not reloading like that, but issue is with that change. That change alters the behaviour that timer is invoked only once per frame. FPS are actually stay same, just timer gets fired up quite a bit. I’m looking if there’s a fix for such behaviour.
BTW, here’s code for FPS counter:
local frames = display.newText( "FPS: 00.0", world.x, world.y-160, native.systemFont, 32 ) frames:setFillColor( 0.2, 0.6, 0.8 ) local i = 0 local startTime = 0 function OnFrame( e ) i = i+1 if i == 100 then frames.text = string.format("FPS: %.1f", 1000\*i/(e.time - startTime)) i=0 startTime = e.time end end Runtime:addEventListener("enterFrame", OnFrame)