Skip to content

v0.0.60

Choose a tag to compare

@mococa mococa released this 19 Jan 01:40
· 240 commits to main since this release

Release Notes v0.0.60

New Features

Game Loop System

  • Added TimeoutDriver for server-side game loop management with configurable timing
  • Implemented RafDriver (requestAnimationFrame) for client-side rendering
  • Implemented ImmediateDriver for immediate execution scenarios
  • Unified driver interface with createDriver for both client and server environments

ECS Performance Optimizations

  • Added __worldIndex to components for O(1) index access
  • Optimized component retrieval using Record-based index access
  • Enhanced ergonomic API with batch processing and optimized system execution
  • Added getFieldArray method for direct access to component fields
  • Improved entity-component addition with inline caching and direct store access

Improvements

  • Streamlined component store update method to eliminate Object.keys() allocation
  • Enhanced benchmark suite with hybrid Murow ECS and Bitecs comparisons
  • Updated entity count formatting in benchmarks for better readability

Testing

  • Comprehensive test coverage for TimeoutDriver, RafDriver, and ImmediateDriver
  • Updated driver creation logic with proper test validation