From db2d50e6cdf2954faea618766ab0d83021c3dec4 Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:15:10 -0500 Subject: [PATCH] Change to 100 microsecond delay for Art-Net Seems like a 10 microsecond delay on boards like the ESP32-P4 may not be enough, causing some issues with UDP audio sync being delayed or appearing "buffered". Oddly 10 microseconds was fine with the ESP32 and ESP32-S3, so it may also be an underlying IDF v5.3 change. Practically, 10 microseconds or 100 microseconds isn't a real difference when we're dealing in frames per second. --- wled00/udp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/udp.cpp b/wled00/udp.cpp index 275400bd..751ec15d 100644 --- a/wled00/udp.cpp +++ b/wled00/udp.cpp @@ -886,7 +886,7 @@ uint8_t IRAM_ATTR_YN realtimeBroadcast(uint8_t type, IPAddress client, uint16_t { static unsigned long artnetlimiter = micros()+(1000000/fps_limit); while (artnetlimiter > micros()) { - delayMicroseconds(10); // Make WLED obey fps_limit and just delay here until we're ready to send a frame. + delayMicroseconds(100); // Make WLED obey fps_limit and just delay here until we're ready to send a frame. } /*