finds.dev← search

// the find

munificent/game-programming-patterns

★ 4,504 · HTML · NOASSERTION · updated Jul 2024

Source repo for the book

Source repo for Robert Nystrom's Game Programming Patterns book, which covers 20 patterns common in game codebases — things like game loop, component, bytecode, and dirty flag — with C++ examples and clear diagrams. It's a finished book, not a library, so you're here to read it, not import it. The web version at gameprogrammingpatterns.com is free.

The pattern selection is genuinely game-specific — it doesn't just rehash GoF. Data Locality and Dirty Flag chapters are better explanations of those techniques than most blog posts. The C++ code samples are minimal and focused; no framework noise, just the pattern. Nystrom explains the tradeoffs honestly, including when not to use a pattern.

The repo is effectively archived — the author said so in the README and stopped responding to issues. The build tooling requires Python 2.7, which is end-of-life, so good luck getting the local build to run without patching the format script. No coverage of modern game engine realities like ECS at scale, GPU-driven rendering patterns, or anything post-2014. If you want to contribute a fix, it will sit unmerged.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →