From 74c701b7459f8aed27769d440a43368c84786705 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 27 Oct 2025 21:19:40 +0100 Subject: [PATCH] HUB75: no color temperature correction for performance reasons Enable building color correction code if you really need it. The effect of color correction is less noticeable on HUB75 than on ws2812b, however it can reduce your framerate by up to 10%. --- wled00/bus_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index e4e70507..a3806b00 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -1059,8 +1059,9 @@ BusHub75Matrix::BusHub75Matrix(BusConfig &bc) : Bus(bc.type, bc.start, bc.autoWh void __attribute__((hot)) IRAM_ATTR BusHub75Matrix::setPixelColor(uint16_t pix, uint32_t c) { if ( pix >= _len) return; - // if (_cct >= 1900) c = colorBalanceFromKelvin(_cct, c); //color correction from CCT - + #if 0 + if ((correctWB) && (_cct >= 1900)) c = colorBalanceFromKelvin(_cct, c); //color correction from CCT - reduces framerate by up to 10%. If you still want it, change the line above to "#if 1" + #endif if (_ledBuffer) { CRGB fastled_col = CRGB(c); if (_ledBuffer[pix] != fastled_col) {