Skip to content

Commit

Permalink
Change to 100 microsecond delay for Art-Net
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
troyhacks authored Jan 16, 2025
1 parent 8daf9d9 commit db2d50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

/*
Expand Down

0 comments on commit db2d50e

Please sign in to comment.