GithubHelp home page GithubHelp logo

FrameAnimation Rate about mapillary-js HOT 5 CLOSED

gyllen avatar gyllen commented on May 23, 2024
FrameAnimation Rate

from mapillary-js.

Comments (5)

oscarlorentzon avatar oscarlorentzon commented on May 23, 2024

There are a number of different ways to handle movement based on the frames and elapsed time. Examples are:

  • Transitions per frame
  • Transitions per second
  • Meters per frame
  • Meters per second

Right now we use Transitions per frame, i.e. when the frame rate is 30 frames per second the speed is half of the speed for a frame rate of 60 frames per second.

For different situations it can even be a good idea to use different movement schemes.

Changing to transitions per second would handle the situation with different frame rates.

from mapillary-js.

gyllen avatar gyllen commented on May 23, 2024

Yeah its a sticky situation. For now a solution would be to adjust animationSpeed according to FrameAnimation speed. Im not sure if you can get that speed though. But for me animationSpeed should be double yours. Thats way we still keep smoothness on 60hz but we keep up speed on 30hz.

from mapillary-js.

oscarlorentzon avatar oscarlorentzon commented on May 23, 2024

Exactly, transitions per second will handle time delta between frames and update animationSpeed accordingly.

For situations where the time delta between two frames is large there could be a cap on the animationSpeed.

from mapillary-js.

oscarlorentzon avatar oscarlorentzon commented on May 23, 2024

@gyllen Do you consider this issue as fixed after the commit below?

8c48050

from mapillary-js.

gyllen avatar gyllen commented on May 23, 2024

Fixed

from mapillary-js.

Related Issues (20)

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.