Skip to content

KenseiECS v1.0.0

Choose a tag to compare

@KenseiTheOne KenseiTheOne released this 28 Mar 20:50
· 59 commits to main since this release

KenseiECS v1.0.0

Lightweight, Sparse Set-based Entity Component System for Unity.

Highlights

  • Sparse Set storage — O(1) component access, dense arrays for cache-friendly iteration
  • Dynamic component bitmask — unlimited component types with O(1) filter membership check
  • Reactive filters — always up-to-date, no manual synchronization
  • Zero-allocation iteration — struct enumerator, no GC pressure
  • Generational entities — 8-byte Entity (int Index + int Generation)
  • Auto-destroy — entities without components are destroyed automatically
  • IAutoReset / IAutoCopy — custom cleanup and deep-copy logic
  • OneFrame components — auto-removed event components
  • Nested system runners — separate groups for Update/FixedUpdate/LateUpdate
  • Named systems — enable/disable at runtime
  • Editor tools — World Inspector, Profiler, EcsEntityView with navigation (under KENSEI_DEBUG)

Performance (10,000 entities, .NET 8, zero allocations)

Operation KenseiECS vs LeoEcsLite vs Arch
Iteration (2 components) 13.9 us 1-8% faster 2.5x slower
Entity creation (2 components) 232 us 1.5-2.6x faster 1.6-4.8x faster
Structural changes (add+remove) 90.8 us 1.2x slower 6.5x faster
Game loop (mixed frame) 31.3 us 27-32% faster 2.4x faster

Installation

  1. Download KenseiECS-v1.0.0.zip from Assets below
  2. Extract into your Unity project's Assets/Scripts/ (or any folder)
  3. Done — no assembly definitions required

Define Symbols

  • KENSEI_DEBUG — enables Editor tools (World Inspector, Profiler, EcsEntityView)