← Back to BLACKWIRE CIPHER BUREAU CODE REWRITE Code editor showing C3 source files alongside a fast build timer

Madrigal's developers compare Zig and C3 build times, highlighting the dramatic speed improvement.

MADRIGAL GAMES REWRITES TRACTION POINT IN C3, SLASHES BUILD TIME

*Madrigal Games replaced all Zig code in its Traction Point title with the emerging C3 language. The switch cut full‑build times from dozens of seconds to a few, reshaping the studio’s hot‑reload workflow and modding pipeline.*

By CIPHER Bureau - BLACKWIRE  |  November 30, 2026, 05:00 CET  |  C3, Zig, game development, hot-reload, compilation speed

Madrigal Games announced a complete rewrite of its in‑development title Traction Point, swapping out every Zig module for the newer C3 language. The change was motivated by a crippling build pipeline on Windows, where Zig’s LLVM linking stretched full debug builds to 24 seconds and single‑line edits to 15 seconds. By moving to C3, the studio slashed compile time to roughly three seconds, with the fastest runs clocking in at 2.6 seconds. This speedup unlocked a fluid hot‑reload workflow, letting developers tweak UI, animation curves, or inject debug prints and see results instantly while the game runs. The move also aligns with Madrigal’s long‑term plan to compile mods to WebAssembly for broader community contributions.

What speed gains does C3 deliver over Zig?

The developer measured a full debug build of Traction Point at just over 100k lines of Zig code taking roughly 24 seconds. Changing a single line and rebuilding with a warm cache still required more than 15 seconds. By contrast, C3 compiled the entire game without any caching in about 3 seconds, with observed runs as fast as 2.6 seconds. Even as the codebase grows, the author expects the gap to remain dramatic, giving developers near‑instant feedback on changes.

Why did Madrigal switch from Zig to C3?

The primary driver was compilation latency on Windows. Zig’s self‑hosted backend compiles quickly in debug mode on other platforms, but it lacks a Windows version and still suffers long LLVM linking times despite incremental compilation. C3 offered a drop‑in memory model—no garbage collector, no RAII—matching Zig’s constraints while delivering sub‑3‑second builds. Its WASM target, fast compile speed, and syntax familiar to C‑derived languages also promised easier adoption by future modders.

Hot‑reload the code while the game is running, and it shows up.

How does hot‑reload change development at Madrigal?

Hot‑reload lets developers modify UI elements, animation curves, or insert temporary debug prints and see the results while the game runs. A UI tweak appears in seconds; an animation ease‑in adjustment is visible after a quick reload; a bug‑isolating print shows up instantly. This eliminates the need to stop, rebuild, and restart, compressing iteration cycles from minutes to a handful of seconds and keeping the developer’s mental model aligned with the live game state.

What C3 features made the port feasible?

C3 mirrors Zig’s explicit memory handling, offering no garbage collection and no RAII, while adding built‑in temporary memory pools. It supports the defer statement, allowing direct copy‑paste of Zig lifetime management code. Annotations such as @Component and @Exposed let the engine treat structs as game components and expose fields to the level editor without extra boilerplate. Operator overloading enables concise math expressions, and the language compiles to WebAssembly, preserving the studio’s mod‑to‑WASM strategy.

Frequently asked questions

How much faster is C3 compilation than Zig on Windows?

C3 builds the full Traction Point game in about 3 seconds, sometimes as fast as 2.6 seconds, while Zig takes roughly 24 seconds for a full debug build and over 15 seconds for a single‑line change.

What hot‑reload capabilities does the new C3 code give developers?

Developers can modify UI elements, adjust animation ease‑ins, or add temporary debug prints and see the changes instantly while the game runs, thanks to C3’s rapid compile‑and‑reload cycle.

What language features does C3 share with Zig that made the port possible?

C3 matches Zig’s memory model with no garbage collector or RAII, supports defer for lifetime management, offers temporary memory pools, and uses annotations like @Component and @Exposed to integrate with the engine.

Madrigal’s C3 migration demonstrates how a language that blends Zig’s low‑level control with rapid compilation can reshape indie game development. The studio now iterates in seconds rather than minutes, accelerating feature testing and bug isolation. As the codebase expands, the real test will be whether C3’s speed holds up, but the early gains suggest a new benchmark for performance‑driven tooling in the indie sector.

Sources: Hacker News – So, I rewrote my game in C3 (https://www.madrigalgames.com/blog/so-i-rewrote-my-game-in-c3/)