From 1f99aeb5067bced846903048b6b7e9e66458d086 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 24 Oct 2025 00:05:44 +0200 Subject: [PATCH] small optimization: always allow gPC to use cached busses previously gPC cached busses were disabled in slowMode (one pixel mapped to several outputs). However this should not be needed, because the first copy found should be like all other. --- wled00/bus_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index d843f4e6..ddd53483 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -1361,12 +1361,12 @@ uint32_t IRAM_ATTR __attribute__((hot)) BusManager::getPixelColor(uint_fast16_t uint_fast16_t blen = b->getLength(); if ((uint_fast16_t)(pix - bstart) < blen) { // Unsigned arithmetic trick for fast range check - if (!slowMode) { + //if (!slowMode) { // Cache bus info for next call lastBus = b; laststart = bstart; lastlen = blen; - } + //} return b->getPixelColor(pix - bstart); // done - found one } } @@ -1388,12 +1388,12 @@ uint32_t IRAM_ATTR __attribute__((hot)) BusManager::getPixelColorRestored(uint_ uint_fast16_t blen = b->getLength(); if ((uint_fast16_t)(pix - bstart) < blen) { // Unsigned arithmetic trick for range check - if (!slowMode) { + //if (!slowMode) { // Cache bus info for next call lastBus = b; laststart = bstart; lastlen = blen; - } + //} return b->getPixelColorRestored(pix - bstart); } }