Skip to content

Astra 1.0.0

Choose a tag to compare

@T3mps T3mps released this 17 Aug 02:08
6520ddf

Astra ECS v1.0 - High-Performance Entity Component System

🚀 Overview

Astra is a header-only Entity Component System (ECS) library for modern C++20, delivering high performance through archetype-based storage and aggressive optimization techniques.

⚡ Performance Highlights

  • ~1.04B entities/second single-component iteration (hot cache)
  • ~465M entities/second dual-component iteration
  • Sub-nanosecond per-entity overhead in tight loops
  • 2x faster batch entity creation vs individual creation

🎯 Key Features

Core Architecture

  • Archetype-based storage with automatic entity grouping by component composition
  • Structure-of-Arrays (SoA) layout for optimal cache utilization
  • 16KB chunk-based allocation aligned to modern CPU cache hierarchies
  • O(1) component access via direct ComponentID indexing

Advanced Capabilities

  • Relationship graphs - Hierarchical parent-child and bidirectional entity links
  • Query system with compile-time iteration optimizations
    • Optional components (Optional<T>)
    • Exclusion filters (Not<T>)
    • Any-of queries (Any<T...>)
    • One-of constraints (OneOf<T...>)
  • Memory defragmentation - Configurable chunk coalescing and archetype cleanup
  • Binary serialization with compression support (LZ4/ZSTD)
  • Cross-platform SIMD abstractions (SSE2/SSE4.2/AVX2/NEON)

🛠️ Requirements

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

📝 License

MIT License - See LICENSE file for details


Full Changelog: https://github.com/T3mps/Astra/commits/1.0.0