Archetype ECS #19
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#20 Transforms as components with a hierarchy
UnflavoredMeson/Primal_Plus_Plus
#23 Render components
UnflavoredMeson/Primal_Plus_Plus
#14 utl::free_list with stable storage
UnflavoredMeson/Primal_Plus_Plus
#17 Frame phases primal.frame and queued entity changes
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Arash's entity system stores components in per-type arrays indexed by entity. Iterating many entities with several components, running systems in parallel, and knowing what changed all need an ECS. Actors (S8) and the renderer (S6) are built on it.
Decided
world.add_system<const A, B>(name, group, fn), scheduled onprimal.jobsby declared read/write access;const Tmeans read-only.Engine/ECS/Ecs.h), the type-erased core a.cpp(World.cpp), because game code and headers use the templates.Read first
Engine/Components/Entity.cpp,Transform.cpponmaster.Steps
UnitTests/EcsTests.cpp: create/remove, add/remove a component (entity moves archetype), queries over two archetypes, change versions, queued changes applied at the sync point.game_entity::world()the game world, its ids the entity ids.benchmark:case iterating 100,000 entities with three components.Done when
Claude can help with
Learn