Git Product home page Git Product logo

Comments (2)

frenetisch-applaudierend avatar frenetisch-applaudierend commented on August 11, 2024 1

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.

maryamaffinityclick avatar maryamaffinityclick commented on August 11, 2024

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)

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.