xtagon / chatsnek

Twitch chat plays Battlesnake
MIT License
4 stars 1 forks source link

Stream latency makes it difficult to play #9

Open xtagon opened 3 years ago

xtagon commented 3 years ago

When streaming, most viewers see a significant delay, which makes it difficult to vote for moves on the right turn.

No solution is in place yet but we'll kick around some ideas and figure something out.

xtagon commented 3 years ago

Ran a test stream today where instead of broadcasting from home, the stream was broadcast from the same server that runs ChatSnek, which is in close proximity to both the Battlesnake engine and one of Twitch's ingest endpoints.

The hope was that the lag in between votes in the chat would be noticeably lower, but it was still pretty bad. Twitch Inspector showed that the stream was stable but the advanced video stats in the player still shows something like 4.3 seconds of Latency to Broadcaster, which is pushing really close to the Battlesnake turn time limit for ChatSnek.

Open to ideas for improvement.