Giter Club home page Giter Club logo

Comments (2)

rstephan avatar rstephan commented on August 16, 2024 2

I see some improvements for you.

  1. Move the leds.show() two lines up. Inside the if-statement. Don't update the LEDs on every frame, only if they match your universe-filter.
  2. 1860 Channels take roughly 60ms by my calculations. Keep in mind that 30fps are only 33.3ms time in between two "frames". This way you can only achieve about 16fps on the LEDs. This is the theoretical upper limit.
  3. The implementation above has some problems too, even with my correction from point 1. leds.show() is called on every universe. That is 5x60ms equals 300ms! About 3fps.
  4. Update the LEDs only on the last received universe. Writing to the LEDs takes time. The setPixelColor() call is fast. This solution assumes the 5 universes are send/received basically with no gap, an a "long" time after the last one.

These are my first tips. If it doesn't help come back and ask again.

from artnetwifi.

smcd253 avatar smcd253 commented on August 16, 2024

Good points! I'll try them out and will let you know what I find.

from artnetwifi.

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.