Giter Site home page Giter Site logo

rrfpsbar's People

Contributors

demonnico avatar frantic avatar mattrubin avatar rolandasrazma avatar wanghengheng avatar wattson12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rrfpsbar's Issues

Feature Request: Average FPS

It would be really helpful to have an average FPS, since the lowest value is an extreme. I tried:

CFTimeInterval totalDT = 0;
for( NSUInteger i=0; i<=_historyDTLength; i++ ){
        totalDT += 60.0f*_historyDT[i];
    }
    CFTimeInterval averageSubtractValue = totalDT/_historyDTLength;
    DLog(@"Average = %f",60.0f-averageSubtractValue);

but my average just rose quickly to slightly under 60 fps, so I must be missing something.

License

Could you post the license this code is released under?

Be clearer about what 'low' means

Thanks for putting RRFPSBar together! It's really going to help me gauge the scrolling performance of my collection view cells.

It took me a while to figure out that the FPS being plotted on the bar was in fact the rolling time series / data points, and that the low figure was the minimum FPS for that time series, and avg was the average over that whole time series.

The average FPS isn't really that useful unless it's over a shorter amount of time, like 3 seconds.

crash bug

if( (self = [super initWithFrame:[[UIApplication sharedApplication] statusBarFrame]]) ){

@property(nonatomic,readonly) CGRect statusBarFrame __TVOS_PROHIBITED; // returns CGRectZero if the status bar is hidden

statusBarFrame returns CGRectZero if the status bar is hidden

App crashes on iOS 9

2015-10-21 02:35:04.691 sampleapp[23675:4053762] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
*** First throw call stack:
(
0 CoreFoundation 0x01442a94 exceptionPreprocess + 180
1 libobjc.A.dylib 0x03b1ee02 objc_exception_throw + 50
2 CoreFoundation 0x0144292a +[NSException raise:format:arguments:] + 138
3 Foundation 0x01c763e6 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118
4 UIKit 0x02360568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3674
5 UIKit 0x02383905 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke3171 + 68
6 UIKit 0x0235cbae -[UIApplication workspaceDidEndTransaction:] + 163
7 FrontBoardServices 0x056beccc __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
8 FrontBoardServices 0x056be7a3 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
9 FrontBoardServices 0x056dc1cb -[FBSSerialQueue _performNext] + 184
10 FrontBoardServices 0x056dc602 -[FBSSerialQueue _performNextFromRunLoopSource] + 52
11 FrontBoardServices 0x056db8fe FBSSerialQueueRunLoopSourceHandler + 33
12 CoreFoundation 0x0135ce7f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 15
13 CoreFoundation 0x01352b0b __CFRunLoopDoSources0 + 523
14 CoreFoundation 0x01351f28 __CFRunLoopRun + 1032
15 CoreFoundation 0x01351866 CFRunLoopRunSpecific + 470
16 CoreFoundation 0x0135167b CFRunLoopRunInMode + 123
17 UIKit 0x0235c497 -[UIApplication _run] + 540
18 UIKit 0x02361cc1 UIApplicationMain + 160
19 hsssgame.poc 0x000cd0aa main + 138
20 libdyld.dylib 0x0403aa21 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

nothing show up

Only one red line on top of screen, no fps text, no graph line. Am I doing something wrong?

CocoaPods 1.0.0: The `RRFPSBar` pod failed to validate due to errors

Was trying to take advantage of the iOS9 crash fix:

Podfile:
pod 'RRFPSBar', :git => 'https://github.com/RolandasRazma/RRFPSBar.git', :branch => 'master'

Got the following output:

Pre-downloading: `RRFPSBar` from `https://github.com/RolandasRazma/RRFPSBar.git`, branch `master`
[!] The `RRFPSBar` pod failed to validate due to 3 errors:
    - ERROR | attributes: Missing required attribute `authors`.
    - WARN  | attributes: Missing required attribute `license`.
    - ERROR | attributes: Missing required attribute `homepage`.
    - ERROR | attributes: Missing required attribute `source`.
    - WARN  | license: Missing license type.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.