Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

RolandasRazma/RRFPSBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

Show FPS Bar instead of StatusBar on iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published