RRFPSBar 1.0.0

RRFPSBar 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2023

Maintained by .




RRFPSBar 1.0.0

  • By
  • Rolandas Razma

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?