views:

1023

answers:

1

Anyone can tell me how to get and display the fps (frame rate) of a running program on screen?

+3  A: 

In XCode, Run -> Start with Performance Tool -> OpenGL ES

That launches instruments with GL tool, where you'll see FPS
and GPU utilization. If you're not achieving your lickable 60fps
then GPU % is the number you'll need to lower.

Rhythmic Fistman
is there anyway i could print out the value of the fps on screen instead? the performance tool wouldn't work on the actual real iphone...
DrkZeraga
Sure, you can count the number of times per second that you're calling presentRenderbuffer and print that number on the screen.
Rhythmic Fistman