Skip to content
RED SAGSkills
hardGame Developer interview question

How would you design the networking for a fast-paced online multiplayer shooter?

What the interviewer wants to hear

  • Authoritative dedicated server to prevent cheating
  • UDP-based transport with reliability only where needed
  • Client-side prediction and server reconciliation for the local player
  • Snapshot interpolation for remote players
  • Lag compensation for hit detection
  • Bandwidth: delta compression, relevancy and tick rate

Model answer

I would use an authoritative dedicated server, because in a competitive shooter clients cannot be trusted. Transport is UDP with a reliability layer only for messages that need it, like game events. The server runs at a fixed tick rate, for example 30 to 60 Hz. Clients send inputs with sequence numbers. For the local player I use client-side prediction, so movement feels instant, and reconcile when the server state arrives by replaying unacknowledged inputs. Remote players are rendered slightly in the past with snapshot interpolation for smooth motion. For shots, the server uses lag compensation, rewinding hitboxes to what the shooter saw, within a limit. To save bandwidth I send delta-compressed snapshots and only relevant entities to each client. I would also plan for anti-cheat, matchmaking regions and testing with simulated latency and packet loss.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Game Developer questions