Author Topic: See FPS with iOS SOLUTION INSIDE  (Read 3085 times)

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
See FPS with iOS SOLUTION INSIDE
« 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?
« Last Edit: Thu, Nov 15, 2012 by Esti »

Check it out on Mochi!

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Re: See FPS with iOS
« Reply #1 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;

Check it out on Mochi!

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Re: See FPS with iOS
« Reply #2 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? :(

Check it out on Mochi!

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Re: See FPS with iOS
« Reply #3 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.

Check it out on Mochi!

Esti

  • Active Member
  • ***
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Re: See FPS with iOS SOLUTION INSIDE
« Reply #4 on: Fri, Nov 16, 2012 »
I get 60fps in GPU mode!!! yeeeay

Check it out on Mochi!