Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display FPS on iOS onscreen (without Instruments)

In WWDC 2012 Session 506, they display the frames per second on a UILabel in the application, without having to use the Core Animation profiler attached to instruments. I would like to do this for convenience as well as to let other members of my team monitor FPS as they use the app in real-world scenarios. Unfortunately, session 506 isn't included the the WWDC '12 sample code.

Does anyone know how to do this? I know that Cocos2D has this capability in their CCDirector, but their approach seems specific to how Cocos2D rendering works. It is not necessary for it to be public API because I will not be shipping this code to customers.

like image 216
MaxGabriel Avatar asked Mar 02 '13 00:03

MaxGabriel


People also ask

How do I get the FPS meter on my IPAD?

If you would like a simpler and much easier option to get FPS from an iOS Device, even from a production build of a game (without being a developer), then you can use the GameBench Desktop App. See the link below to the Game Performance Monitoring Tools from Gamebench.


1 Answers

I've found an open-source component that measures FPS on iOS: https://github.com/RolandasRazma/RRFPSBar

like image 138
MaxGabriel Avatar answered Sep 21 '22 19:09

MaxGabriel