News for hackers. Stuff that matters.
Re:How do video games stay in sync? by omegalulw on Saturday May 28, 2022 @04:22PM (#31543465)
Another key requirement that must be considered is packet ordering. With games you care about the latest state and thus discarding older out of order packets is a better strategy than waiting for packets to serialize them like TCP would do.
Re:How do video games stay in sync? by Animats on Saturday May 28, 2022 @04:34PM (#31543561)
You only care about the latest state for some events. Only events which will soon be superseded by a later event should go over UDP. Move A to X, sent on every frame, fine. Create monster at Y, no.

If you find yourself implementing reliability and retransmission over UDP, you're doing it wrong. However, as I mention occasionally, turn off delayed ACKs in TCP to avoid stalls on short message traffic.

Reliable, no head of line blocking, in order delivery - pick any two. Can't have all three.