jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.76k stars 616 forks source link

1440 leds 25fps #462

Open artcontr opened 3 years ago

artcontr commented 3 years ago

Hi. I'm trying to run a matrix of 10x144 rgbw SK6812 leds. I need to play animations on them (maybe gifs or small video loops). Do you think your library will allow me to do so ? Thanks a lot :-)

InstanceGaming commented 2 years ago

You can easily write a test program where you write random data to your matrix and then time the execution of show(). This will definitively prove weather your environment can handle the refresh rate you desire. If the benchmark yields less than 40ms, you should be able to make it work at 25fps. However, additional time should be allocated for whatever processing you need to do first in order to generate a frame, like video decoding (which is more likely to cause bottlenecks).

I myself have 1944 pixels to drive and my rudimentary benchmarking (even through the Python binding) yielded about ~4ms execution time calling show() on a Raspberry Pi 4B+.

For timing that function call in C (on Linux), start here.

Gadgetoid commented 2 years ago

https://github.com/jgarff/rpi_ws281x/pull/468 may be relevant to your interests.