Game development

What is netcode?

Netcode is the networking part of a multiplayer game: the code that sends player actions and game state between players and servers, and hides network delay so the game feels responsive.

Common techniques

Client-side prediction shows your own actions immediately, interpolation smooths other players' movement, server reconciliation corrects mistakes, and rollback netcode, popular in fighting games, rewinds and replays when late inputs arrive.

Why it matters

Players blame lag on the game. Good netcode makes moderate delays feel smooth; poor netcode makes even fast connections feel unfair.

Questions, answered

How many times per second the server updates the game state; higher rates feel more precise but cost more.

An authoritative server that validates actions prevents many cheats.

By the Stegnor team · Updated