Optimize ledstip by disabling unassigned overlays
commit539cc19c320fb4bcf215020c3f032ef5ba4b7936
authorBruce Luckcuck <github@etracer.net>
Thu, 22 Feb 2018 00:44:37 +0000 (21 19:44 -0500)
committerBruce Luckcuck <github@etracer.net>
Thu, 22 Feb 2018 00:44:37 +0000 (21 19:44 -0500)
tree9bdeb277d5c5ff7dbc99226cc8a14a5e13fc05c3
parentdbdeb7b445caebcd80b44d3002f3805a47392ce5
Optimize ledstip by disabling unassigned overlays

The current design continuously runs timer loops for all overlays regardless of whether or not any LEDs are actually using the overlay.  Then each overlay function iterates through all configured LED's to apply if needed.

This optimization "looks ahead" and turns off any overlays that are not assigned to any LEDs.  The most optimization is achieved when no overlays are used, and regresses to match the current performance level if every overlay is assigned.
src/main/io/ledstrip.c
src/main/io/ledstrip.h