From ff84d6ac5375587428f279c06ead111301a332ab Mon Sep 17 00:00:00 2001 From: Lorenzo Torres Date: Fri, 28 Mar 2025 15:34:36 +0100 Subject: 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. --- src/ecs/ecs.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ecs/ecs.zig') 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; -- cgit v1.2.3