atuline / FastLED-Demos

Here's my updated FastLED demos from January, 2017.
GNU General Public License v3.0
612 stars 174 forks source link

Slow FPS #30

Closed crashza closed 5 years ago

crashza commented 5 years ago

Hi Andrew, Firstly great work on these effects. This is more of a question so here it is.

I am using your soundmems code in a project of mine and its working flawlessly on a small strip of leds 40 ws2812s (Code is on a esp8266) I get a steady FPS of 400 with this config, When i increase the LED count to 680 I get a low FPS around 10 or so and the animations dont work as they should, Is this very low FPS expected when running so many LED's?

Regards Trevor

atuline commented 5 years ago

Hi Trevor,

Yes, the animation is very slow on a larger amount of LED’s using WS2812’s, which is why a lot of people revert to parallel outputs or use APA102’s, which have a much higher data rate.

In general, parallel output with WS2812’s seems to be the way most people get around that.

As for calculations, here’s something I just dug up:

The datarate should be 400 KHz or 800 KHz (FastLed,h library). Each WS2812B needs 24 bits of data. Thus at 800 KHz/24 bits/LED, you can send 33,333 LEDs worth of data in one second. If you want to update at a 50 Hz rate, then you get 1/50 of that, so 666 LEDs. 100 Levels = 6 LEDs per level. If 400K, then just 3. "The display rotates at 3000 RPM = 50Hz" 3000 rev/minute * 1 minute/60 seconds = 50 revs/sec, or 50 Hz. Ok.

Note that the above is the ‘theoretical’ maximum you could possibly get, not counting the overhead of any ESP8266 processing.

Hope that helps,

Andrew

From: Trevor Steyn notifications@github.com Sent: August 21, 2019 5:55 AM To: atuline/FastLED-Demos FastLED-Demos@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [atuline/FastLED-Demos] Slow FPS (#30)

Hi Andrew, Firstly great work on these effects. This is more of a question so here it is.

I am using your soundmems code in a project of mine and its working flawlessly on a small strip of leds 40 ws2812s (Code is on a esp8266) I get a steady FPS of 400 with this config, When i increase the LED count to 680 I get a low FPS around 10 or so and the animations dont work as they should, Is this very low FPS expected when running so many LED's?

Regards Trevor

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/atuline/FastLED-Demos/issues/30?email_source=notifications&email_token=AAT274XGVV63YQNYYVBAO7TQFU3KXA5CNFSM4IOGRJI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGQFDSQ , or mute the thread https://github.com/notifications/unsubscribe-auth/AAT274R4AZ36ZA5CE3BUT4DQFU3KXANCNFSM4IOGRJIQ . https://github.com/notifications/beacon/AAT274WZNN3ZP4BJSEJIPLLQFU3KXA5CNFSM4IOGRJI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGQFDSQ.gif

crashza commented 5 years ago

Thanks Andrew, I will give that a go thanks for responding