News for hackers. Stuff that matters.
Re:Deterministic Lockstep for Networked Games by gafferongames on Saturday December 27, 2014 @09:19PM (#8804894)
Sorry I was doing calculations at 2 seconds timeout.

Lets make it even harder for the TCP truthers. Hold on to your neckbeards.

Lets say that somehow sending 90 byte packets 60-times a second for 2 seconds is bad. Lets also say it would be nicer to have a longer timeout like 10 seconds. I agree.

Here's how to do it. Clamp the maximum number of inputs per-packet to 60 (1 seconds worth). If you don't receive any acks for one second something is clearly wrong. If this happens go into "congested mode". In this mode, send packets only 4 times per-second, and keep resending those 60 inputs until an ack comes back. If no ack comes back within 10 seconds, time out. If an ack comes back, go back to non-congested mode and resume sending at 60 packets per-second.

There you go. Congestion avoidance over UDP. Problem solved.

Re:Deterministic Lockstep for Networked Games by asuffield on Saturday December 27, 2014 @09:43PM (#8804949)
What's a "TCP truther"? Is it hiding under the bed?

> There you go. Congestion avoidance over UDP. Problem solved.

Yes, that sounds entirely reasonable. Please do this, instead of what is described in the article.

Re:Deterministic Lockstep for Networked Games by gafferongames on Sunday December 28, 2014 @12:46PM (#8806814)
The example described in the article sends an average payload of 6 bytes (smaller than UDP header) and converges to a steady state bandwidth that is a function of RTT and the number of player input changes per-second that is generally independent of the amount of packet loss. Given that with this protocol the average average stream is 12kbps, the vast majority of which is UDP packet header, I think your concerns about congestive internet failure are somewhat overblown.
Re:Deterministic Lockstep for Networked Games by omeganemesis28 on Sunday December 28, 2014 @02:06PM (#8807022)
> somewhat overblown.

Somewhat? Possibly one of the most overblown statements I have ever seen. Just try to picture the headline - "Halo 57 multiplayer brings whole ISPs down due to UDP design DDoS". Hilariously overblown.

Re:Deterministic Lockstep for Networked Games by gafferongames on Sunday December 28, 2014 @02:17PM (#8807072)
If we are to be concerned about 12kbps, just wait until my next article when I describe how much UDP traffic is blasted out by non-deterministic game networking models ;)