← FIELD NOTES / ASGARD TVEIR

The cost of recording a battle

An Asgard audit made it cheaper to record a world and more explicit about when a recording can vouch for what happened.

01

A result needs a tick to belong to

A Rampart Zero battle can go on for a long time before it reaches the one moment I care about. A vehicle stops short of a turn. A building takes a hit I thought its shield would absorb. I’m building Asgard Tveir so I can return to that point in the battle and ask what the game knew at the time.

That only helps if the record can tell me what it actually verified. The audit found a case where a world had advanced and the next fingerprint couldn’t be computed. The session could still be holding the fingerprint from the previous tick. It now keeps track of whether the fingerprint belongs to the current tick. If writing the recording fails, the session marks that failure too.

A battle can still be interesting without a complete record. What matters when I hand the record to a test or a coding agent is that both can tell where the evidence stops.

02

Spend less time walking the same state

Some of the cost came from visiting the same world more than once to produce a checkpoint. When there was already a destination buffer, the new path could write directly into it. That cut repeated work in the engine and in the physics adapter. The audit also tightened how the engine restores physics state and made sure an actual body could never be confused with the value for a missing one.

The development log reports a 9.4× improvement in a recorded-session benchmark. The timing applies specifically to running and recording that workload. The same run reported byte-identical checkpoints for all eight parallel worlds it checked.

That last check was the part I wanted alongside the timing. If the job is to reproduce a state, changing the recording path should give me the same state to inspect.

03

Leave room for another look

Recording has to be cheap enough that I’ll keep using it during ordinary development. If I save it for the worst bugs, I have to predict which run will fail before playing it. A lower recording cost means I can afford to keep the run where something surprised me and look at it again with a specific question.

The Commander work on the game side gives me a reason to be particular about that boundary. A spoken request can turn into several orders. Once they reach the world, I want to know which orders took effect, in what order and under whose authority. That is useful to the player when a plan changes and to the developer when an explanation needs checking.

04

The prototype was cheap to record for a reason

The first strategy workload was deliberately small. A complete Rampart Zero campaign adds production, research, service trips, later enemies and a lot more to a saved world. The cost that looked reasonable in the bounded case became visible when those systems all had state worth keeping.

The November optimization record is specific about which run was timed and which checkpoints were compared. Those details make it usable when somebody asks whether the game can keep more evidence without making the battle run differently.

Read the wider account in Make faster mean the same battle.

Explore the game The Rampart Zero Field Report
Read the history of Asgard Tveir Subscribe to Field Notes via RSS