Git Product home page Git Product logo

Comments (2)

simolus3 avatar simolus3 commented on May 30, 2024 1

Hi. It's not possible to set the framerate directly, the plugin will rather figure it out based on what's specified in the composition file.

If you open any of your animation json files (warning: they're huge and thus not fun to edit), you should see an "fr" property in the top level json object encoded there. I think most have a value of 30 there, but you can edit that it if you want to.
However, especially when displaying multiple animations simultaneously, the hardware capability of the device will constrain the framerate, so keep that in mind as something like 60fps will be hard to reach.

Given that you can edit the framerate in the files, I think adding direct support for that in the library is not needed. But please let me know if that'd be helpful for you, it shouldn't be taking long to implement. If editing the file didn't improve the framerate, please also let me know because that would be a bug in the plugin. Thanks!

from fluttie.

marianoarga avatar marianoarga commented on May 30, 2024

I didn't test raising the frame rate since I needed to lower the animation speed, but the change in the json worked like a charm for what I needed.
NOTE: You have to "flutter clean" to discard the asset cache and see the change take effect.

Thanks for your support.

from fluttie.

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.