How scallyw4g/bonsai works
Main Components
a) Core Engine Systems:
• Renderer (OpenGL 3.3+)
• Physics System
• Entity Management
• Work Queue (MT Job System)
• Asset Management
• World Management
• Input System
b) Rendering Pipeline:
• Deferred Shading System
• HDR Lighting
• Transparency Handler
• Bloom Effect
• Shadow Mapping
• SSAO (Screen Space Ambient Occlusion)
c) Resource Management:
• Asset Loaders (Collada, OBJ, VOX)
• Texture Management
• Model Management
• Memory Management
[Game Layer]
• ↑↓
[Engine API Layer]
• ↑↓
[Core Systems Layer]
• ↑↓
[Platform/Hardware Layer]
Key Subsystems Detail
a) Renderer Pipeline:
[G-Buffer] → [Deferred Lighting] → [Shadow Pass] → [SSAO] → [Transparency] → [HDR/Bloom] → [Final Output]
b) World Management:
[World Chunks] → [Voxel Synthesis] → [Mesh Generation] → [Physics Integration] → [Rendering]
c) Asset Pipeline:
[Asset Files] → [Loaders] → [Asset Cache] → [Resource Management] → [Engine Systems]
Implementation Notes
• Rectangles: Core systems
• Rounded rectangles: Managers/Controllers
• Hexagons: Processing nodes
Critical Paths
Main processing pipelines:
• Asset loading and processing
• Frame update cycle
• Physics simulation
• Render pipeline
• Input processing
Performance-Critical Areas
Systems requiring special attention:
• Voxel mesh generation
• Particle systems
• Physics calculations
• Render state management
Debug/Development Tools
Supporting systems:
• Performance profiler
• Memory tracker
• Debug visualization
• Hot reload manager
This system design should reflect both the current state of the engine and allow for the planned features mentioned in the wishlist section of the README.