rolandasrazma / rrfpsbar Goto Github PK
View Code? Open in Web Editor NEWShow FPS Bar instead of StatusBar on iOS
License: MIT License
Show FPS Bar instead of StatusBar on iOS
License: MIT License
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.
Could you post the license this code is released under?
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.
Line 62 in e2dd04d
@property(nonatomic,readonly) CGRect statusBarFrame __TVOS_PROHIBITED; // returns CGRectZero if the status bar is hidden
statusBarFrame
returns CGRectZero if the status bar is hidden
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
Only one red line on top of screen, no fps text, no graph line. Am I doing something wrong?
I search it,bug version just 0.01.
$ pod search RRFPSBar
-> RRFPSBar (0.0.1)
Shows a framerate graph in place of the status bar on iOS.
pod 'RRFPSBar', '~> 0.0.1'
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.