Game Networking Weekly #7
Fixing the Internet for Real Time Applications: Part II Wayback
The series moves from the problem to the solution: infrastructure. Riot set up their own internet backbone by selecting fiber routes, installing routers at colocation data centers, and peering with ISPs. Peyton also gets into BGP. As Riot began peering with ISPs and building Riot Direct, the share of players with ping under 80 ms rose from 31% to 50% in just over nine months before the move to Chicago.
This whole process sounds like a real pain. I can’t help but think it’s inefficient for every major multiplayer game company to build this out. I suppose it does create a bit of a moat. I guess if the big guys bought from a shared provider instead then more studios could conceivably do the same and offer a matching connection quality.
Network Prediction: Replication's Crystal Ball | Unreal Fest Bali 2025 Wayback (Page metadata only; playback unverified)
Describes how to use the Unreal Engine Network Prediction Plugin (NPP). This is a newer system, lower level than the Gameplay Ability System (GAS).
It implements server-authoritative replication with either independent or fixed ticking. In independent mode, each client ticks at their local frame rate and the server processes each client at its input-command rate. In fixed mode, everyone simulates at the same rate, which lets the plugin roll back a group of objects together.
Every single prediction frame has an input cmd, sync state, and aux state. And then there is the Simulation which generates new state from current state each tick. There is actually quite a bit more generic programming (meaning template-based concepts) here than I was expecting for an Unreal API.
So my initial thought was that sync state is high-frequency replicated state and aux state is low-frequency replicated state. This seems very analogous to how you separate constant buffer updates by frequency for rendering. But looking a little deeper than the talk I think that’s not quite right.
- Sync state is the tick’s output: it is rewritten every tick. It’s stored in a per-frame ring buffer.
- Aux state is tick input that is rarely rewritten, often by systems outside the simulation. It’s sparse copy-on-write and not directly writable from within
SimulationTick. - Both are restored on rollback and compared for reconciliation.
The Mover implementation I looked at, however, uses a dummy aux state and does everything with sync state (and input cmd).
The rest of the talk is quite good but also quite in the weeds, which would be great if you were actually building your game with this system.
Play video
Watch on YouTubeFriday Facts #415 - Fix, Improve, Optimize Wayback
An interesting tidbit on an elusive desync that took a specific combination of mod behavior and different CPU core counts to trigger. I’ll be honest, this one is only loosely networking related, but I found the optional pause-on-join for large worlds especially interesting. Sometimes the solution is just to treat the outlier case differently, like they did here with loading into large worlds.
Classic
Latency Compensating Methods in Client/Server In-game Protocol Design and Optimization Wayback
In a way this is a direct successor to last week’s entry about QuakeWorld. At the end of that design Carmack noted that you would have to lead the player to shoot them. Well lag compensation directly addresses that problem, at the cost of introducing a few paradoxes.
This was implemented way back in the Half-Life 1 engine. Like QuakeWorld, the client predicts movement locally by replaying inputs the server hasn’t acknowledged yet starting from the last server-confirmed state. Unlike QuakeWorld, the Half-Life server also rewinds other players for hit detection. The server accounts for network delay and client interpolation, then tests the shot against the hitboxes as they were from the shooter’s point of view.
The paradox is that you can get hit after reaching cover on your screen. The technique favors the shooter, and without limits that can be exploited. But especially with the nascent consumer internet connections of the time, this was a revolutionary improvement in the feel of online first-person shooters.