Why do fast action games usually send state over UDP rather than TCP?
- UDP encrypts every packet by default
- A lost packet does not stall later ones
- UDP guarantees that packets arrive in order
- TCP cannot cross home routers at all
TCP holds back newer data until a lost packet is resent, causing stalls; with UDP the game simply uses the next, more recent update.
Play Game Dev ▸