Pixelblaze-client: Python 3 library for Pixelblaze

Ok, something weird is happening. When I run that script for several hundred count cycles, the updating slows down a lot. It does this both on a Raspberry pi and my windows machine. It doesn’t drop commands, it just takes a long time to update them. So initially it will update every second, but then eventually it will take longer and longer, even though the script is updating out to the terminal every second. The pixelblaze will continue to slowly update even if I ctrl-c out of the script, but it appears to stop if I reset the shell. It seems like the commands are getting piled up in the PB client somewhere.

Here is the code on the Pixelblaze for reference

export var loc=1;

export function beforeRender(delta) {
  t1 = time(.1)
}

export function render(index) {
  h = t1 + index/pixelCount
  s = 1
  v = index==loc
  hsv(h, s, v)
}