Viewing profile — ajmmertens
ajmmertens
HN member- Joined
- Sat, Dec 29, 2018, 2:42 AM UTC
- HN karma
- 103
- Public activity
- 50 items
- HN profile
- View on Hacker News ↗
About ajmmertens
No profile information was provided.
Recent public activity
- story
- comment
- story
-
comment
Comment #38713732
Judging by the system & component names this looks to be pretty well designed tbh. There are a lot of systems for sure, but considering this is a city simulator that's kind of expe…
-
comment
Comment #38713693
> I bet the current design passes and queries data all over the place, very redundantly That's not how ECS works. A system has one or more queries that provide it direct access to …
-
comment
Comment #36242412
The query engine works on top of an Entity Component System (ECS) storage that stores entities and their data in cache coherent (SoA - https://en.wikipedia.org/wiki/AoS_and_SoA ) d…
-
comment
Comment #35445384
Or if you want code that's easier to extend, read and don't want to do your own memory management. Here's a bit of code from that project that generates a monster: https://github.c…
-
comment
Comment #35442868
The same goes for Flecs: - it has tools like https://github.com/flecs-hub/explorer that work with any Flecs project - it has builtin support for hierarchies/prefabs and more ( http…
-
comment
Comment #35442512
The way you frame the question already suggests a solution, and one that indeed doesn't fit ECS that well. That doesn't mean you couldn't design a DAW using ECS, but you'd have to …
-
comment
Comment #35442297
> but still ECS incurs massive overhead compared to basic arrays of structs I actually know of quite a few projects that use ECS as the foundation for a low level rendering library…
-
comment
Comment #35440884
The opposite also applies: don't reinvent the wheel if you want to get something done. Existing game engines like Unity/Unreal already have builtin solutions for entity management,…
-
comment
Comment #35440805
I'm definitely not going to argue that you need ECS to do much of anything, but ECS has come long way in the past 4 years from a tool that lets you have lots of entities in a game,…
-
comment
Comment #35440664
It could be yep. One of the things that makes it a good fit for this use case is that Flecs has a query language that supports things like graph traversal and joins. Combined with …
-
comment
Comment #35440585
Definitely possible. I know of a project that used an event-based architecture to decide when to run ECS systems.
-
comment
Comment #35440562
The biggest reason for me was to reduce compile times, which got cut into approximately half when I replaced STL containers with simpler custom ones. This starts adding up in large…
-
comment
Comment #35440492
Pretty close, but there's a bit more to it. This post goes over one way an ECS can store data: https://ajmmertens.medium.com/building-an-ecs-2-archetypes-a...
-
comment
Comment #35440456
Whether ECS is complex or not depends a lot on which one you use. I've heard the same thing from a lot of gamedevs that use DOTS, but people in general seem to be pretty happy usin…
- story
- story
- story
- story
- story
- story
- story
- story