/RRFPSBar

Show FPS Bar instead of StatusBar on iOS

Primary LanguageObjective-CMIT LicenseMIT

RRFPSBar

Usage

// Include only if app is is not optimized (aka debug build)
#ifndef __OPTIMIZE__
  #import "RRFPSBar.h"
#endif

@implementation YourAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  // Show only if app is is not optimized (aka debug build)
#ifndef __OPTIMIZE__
    [[RRFPSBar sharedInstance] setHidden:NO];
#endif

}

@end

TODO:

Rewrite in GL to reduce drawing lag

I don't have blog so...

I hate lagging apps and do my best to keep FPS high on @YPlan. Sometimes it's very hard to say if lag is visual or real and Instruments IMO is bit awkward. I needed better "tool"... At first, I wrote quick FPS counter that showed FPS in UILabel but that wasn't verry convenient as it covered part of the app and you couldn't see history, so I decided to add graph. But where...? STATUSBAR!!! It's perfect place! I don't use it for anything and it doesn't cover app - what can be better?