From 13626410c4d6db7fdc15ded5ee7865fcdbf0b88a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 15 Jan 2026 22:05:38 +0100 Subject: refactor: transition to struct-of-arrays ECS architecture - Replace individual Entity structs with centralized component slices in Game struct (SoA layout). - Implement bitmask-based component lookup (CM_Position, CM_Move, etc.). - Convert logic from object-oriented Update() methods to standalone Systems (UpdateMoveSystem, UpdateGatherSystem, UpdateSpawnSystem). - Update rendering, selection, and input handling to iterate over component arrays. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 7400fb5..e3ba5a5 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,11 @@ - perf: look for nil comparison -> more data oriented - perf: keep a short array of selected and use it instead of `Value.IsSelected` - perf: component columns and systems +- ecs: bitfield for fast checking +- ecs: rename to systems +- perf: measure frame budget +- rename Selection to Selectable +- extract todos in todo list ## Bugs -- cgit v1.3