I’m having an issue with DataChannels where they sometimes seem to be getting buffered up even when “unreliable” mode is enabled. I’m seeing slightly different behavior in Chrome vs Firefox when this happens. In Chrome, the browser will “catch-up” where the delayed messages will suddenly all arrive together and then realtime behavior will resume. However in Firefox, it will never catchup and the data channels just seem to get further and further behind. This makes congested data channels unusable in Firefox (for my purposes). While this is happening, audio and video channels seem unaffected.
For my web application, I’m using a combination of reliable and unreliable data channels to send messages between clients to sync up a 3D world (frequent positional data over unreliable channels and infrequent chat/world updates over reliable ones). Messages are being throttled to send at most 20 times a second per client, but if a lot of avatars are moving around, this could be adding up.
This is affecting both unreliable and reliable channels together. Positional and chat messages both seem to be getting buffered together equally. Although as mentioned above, audio/video channels seem unaffected.
We ran an event a couple of weeks ago (RM_y8xKSyJnPtW8) where we had about 30 connected participants (mostly in the same region), all moving around in the world and sending positional updates. Most of our Firefox users experienced the time dilation effect (getting minutes behind in time, but just for data channels not media) and a few of the chrome users mentioned the weird catchup effect (experienced as the world getting little bit behind and then suddenly all the avatars whizzing around and catchup up to their realtime positions and all their chat messages appearing at once).
So far, I’ve been unable to reproduce this effect outside of actual events with many participants, but I’ve seen it happening with our larger events since March (although I’m fairly sure we hand not seen this before then).
What's particularly concerning is that both reliable AND unreliable channels back up together, despite theoretically using separate data channels. This makes me suspect the issue is upstream of the individual channel flow control.
Is there something on LiveKit Cloud’s end that could be causing this behavior? Or should I be looking into things on the client?