Back to blog
8 min readBy VIBPS

How can a game rewind only the state that changed?

Rollback netcode corrects a prediction by restoring game state and replaying inputs. Easel's December update describes an incremental history that records changes and combines older rollback steps; here is what that saves, what it does not, and how to design for it.

Game developmentNetworkingDeveloper guide

A remote player's button press can arrive after your game has already simulated several frames. If the game waited for every input before moving, a slow packet would make controls feel sluggish. Rollback netcode instead guesses the missing input, advances the simulation, and corrects that guess when the real input arrives. The correction works by returning to an earlier state and running the affected frames again.

That description makes rollback sound like a networking trick. In practice, it is also a state-management problem: the game must be able to recreate an old simulation state accurately, then replay inputs without accidentally repeating sounds, particles, or other effects. The amount of state kept for that rewind can become a memory and CPU cost of its own.

What does rollback need to restore?

Imagine two players moving characters toward a ball. Your machine has received your own movement input but not the other player's latest input, so it predicts that the other character keeps running forward. When the packet arrives and says the character turned away, the game restores the state from before the wrong prediction, applies the real input, and simulates forward again. If the result is deterministic, the same saved state plus the same inputs produces the same result on every replay.

A rollback system therefore needs a clear boundary around simulation state: positions, velocities, timers, random-number-generator state and any other values that affect the next frame. Rendering assets and audio output usually do not belong in that state if they do not influence game logic. GGPO's developer guide asks an integrating game to make its state serializable, deterministic and possible to advance one frame at a time without rendering. Its sync-test mode repeatedly rolls back a frame to help expose hidden state that changes the result.

A rewind can fail even when the network code is right. If one peer reads wall-clock time, uses an unseeded random number, depends on an unstable iteration order or leaves a mutable value outside the saved state, the replay may diverge. One hidden mismatch can make the peers see different worlds. Deterministic simulation and complete state capture are prerequisites; a more compact history cannot compensate for either one being wrong.

Three ways to keep a rewindable history

The simplest mental model is a full snapshot at every simulation tick. Restoring a frame is straightforward because the snapshot contains the whole relevant state. The cost depends on how large that state is and how many ticks must remain available. A game with many entities, physics values and frequently updated timers may spend substantial time copying data that did not actually change.

A second option is to keep occasional full checkpoints and replay from the nearest one. This reduces how many complete copies are stored, but a correction that lands far from a checkpoint requires more frames to be simulated again. Checkpoints trade memory for replay work; they do not remove the need for deterministic state or input history.

A third option is to record only what changes between simulation steps. An increment can remember an old value the first time that value is modified during a tick. To undo the tick, the system restores those old values. That can avoid copying large collections of unchanged data, but the bookkeeping is useful only if recording and restoring changes costs less than copying the state. If most values change every frame, the incremental record may be large too.

What Easel's December 2026 update describes

Easel's December 1 update says its rollback system previously had to fall back to a non-incremental mode when lag pushed the history beyond its memory budget. Easel now describes combining a stack of small increments into a larger increment that can reverse several frames together. It gives an illustrative sequence of increment sizes that grow roughly exponentially, while noting that the production arrangement is more complicated than the example.

The underlying idea is to keep a useful rewind range without retaining one separate small record for every old frame. Easel's post says its flattening pass can combine increments in one sequential scan. It also says its copy-on-write system captures a value's original value when it first changes during a tick. The public post describes the approach at a high level; it does not publish a benchmark or the complete data structure, so its speed and memory comparisons should be read as the maker's account of its own engine, not a general measured result.

Easel's rollback documentation also says its custom physics engine records changed parts rather than static geometry. That is a useful design distinction: a wall that never moves does not need a new copy every frame, while a moving object may need its old position, velocity and collision-related state preserved. A system can save work by separating immutable world data from the changing simulation, even before it adopts a specialized increment-merging algorithm.

The same December post describes a separate tactic for severe lag: Easel's server may reschedule late inputs for the present rather than asking every other client to replay a very long interval. This is not the same as compressing history. Incremental snapshots change how rewind state is stored; rescheduling changes how a late input is handled. Each can reduce a different cost, and rescheduling necessarily changes when that input affects the shared simulation.

Where incremental history helps—and where it can hurt

The likely benefit is largest when the game's total state is broad but each tick changes only a small fraction of it. A mostly static level with a few moving players and projectiles is a clearer candidate than a simulation where nearly every entity changes on every tick. Increment records can also help keep more rollback history within a fixed memory budget, but a longer history does not guarantee smoother play: the game still has to re-simulate corrected frames, and players may see visible correction when predictions are wrong.

There are costs to measure. A write barrier or copy-on-write check runs when mutable state is touched. Undo records need allocation or a reusable buffer, then must be applied in the correct reverse order. Combining older records has a cost too. Worst-case behavior matters: a large collision, effect or scripted event may change much more state than an ordinary frame. An average-frame memory number can hide the spike that causes a pause during play.

Partial snapshots are another related but distinct design. Unity Netcode for Entities documents rolling back only the entities updated by a partial server snapshot, then simulating forward to the present. That narrows which objects are recomputed in that architecture; it is not the same claim as storing inverse changes between every local simulation tick. Frameworks may combine selective resimulation, checkpoints and incremental state records, but developers should check which layer each optimization affects.

A practical checklist for game makers

  • Run gameplay on fixed simulation ticks and keep rendering separate from simulation updates.
  • List every value that can influence the next frame, including random seeds, timers and physics state; make hidden mutable state visible.
  • Test rollback and replay repeatedly with the same inputs, then compare the resulting state for deterministic equality.
  • Measure full snapshots, deltas and replay time under ordinary play and worst-case late-input bursts before choosing a storage strategy.
  • Track the oldest supported rollback point, memory high-water mark, changed values per tick, replayed frames and visible corrections.
  • Keep static data outside the rewind record when it truly cannot change, and define what happens when an input arrives beyond the retained history.

Start with a small deterministic scene and introduce one moving object, one timer and one late input at a time. Compare the state after normal simulation with the state after restoring and replaying the same inputs. Then add collisions, random behavior and longer delays. This is more useful than optimizing a snapshot format before the game can prove that its rollback is correct.

Easel's update is a concrete example of treating game history as a data structure rather than a pile of full copies. Its technique is one engine's account, not a guarantee that every game should use the same method. For a game maker, the durable engineering question is still: what must be restored, what actually changes, how far back must the game recover, and how will you know the replay is correct?

That question belongs in a project's design notes as much as its networking code. If you are building a multiplayer game, document the rollback limits and test results alongside the features you share with players. VIBPS is a social network for software where makers can introduce what they are building and help others follow how it develops.

Source: Easel, “100% Incremental Rollback Netcode (December 2026 update),” December 1, 2026

Source: Easel documentation, “Rollback Netcode, Explained”

Source: GGPO, “Developer Guide”

Source: Unity Netcode for Entities, “Client prediction”

How to test software when each action changes what comes next

Can Delphi games now target Android and iOS with Castle Game Engine?

Built around one question: what happens when software becomes easy for almost anyone to create?

Explore apps