One shot, one barrel
Asgard is now the default renderer in the Rampart Zero development build. A machine-gun nest helped me decide what the new renderer had to get right first.

The flash came from the other barrel
The machine-gun nest has two barrels. Each takes a turn firing. In an early version of the new renderer, one barrel could kick back while the flash came from the other. The shot itself was fine. The two pieces of the picture disagreed about what had just happened.
That was an awkward thing to find after getting the big pieces working. Asgard could draw a full base, put a shadow under a moving vehicle and light up the ground around a shot. If you watched the nest fire from above, it looked busy enough to pass. You had to get close and look at the first frame of a shot to see that it was telling two stories.
The discrepancy came down to timing. The renderer chose a barrel pose while preparing the frame. In the meantime, the effects code read the new shot and advanced to the barrel that had actually fired. By the time the frame was drawn, both halves had made a reasonable choice using different moments in the same fight.
Let the shot settle the question
A renderer needs to agree with itself about more than position. When it draws a shot, the mesh, recoil, flash and streak all need the same answer about where it began. In the revised path, the current frame can work out which barrel the new event belongs to before it draws the weapon and its effects. The rig test checks both barrels in turn and compares the flash origin with the moving barrel tip on the firing frame.
That was only one way for the two to drift. Some weapons have a barrel the game can move. Others have launch tubes fixed to the mount. Applying the same elevation to both can move a flash into empty space above a tube that never moved. Another check exposed a reversed rotation: the barrel moved down when it was meant to rise. A render of an idle unit would have told me very little about either problem.
The way out was to compare specific movements against the existing game. For the nest it was the first frame of a shot. For a launcher it was the position of the tube. For a vehicle turning in place it was what the two tracks did when the hull began to rotate. Auditing the rigs across the 44 assets made those questions part of the work on the renderer itself.
A busy battle can show you the same hit twice
The groundwork for the renderer was to make the battlefield readable when a lot happens at once. There’s a quieter version of that problem in the code. Frames can see some of the same recent events, so the view needs to remember which ones it has already shown. If a retained impact looks new again, the shock pulse can play twice even though the simulation registered one impact.
One version bounded that history by wiping it after a count. In a busy fight, the next frame could still see events from just before the wipe. The replacement forgets old impacts as they age out and clears presentation state when the clock goes back. The regression exercises a burst big enough to cross the old limit as well as a rewind. Those are two very different reasons for an old event to turn up in a frame.
It’s the same kind of evidence I wanted when I started building Asgard. I can give a coding agent a case where the second flash lands on the wrong barrel or an impact appears twice, then ask it to show the result at the frame where the mistake used to happen. The case has to be narrow enough to repeat and specific enough that we both know what counts as fixed.
The renderer people start with
The previous note ended with Asgard as an option. It now draws the battlefield when you open the Rampart Zero development build. The ordinary browser path tries WebGPU and can fall back to WebGL 2. I kept the separate Three.js path available for comparisons. That gives me a way to tell when a new view has lost something learned in the old one.
Making the switch also meant changing what a startup test asks for. The old check looked for a particular kind of object in the Three.js scene. The default build now checks that Asgard has drawn frames, loaded the Command Center mesh and submitted it for rendering. The development record includes separate successful Chrome startup checks for the two paths. Those checks are narrow on purpose. A browser that can draw the first building still has to get through the fights where the interesting problems live.
That is where I want to spend my time now. At strategy height, a shot should come from the barrel that moves. When I zoom in, the same thing should still be true. Having both a frame I can inspect and a battle I can play makes it easier to tell which part needs work.
One weapon belonged to a much larger cutover
The recoil bug was a good test because it exposed a place where the new renderer had to agree with the old one at the moment of a shot. That was one piece of the cutover. We also needed a sensible default startup, a way to recognize loaded models, and enough late-wave coverage to trust the picture beyond the opening base.
The comparison path still had a place after November 23. It gave me a view of the same battle when I wanted to ask whether a change in the new renderer meant better information had reached the player.
Read the wider account in Put a second picture on the same world.