jgarff / rpi_ws281x

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

Taking almost 17usec per bit instead of 1.25usec #386

Closed ngek closed 2 years ago

ngek commented 4 years ago

I built the library with no code modifications on a standard RPi 3B+ and am using it to control a WS2112 strand of 300 leds. It should take 1.25usec per bit or (300 24 1.25) = 9msec to output the entire strand. The code is taking an average of 121.7msec to execute the ws2811_render. The time is spent in the wait loop in ws2811_wait.
Is there a configuration parameter that needs to be altered to get the correct output speed?

Gadgetoid commented 2 years ago

Closing since this is stale and two years old! :grimacing:

Beep boop, I'm a robot, honest :robot: