cache SEGMENT
actually its just a minor speedup, at least with -O2
This commit is contained in:
@@ -1884,6 +1884,9 @@ void WS2812FX::service() {
|
||||
_isServicing = true;
|
||||
_segment_index = 0;
|
||||
for (segment &seg : _segments) {
|
||||
#ifdef WLEDMM_FASTPATH
|
||||
_currentSeg = &seg;
|
||||
#endif
|
||||
// reset the segment runtime data if needed
|
||||
seg.resetIfRequired();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user