# A game dev swapped Zig for C3 and cut build times from 24 seconds to 3

Original title: So, I rewrote my game in C3

> Hacker News story 50671342 · language: en · submitted 2026-11-27
> Web version: https://zeli.app/story/50671342
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 93 · by [lerno](<https://news.ycombinator.com/user?id=lerno>) · 💬 15
[original](<https://www.madrigalgames.com/blog/so-i-rewrote-my-game-in-c3/>) · [HN discussion](<https://news.ycombinator.com/item?id=50671342>)

## Summary

Sebastian of Madrigal Games rewrote his game Traction Point in C3, replacing all of its Zig code. The motivation was hot-reload speed: a full Zig debug build of roughly 100k lines took about 24 seconds, and even a one-line change took over 15, while C3 compiles the whole game in around 3 seconds. He also built SL3, a C3 subset that runs as bytecode or native code for near-instant particle-effect iteration.

## Key quote

> C3 compiles the full game, without caching, in about 3s. I've seen it be as fast as 2.6s. Now, this is podracing!

## HN discussion (15 comments)

### [cornstalks](<https://news.ycombinator.com/item?id=50694907>)

> \> To give you an idea of what I am talking about, a full build of the Traction Point debug configuration, at a little over 100k LoC of Zig, takes around 24s. Changing a single line and rebuilding, with a warm cache, takes over 15s. C3 compiles the full game, without caching, in about 3s. I’ve seen it be as fast as 2.6s.
>
> One thing I've never understood about Zig: if clang (and c3c) and Zig are both using LLVM for code generation, why is compiling so much slower in Zig for projects of similar size?

### [emidoots](<https://news.ycombinator.com/item?id=50695095>)

> I work on the Mach[0] game engine in Zig, and I would be curious to hear if the author tried running the Zig Windows executable build under WSL2 or not, targeting Windows via cross-compilation?
>
> In my experience Windows filesystem is very very slow, and cross-compiling from WSL (which conveniently launches native Windows exe files outside of the VM when invoked in WSL2!) has been the better developer experience for me, i.e. via `zig build run -Dtarget=x86_64-windows` to build with a Linux compiler version, cross-compile for windows, and execute on the host Windows OS.
>
> Either way, nice article - I hope you continue writing!
>
> [0] https://machengine.org

### [ricardobeat](<https://news.ycombinator.com/item?id=50694495>)

> Love the SL3 idea! The c3c compile times are so fast (usually <5s) that it doesn't bother me, but my other solution is to embed a tiny JS engine - also written in C3 [1].
>
> I've been writing a 3D renderer and game engine in C3 and having a blast, hopefully it will gain popularity for games. The language is solid, fast, free of traps, and much friendlier than Rust/Zig/etc.
>
> [1] https://github.com/ricardobeat/boomkat

---

## Cite

- Page: https://zeli.app/story/50671342
- Date: 2026-11-27
- Source: madrigalgames.com (https://www.madrigalgames.com/blog/so-i-rewrote-my-game-in-c3/)
- Hacker News: https://news.ycombinator.com/item?id=50671342

## Other languages

- zh: https://zeli.app/zh/story/50671342 · markdown: https://zeli.app/zh/story/50671342.md
- ja: https://zeli.app/ja/story/50671342 · markdown: https://zeli.app/ja/story/50671342.md
- ko: https://zeli.app/ko/story/50671342 · markdown: https://zeli.app/ko/story/50671342.md
- de: https://zeli.app/de/story/50671342 · markdown: https://zeli.app/de/story/50671342.md
- es: https://zeli.app/es/story/50671342 · markdown: https://zeli.app/es/story/50671342.md
- ru: https://zeli.app/ru/story/50671342 · markdown: https://zeli.app/ru/story/50671342.md
