Bob Nystrom - Is There More to Game Architecture than ECS?

Channel:Roguelike Celebration · Length:23:06 · Published:2018-10-09 · Views:302737

Watch on YouTube

Summary

Bob Nystrom, author of Game Programming Patterns, gives a Roguelike Celebration 2018 talk questioning whether entity component systems are the only way to structure a game. He walks through alternative architectures drawn from roguelike development.

Why HN recommends it

HN commenters cite it as a level-headed counterpoint to ECS zealotry and a good intro to game architecture beyond ECS.

Bob Nystrom has an excellent talk on roguelike architecture [0] — HN, 2021

Software architecture & design · Game programming & engines

Subtitles (excerpt)

hi everybody y'all excited about talking about software architecture oh wow that works better way better than I thought that's like the saddest hype statement ever yeah so uh I'm gonna talk about software architecture um I don't know there's any intro stuff I need to say nope let's get going so my name is Bob Nystrom I when I was a teenager my brother and I spent a lot of time working on a tabletop role-playing game and at some point I found myself starting to hack on my own roguelike and I've been tinkering on it ever since that was 20 years ago it's nowhere close to being done so I have poor resource management skills apparently during that time I worked for EA for eight years so I have experience being trapped in dungeons for a long time as part of my escape plan I wrote this book on software architecture called game programming patterns it's a real book but you can also read the entire thing online on the web at that kind of hard to read URL right there right now I'm in the middle of writing another book on programming languages you can't read the entire thing online because it's not done but the stuff that is done you can read online but the accomplishment that I'm most proud of in

On Hacker News

I'd say don't immediately go into making an ECS and don't sweat about perf too much. You can totally do this in any programming language. This is a good talk about roguelike software design in general: [VIDEO] Tbh the whole channel is a gold mine of inspiration. Also check: [LINK] — marcingas, 2026-05
I can't help but be heavily skeptical of approaches to a (traditional) roguelike that use ECS. The idea is very entrenched in the rust gamedev community, but for a turn based tile based game there's extremely little benefit and a lot of added complexity. Bob Nystrom has an excellent talk on roguelike architecture [0] and rust as a language itself doesn't prevent any of these approaches. If anythi… — halvnykterist, 2021-10
This is known and heavily used by the game industry for a long time now. Ultimately it comes down to data locality and there's no silver bullet. Performance varies with your data access pattern and code must be adapted to keep caches as warm as possible. There are also maintainability trade-offs. In general I'd advise this kind of optimization only for performance-critical code like games. For mo… — hu3, 2020-09
The crossover of language design/implementation and game development made me assume this was either a Jonathon Blow (Jai, Braid, The Witness) or Bob Nystrom project (Game Programming Patterns, Crafting Interpreters, 'Is There More to Game Architecture than ECS?' [1]). Either way, given the time constraints and requirements I'm expecting a lot of text adventures and rogue-likes. [1] [VIDEO] — sunrunner, 2025-11
Since engine is targetting pixel art, isn't ECS a bit of an overkill...? And yes, technically artstyle has nothing to do with game architecture. But in practice, most games of this style are pretty small, and thus don't really have any real performance requirements, so ecs'ing everything is overengineering compared to oop-style, coupled architecture, no? Also related: [VIDEO] — Xeamek, 2023-12

Related videos