Arch is a C# entity-component system using archetypes and chunks for game development and data-oriented code. It targets .NET Standard and modern .NET runtimes.
Overview
Arch implements an entity-component system in C# with archetype-based storage and configurable chunk sizes, oriented toward game worlds and data-oriented programming. You define entities and components, then run queries and systems over matching sets, with optional multithreading for query work.
The API is intentionally small: bulk entity operations, command buffers, events, and both generic and non-generic query styles are supported alongside optional pure-ECS mode. Chunks default to 16KB and entities stay compact in memory; the design emphasizes cache-friendly iteration and controlled allocation.
It integrates with common C# game stacks through documented guides for MonoGame, Unity, and Godot. Additional packages extend Arch with systems, tools, and source generators, including community engine layers built on the same ECS model.
Projects in the wild span factory sims, roguelite strategy, tower defense, and metaverse clients, all using Arch as the core entity model. Documentation and a wiki cover concepts, performance techniques, and extension points for authors evaluating ECS options in C#.
Key features
- Archetype chunks with configurable size
- Optional multithreaded queries
- Bulk and batch entity operations
- Command buffers and ECS events
- Generic and non-generic APIs
- AOT-friendly design
- Unity, Godot, and MonoGame guides
- Optional pure-ECS performance mode
Use cases
- Real-time game entity simulation
- Data-oriented C# application logic
- Large-world ECS prototyping
- Cross-engine C# game projects