Skip to content

Tidusww/WWFPSIndicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WWFPSIndicator

A CADisplayLink-based FPS indicator which can showe on the screen.

more details for this FPSIndicator

Usage

Add this code to AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.

    //start
    [[WWFPSIndicator sharedInstance] start];
    //set the fps refresh frequency
    [WWFPSIndicator sharedInstance].frequency = WWFPSIndicatorRefreshFrequencyNormal;
    //set the text style
    [WWFPSIndicator sharedInstance].textStyle = WWFPSIndicatorTextStyleNormal;


    return YES;
}

use this code to stop:

    //stop
    [[WWFPSIndicator sharedInstance] stop];

Demo:

Demo

About

FPS indicator using CADisplayLink

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published