From 2e6d58fc7073d582c0c1086809b0f237d8d20f0f Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 15 May 2023 21:17:21 +0200 Subject: [PATCH] small LED performance improvement I've done some experiments, and it seems that using I2S#1 as the _third_ bus improves fps with 3, 4 and 5 LED pins --- wled00/bus_wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/bus_wrapper.h b/wled00/bus_wrapper.h index 14b663b9..a9bb6073 100644 --- a/wled00/bus_wrapper.h +++ b/wled00/bus_wrapper.h @@ -935,7 +935,7 @@ class PolyBus { #else // ESP32 "audio_fastpath" - 8 RMT and 1 I2S channels. RMT 5-8 have sending delays, so use I2S#1 as 5th bus, before going for RMT 5-8 if (num > 8) return I_NONE; - if (num == 4) offset = 2; // use I2S channel 2 as 5th bus. Ladies and Gentlemen, _this_ is a dirty hack. + if (num == 2) offset = 2; // use I2S channel 2 as 3rd bus - seems to be a good compromise for performance #endif #endif switch (busType) {