How stickyfingies/grove works
Main Components
a) Core Engine Layer:
• ECS (Entity Component System)
• Graphics Engine (Three.js)
• Physics Engine (Bullet)
• Asset Loading System
b) Threading Architecture:
• Main Thread (Scene Graph Management)
• Render Thread (WebGL/Three.js)
• Physics Thread (Bullet Engine)
c) Game Systems:
• Game Scripts
• Entity Management
• Asset Management
• User Interface
• Input Handling
┌─ Game Layer ──────────────────────────┐
• Game Scripts │
• Entity Behaviors │
• UI Components │
• ┬─────────────────────────┘
┌──────────────▼─────────────────────────┐
• Engine Core │
• ┌─────────────┐ ┌────────────┐ │
• ECS World │ │Asset Loader│ │
• ┘ └────────────┘ │
• ┬─────────────────────────┘
┌──────────────▼─────────────────────────┐
• Parallel Processing Layer │
• ┌─────────┐ ┌─────────┐ ┌───────────┐ │
• Main │ │ Render │ │ Physics │ │
• Thread │ │ Thread │ │ Thread │ │
• ┘ └─────────┘ └───────────┘ │
• ┘
Communication Flows
• Shared memory communication between threads
• Entity component updates
• Asset loading pipelines
• Input handling flow
• Scene graph updates
Important Details to Highlight
a) Thread Communication:
• Shared memory buffers
• WASM boundaries
• Write-once read-many data flows
b) ECS Architecture:
• Component storage
• System execution order
• Entity lifecycle management
c) Asset Pipeline:
• glTF loading process
• Resource management
• Memory allocation
Implementation Notes
• Thread synchronization mechanisms
• Memory management strategies
• Performance optimization points
• System initialization sequence
Technology Stack Indicators
Areas utilizing:
• Three.js (Graphics)
• TypeScript
• WebGL
• WebAssembly
• Shared Array Buffers