WLED supports a variety of network control protocols, including “realtime UDP” and (for audio-reactive ports) “Sound Sync”. UDP data “frames” comprising one or more packets are typically sent to WLED devices at fixed intervals, e.g. 20ms for the default 50Hz SoundSync update. Unfortunately, consumer-grade WiFi suffers from jitter of 20-80ms. Packets can occasionally arrive in rapid “floods” (several packets in <10ms), followed by long “droughts” of 75ms or more.
The solution? Buffer a fixed number of “frames” from the sporadically arriving packet data, playing back the oldest at smooth intervals, using the buffer to weather the droughts and floods. This dramatically smooths the intervals for playback. This approach effectively trades latency for smoothness of playback interval. This buffering approach is referred to as Realtime Smoothing (RTS).