$ ./guess_the_languageGame Dev
Game Dev · medium · #232

Why do fast action games usually send state over UDP rather than TCP?

  1. UDP encrypts every packet by default
  2. A lost packet does not stall later ones
  3. UDP guarantees that packets arrive in order
  4. 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 ▸