adafruit / Adafruit_CircuitPython_NeoPixel

CircuitPython drivers for neopixels.
MIT License
302 stars 98 forks source link

Updating buffer slow #150

Open tuorpete opened 1 year ago

tuorpete commented 1 year ago

Hi all,

I am trying to make a display with neopixels. 1024 of those to be exact. I've been trying to use only one channel so far. For some reason I've been able to get GPIO pin 10 to work on my raspberry pi 3. The data transfer to leds work within a small error but the time between takes a long time. Time to send data to leds according to oscilloscope takes about 31ms but to update the library's buffer takes at least 125ms.
What I do is I unpack frames from a gif file. Put the frames to a queue and in another thread take those frames and put them to neopixel object. I have tried with loop and directly. I have tried to put the frame aquiring and showing to a separate processa but at most I have gotten about 17fps. Theoretically I should be able to get closer to 30fps if it wasn't for the time between data sendings. Is there anything to do besides change to multiple gpios to update the big screen faster?