4 min read

24 to 3 seconds: checking Traction Point’s reported build-time change

Madrigal Games reports reducing Traction Point’s full build time from about 24 seconds to about three seconds. The supplied Jarvis check verifies the arithmetic difference of −21 seconds; the article explains the developer’s reported workflow and compilation choices.

  • source-analysis
  • verified-check

Three seconds can be a substantial improvement for rebuilding a game and still be a noticeable interruption inside an interactive editor. That tension runs through Madrigal Games’ “So, I rewrote my game in C3”: faster compilation improved ordinary game development, while particle editing prompted a further change in how generated code executed.

Madrigal Games reports that Traction Point’s full debug build, comprising a little over 100,000 lines of Zig, took about 24 seconds. A warm-cache rebuild after changing one line took more than 15 seconds. The full C3 game reportedly compiled without caching in about three seconds, sometimes reaching 2.6 seconds. The developer describes hot reload as an integral part of work on UI layout, animation timing, and diagnostic prints, making compilation delays part of the everyday editing loop.

What the 21-second result establishes

The supplied Jarvis check artifact addresses one question: calculate the numeric change from the reported 24-second Zig build to the reported three-second C3 build.

Its inputs were before = 24 and after = 3. The operation subtracted the former from the latter: 3 − 24 = −21. The verified result was -21, expressing a decrease of 21 seconds between those supplied values.

That verification is limited to arithmetic. The compilation timings, migration details, and execution behavior remain claims reported by Madrigal Games. The subtraction supplies no independent measurement of the builds or validation of the broader system.

How the source connects compilation to editing

The developer’s account explains why language compatibility mattered alongside compilation speed. The desired replacement needed explicit memory management without garbage collection or RAII, WebAssembly support for mods, fast execution, and quick compilation. Madrigal Games describes Zig and C3 as similar enough for many concepts to translate almost mechanically. C3’s defer support helped preserve existing lifetime-management structure.

The project’s architecture also provided a way to stage the migration. According to the source, Traction Point’s engine was written in C++, with game code loaded through a DLL interface. Earlier work on WebAssembly mods had already established a starting point for C3 bindings. The developer expanded that support and ported engine APIs while continuing to run the Zig game, then reproduced the DLL interface required by the engine before moving individual game systems across.

Existing game data had to remain usable by both versions during the transition. Madrigal Games identifies differing treatment of default values for missing JSON data as a significant difficulty. Similar language concepts helped translation, but library behavior still required attention.

Particle authoring imposed a tighter feedback requirement. In the source’s description, each node in the particle editor contributes C3 code to an effect. Compiling that generated code into a dynamic library introduces a delay after edits. The editor also supported interpreting the graph, which the developer reports had lower runtime performance than compiled code with opportunities for inlining and removal of unused logic.

Madrigal Games describes SL3 as a way to support both rapid editing and native compilation. It is a strict subset of C3: valid SL3 source is also valid C3. During development, SL3 can compile to bytecode for a register-based virtual machine. The same source can pass through the official C3 compiler to produce a native DLL, using the same interface to the host application. The subset omits some advanced C3 facilities and restricts memory management and access to support sandboxing.

The useful engineering lesson in this reported design is that compilation latency belongs to a particular interaction. A few seconds may substantially improve whole-game hot reload while remaining disruptive during continuous graph editing. Sharing source and a host interface across bytecode and native execution gives the developer two ways to serve those different feedback loops.