{
  "version": 1,
  "canonical": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel",
  "title": "One shot, one barrel — Ninth Signal",
  "description": "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.",
  "language": "en",
  "manifest": "https://ninth-signal.com/representations/index.json",
  "contentHtml": "<article class=\"longform studio-story\"><header class=\"story-header\"><a class=\"eyebrow\" href=\"/journal\">← FIELD NOTES / ASGARD TVEIR</a><h1>One shot, one barrel</h1><p class=\"story-deck\">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.</p><div class=\"story-meta\"><time datetime=\"2026-11-23\">NOVEMBER 23, 2026</time><span>UPDATED <time datetime=\"2026-11-25\">NOVEMBER 25, 2026</time></span><span>5 MIN READ</span><span>NINTH SIGNAL / ASGARD TVEIR</span></div></header>\n <figure class=\"authentic-media\"><picture><source type=\"image/webp\" srcset=\"/media/current/viper-close-960.webp 960w, /media/current/viper-close.webp 1920w\" sizes=\"(max-width:760px) 100vw, 90vw\"><img src=\"/media/current/viper-close.webp\" alt=\"A Viper tank seen from above with its turret and barrel visible\" width=\"1920\" height=\"1080\" loading=\"lazy\"></picture><figcaption>A Viper from the Rampart Zero Armory. The turret, barrel and hull each have their own movement in the game.</figcaption></figure><div class=\"story-layout\"><aside class=\"story-toc\"><span class=\"eyebrow\">IN THIS STORY</span><a href=\"#chapter-1\">01 / The flash came from the other barrel</a><a href=\"#chapter-2\">02 / Let the shot settle the question</a><a href=\"#chapter-3\">03 / A busy battle can show you the same hit twice</a><a href=\"#chapter-4\">04 / The renderer people start with</a><a href=\"#chapter-5\">05 / One weapon belonged to a much larger cutover</a></aside>\n <div class=\"story-text\"><section id=\"chapter-1\" class=\"story-chapter\"><span class=\"chapter-number\">01</span><div><h2>The flash came from the other barrel</h2><p>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.</p><p>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.</p><p>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.</p></div></section><section id=\"chapter-2\" class=\"story-chapter\"><span class=\"chapter-number\">02</span><div><h2>Let the shot settle the question</h2><p>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.</p><p>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.</p><p>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.</p></div></section><section id=\"chapter-3\" class=\"story-chapter\"><span class=\"chapter-number\">03</span><div><h2>A busy battle can show you the same hit twice</h2><p>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.</p><p>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.</p><p>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.</p></div></section><section id=\"chapter-4\" class=\"story-chapter\"><span class=\"chapter-number\">04</span><div><h2>The renderer people start with</h2><p>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.</p><p>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.</p><p>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.</p></div></section><section id=\"chapter-5\" class=\"story-chapter\"><span class=\"chapter-number\">05</span><div><h2>One weapon belonged to a much larger cutover</h2><p>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.</p><p>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.</p><p>Read the wider account in <a href=\"/journal/put-a-second-picture-on-the-same-world\">Put a second picture on the same world</a>.</p></div></section><a class=\"text-link\" href=\"https://rampart-zero.com\">Explore the game <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://rampart-zero.com/devlog/watch-the-turret-turn\">The Rampart Zero Field Report <span aria-hidden=\"true\">↗</span></a></div></div>\n \n \n <nav class=\"related-reports\" aria-label=\"Related Field Notes\">\n  <h2>Related Field Notes</h2>\n  <ul><li><a href=\"/journal/asgard-the-first-trailer\">The first Rampart Zero trailer on Asgard Tveir <span aria-hidden=\"true\">↗</span></a><p>A wireframe becomes a battlefield. Then the camera moves low enough to show what the renderer has to keep true about the fight.</p></li><li><a href=\"/journal/asgard-renderer-wave-nine\">The renderer had to get through wave nine <span aria-hidden=\"true\">↗</span></a><p>The battlefield froze on wave nine while the simulation and HUD kept running. Finding out why changed what I expect from Asgard’s new renderer.</p></li></ul>\n </nav>\n <div class=\"story-end-links\">\n  <a class=\"text-link\" href=\"/journal/the-two-lives-of-asgard\">Read the history of Asgard Tveir <span aria-hidden=\"true\">↗</span></a>\n  <a class=\"text-link\" href=\"/feed.xml\">Subscribe to Field Notes via RSS <span aria-hidden=\"true\">↗</span></a>\n </div></article>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Organization",
        "@id": "https://ninth-signal.com/#organization",
        "name": "Ninth Signal",
        "url": "https://ninth-signal.com/",
        "description": "An independent game studio making games and browser-native research experiments.",
        "logo": {
          "@type": "ImageObject",
          "url": "https://ninth-signal.com/brand/ninth-signal-logo.png",
          "width": 1536,
          "height": 1024
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://ninth-signal.com/#website",
        "url": "https://ninth-signal.com/",
        "name": "Ninth Signal",
        "publisher": {
          "@id": "https://ninth-signal.com/#organization"
        },
        "inLanguage": "en"
      },
      {
        "@type": "CreativeWork",
        "@id": "https://ninth-signal.com/engine#asgard-tveir",
        "name": "Asgard Tveir",
        "url": "https://ninth-signal.com/engine",
        "description": "Why Ninth Signal is building Asgard Tveir, a game engine for inspecting, replaying and testing the worlds behind its games.",
        "genre": "Game engine",
        "creativeWorkStatus": "In development",
        "creator": {
          "@id": "https://ninth-signal.com/#organization"
        },
        "inLanguage": "en"
      },
      {
        "@type": "WebPage",
        "@id": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel#webpage",
        "url": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel",
        "name": "One shot, one barrel — Ninth Signal",
        "description": "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.",
        "isPartOf": {
          "@id": "https://ninth-signal.com/#website"
        },
        "about": {
          "@id": "https://ninth-signal.com/engine#asgard-tveir"
        },
        "inLanguage": "en",
        "primaryImageOfPage": {
          "@type": "ImageObject",
          "url": "https://ninth-signal.com/media/current/viper-close.webp",
          "width": 1920,
          "height": 1080
        },
        "mainEntity": {
          "@id": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel#article"
        },
        "breadcrumb": {
          "@id": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel#breadcrumbs"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Ninth Signal",
            "item": "https://ninth-signal.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Field Notes",
            "item": "https://ninth-signal.com/journal"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "One shot, one barrel",
            "item": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel"
          }
        ]
      },
      {
        "@type": "Article",
        "@id": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel#article",
        "headline": "One shot, one barrel",
        "description": "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.",
        "image": [
          "https://ninth-signal.com/media/current/viper-close.webp"
        ],
        "datePublished": "2026-11-23",
        "dateModified": "2026-11-25",
        "author": {
          "@id": "https://ninth-signal.com/#organization"
        },
        "publisher": {
          "@id": "https://ninth-signal.com/#organization"
        },
        "mainEntityOfPage": {
          "@id": "https://ninth-signal.com/journal/asgard-one-shot-one-barrel#webpage"
        },
        "about": {
          "@id": "https://ninth-signal.com/engine#asgard-tveir"
        },
        "inLanguage": "en"
      }
    ]
  }
}
