Skip to content

Commit db2d50e

Browse files
authored
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.
1 parent 8daf9d9 commit db2d50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/udp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ uint8_t IRAM_ATTR_YN realtimeBroadcast(uint8_t type, IPAddress client, uint16_t
886886
{
887887
static unsigned long artnetlimiter = micros()+(1000000/fps_limit);
888888
while (artnetlimiter > micros()) {
889-
delayMicroseconds(10); // Make WLED obey fps_limit and just delay here until we're ready to send a frame.
889+
delayMicroseconds(100); // Make WLED obey fps_limit and just delay here until we're ready to send a frame.
890890
}
891891

892892
/*

0 commit comments

Comments
 (0)