Flixel Forums

development => iOS => Topic started by: Esti on Wed, Nov 14, 2012

Title: See FPS with iOS SOLUTION INSIDE
Post by: Esti on Wed, Nov 14, 2012
I got an unexpected ipod Touch ::) and I managed to make a small app with air and test it right away ,details http://blog.sebaslab.com/run-flas-application-iphone-buying-developer-license/

Anyway I want to monitor the FPS but I cant open the console without a keyboard. Is there a way to use text to print the current FPS?
Title: Re: See FPS with iOS
Post by: Esti on Wed, Nov 14, 2012
on FlxGame I pasted this on onMouseDown, it's pretty awful but it works without keys!

Code: [Select]
_debugger.visible = !_debugger.visible;
_debuggerUp = _debugger.visible;
Title: Re: See FPS with iOS
Post by: Esti on Thu, Nov 15, 2012
My FPS drop when I open the debugger in the ipod and I think it is because of the alpha going on in the UI.

Anyone knows how to monitor FPS without this? :(
Title: Re: See FPS with iOS
Post by: Esti on Thu, Nov 15, 2012
Well, I used a variable in the Registry class and then put
Code: [Select]
_debuggerUp = true;  inside the FlxGame constructor.

Then I just put
Code: [Select]
Registry.fps = uint(1 / (flashPlayerFramerate / 1000)); inside the update in perf.as and create a FlxText and update it with the registry information and voilá!

FPS on mobile without performance slowing alphas! ::) My ipod hates alphas.
Title: Re: See FPS with iOS SOLUTION INSIDE
Post by: Esti on Fri, Nov 16, 2012
I get 60fps in GPU mode!!! yeeeay