Comments (2)
Hi Mary
Thanks for your input.
I didn't know those properties, but reading the documentation I'm not 100% sure it matches what we need. The closest seems to be from the part you quoted: elapsedTime = displayLink.targetTimestamp - displayLink.timestamp
However judging from the documentation and the behaviour you observe this seems to calculate the target frame duration (which for most apps will always be around 16.6ms => 60fps) not the actual duration that single frame took (which can be longer and if so will result in dropped frames).
If you still want to try it, I would suggest you test with the contained sample app, specifically with the table view app that has intentionally low frame rates. If you still get close to 60fps there, then it most likely is not what we need.
from fps-counter.
actually I saw displayLink.frameInterval
for the number of frames. which I think its the one we want instead of numberOfFrames
.
but based on these variables I'm getting almost 60 most of the time, but with your calculations Im getting very low rates. what do you think ?
from fps-counter.
Related Issues (5)
- how to use in objective-c? HOT 4
- Shows counter on top of StatusBar HOT 2
- Add new features: HOT 1
- Fps meter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fps-counter.