ThePiHut / rgbxmastree

Code examples for the RGB Xmas Tree
90 stars 38 forks source link

Large CPU draw #11

Closed Mohoganogan closed 4 years ago

Mohoganogan commented 4 years ago

The example code are very CPU intensive. On a pi zero the cpu is running at 95%+

bennuttall commented 4 years ago

which example?

Mohoganogan commented 4 years ago

Only the random sparkles does not use 95%+ of the cpu on a zero. Installed on a clean minimal raspian install.

bennuttall commented 4 years ago

I guess that's the only one with a sleep in it. The rest just go as fast as they can. If you need to free up resources to do something else, you could try adding in a sleep to slow it down. If you don't, it should be fine at 95%.