diff options
author | Lorenzo Torres <torres@sideros.org> | 2025-03-28 15:34:36 +0100 |
---|---|---|
committer | Lorenzo Torres <torres@sideros.org> | 2025-03-28 15:34:36 +0100 |
commit | ff84d6ac5375587428f279c06ead111301a332ab (patch) | |
tree | a26f32397f66693494ab17187a212cb52729ff3f /src/ecs/ecs.zig | |
parent | 11f6bc2b04fae03a6e81735d4bcebe9505c5d76d (diff) |
the ECS is now using a more data oriented approach.
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.
Diffstat (limited to 'src/ecs/ecs.zig')
-rw-r--r-- | src/ecs/ecs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ecs/ecs.zig b/src/ecs/ecs.zig index 9efc044..e389223 100644 --- a/src/ecs/ecs.zig +++ b/src/ecs/ecs.zig @@ -1,5 +1,5 @@ pub const components = @import("components.zig"); -const entities = @import("entities.zig"); +pub const entities = @import("entities.zig"); pub const Pool = entities.Pool; pub const Resources = entities.Resources; |