News for hackers. Stuff that matters.
Re:WebRTC: the future of web games by getkey on Tuesday December 27, 2016 @06:37PM (#13267257)
Do you adapt the amount of data sent based on the bandwidth? If so, how?

To me the best way to do this involve knowing how often the TCP socket is doing retransmissions, which is an information typically not available at the WebSocket level.

Re:WebRTC: the future of web games by Matheus28 on Tuesday December 27, 2016 @06:39PM (#13267266)
I don't at all. But the game sends very little data (I think Agar.io does an average of 4 KB/s from server to client).
Re:WebRTC: the future of web games by getkey on Tuesday December 27, 2016 @07:00PM (#13267375)
Okay. And do you send positions of all players or only those that are visible?
Re:WebRTC: the future of web games by Matheus28 on Tuesday December 27, 2016 @07:10PM (#13267429)
Only visible and only what changed