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.
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.
I've found an open-source component that measures FPS on iOS: https://github.com/RolandasRazma/RRFPSBar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With