Skip to content

Astra 2.0.0

Choose a tag to compare

@T3mps T3mps released this 24 Aug 09:50
· 2 commits to 2.0.0 since this release
1bc8ffc

Astra ECS v2.0 - System Scheduling, Parallel Execution & Advanced Architecture

🎉 Major Release Highlights

Astra 2.0 is a massive update introducing system scheduling, parallel execution, command buffers, batch operations, and a complete architectural overhaul for production-ready performance.

New Parallel Performance

  • 17x speedup on 20 cores for single component iteration
  • ParallelForEach with automatic work distribution across cores
  • Thread-safe chunk-based parallelization

🚀 Major New Features

System Scheduling Architecture (NEW)

  • SystemScheduler class for organizing and executing ECS systems
  • Automatic parallelization based on component access patterns
  • Lambda system support with automatic Read/Write detection via const qualifiers
  • System traits for declaring component dependencies (Reads/Writes)
  • Custom executor interface for job system integration
  • Dependency analysis for safe parallel execution

Command Buffer Architecture (NEW)

  • Deferred operations for safe modifications during iteration
  • Thread-safe command recording from multiple sources
  • Batch command execution with minimal overhead
  • Entity remapping for cloning and prefab instantiation
  • Undo/redo support foundation

Parallel Execution in Views (NEW)

  • ParallelForEach method for automatic parallelization
  • Chunk-based work distribution for load balancing
  • Thread-safe iteration with per-chunk processing
  • Configurable executor support

Const Components in Views (NEW)

  • Type-safe const components - View<Position, const Velocity>
  • Compile-time enforcement preventing accidental modifications

Batch Component Operations (NEW)

  • AddComponentBatch for efficient bulk additions
  • RemoveComponentBatch for bulk removals

FlatSet Container (NEW)

  • Open-addressing hash set with cache-friendly layout
  • SIMD-accelerated lookups using metadata bytes
  • Swiss table algorithm for efficient probing

📦 Architectural Restructuring

Entity Management Overhaul

  • EntityManager with for entity orchestration/lifecycle
  • EntityTable for version lookups/state management
  • EntityIDStack managing free/recycled IDs

Archetype System Redesign

  • ArchetypeManager as central archetype controller
  • ArchetypeGraph for efficient archetype transitions
  • ArchetypeChunkPool for optimized chunk allocation/reuse

🛠️ Requirements

  • C++20 compatible compiler (GCC 11+, Clang 13+, MSVC 2022+)
  • Premake5 for project generation
  • Optional: GoogleTest, Google Benchmark

📝 License

MIT License - See LICENSE file for details


Full Changelog: v1.0.0...v2.0.0