summaryrefslogtreecommitdiff
path: root/src/ecs/ecs.zig
AgeCommit message (Collapse)Author
2025-03-29moved rendering to a system.Lorenzo Torres
To ensure that the rendering system is being run in the main thread, I added the concept of "Sync systems", so that when a system group is created it's possible to specify whether it's possible to run it on a separate thread or not.
2025-03-28the ECS is now using a more data oriented approach.Lorenzo Torres
By defining archetypes using SOAs (Zig has this data structure in `std`, called std.MultiArrayList), the engine can iterate faster over commonly defined entities avoiding cache misses since each component is aligned with other components of the same entity.
2025-03-27Made Renderer a separate moduleLorenzo Torres
2025-03-23make the ecs subsystem be a separate moduleLorenzo Torres