I have finished the roadmap for my MARROW game engine.
This means i can start working on it. I tried adding as many things that i thought a good game engine needs. It is not a engine with a editor it is a engine library becuase you have to use C++ to use it.
MARROW Engine — Roadmap
Build order matters here. Serialization and asset management come before rendering, so every later system (textures, meshes, fonts, scripts) loads through the same pipeline. Advanced lighting is its own step near the end. Scripts are native DLLs, not a virtual machine. MARROW is an engine library, not an editor: nothing here assumes an editor application.
I have the roadmap here:
Step 0 — Core Foundation
Establish the basic engine infrastructure and application lifecycle.
- [ ] Logging system (levels, categories, sinks)
- [ ] Assertions (debug and release variants)
- [ ] Fatal error handling
- [ ] Crash handler / minidump
- [ ] Basic application framework
- [ ] Main entry point
- [ ] Initialization and shutdown lifecycle
- [ ] Exit callbacks
- [ ] Smart pointer wrappers
- [ ] Basic utility functions (strings, hashing, bit ops)
- [ ] Clock and time utilities
- [ ] Command-line arguments
- [ ] Configuration system
Step 1 — Memory Management
Build the engine's memory management infrastructure.
- [ ] Platform Abstraction Layer (PAL)
- [ ] Virtual memory
- [ ] File I/O
- [ ] Dynamic library loading
- [ ] Thread and synchronization primitives
- [ ] High-resolution timers
- [ ] Memory allocation interface
- [ ] Heap allocator
- [ ] Pool allocator
- [ ] Bump allocator
- [ ] Memory alignment support
- [ ] Custom allocation and deallocation
- [ ] Memory allocation tracking
- [ ] Memory statistics
- [ ] Leak detection
Step 2 — Scheduling & Threading
Create the systems responsible for executing work.
2.1 Threading
- [ ] Thread abstraction
- [ ] Thread creation and destruction
- [ ] Mutexes
- [ ] Condition variables
- [ ] Atomic operations
- [ ] Thread pool
2.2 Job System
- [ ] Job and task definitions
- [ ] Wait counters
- [ ] Job dependencies
- [ ] Parallel-for helpers
2.3 Fiber Scheduler
- [ ] Fiber creation and destruction
- [ ] Fiber switching
- [ ] Fiber context management
- [ ] Fiber synchronization
- [ ] Fiber task system
- [ ] Fiber-based script scheduler
2.4 Tick Scheduler
- [ ] Tick-based execution
- [ ] Tick frequency configuration
- [ ] Fixed timestep support
- [ ] Tick callbacks
- [ ] Delayed execution
- [ ] Periodic tasks
- [ ] Tick prioritization
Step 3 — Math
The numeric foundation for rendering, ECS, physics and AI.
- [ ] Scalar utilities (clamp, lerp, approx-equal, angles)
- [ ] Vec2, Vec3, Vec4
- [ ] Mat3, Mat4
- [ ] Quaternion
- [ ] Transform composition and decomposition
- [ ] Projection and view matrix helpers
- [ ] Geometric primitives (ray, plane, AABB, sphere, frustum)
- [ ] Intersection tests
- [ ] Random number generation
- [ ] Documented coordinate and handedness conventions
Step 4 — Serialization
Turn engine data into bytes or text and back.
- [ ] Binary writer and reader
- [ ] Text format writer and reader
- [ ] Per-type serialize / deserialize functions
- [ ] Endianness handling
- [ ] Handle and pointer remapping
- [ ] Format versioning
- [ ] Schema migration
- [ ] Config serialization
Step 5 — Asset Management
One pipeline for everything loaded from disk.
5.1 Virtual File System
- [ ] Mount points
- [ ] Loose-file backend
- [ ] Packed archive backend
- [ ] Path normalization
5.2 Asset Core
- [ ] Asset IDs (hashed names)
- [ ] Asset handles with generation counters
- [ ] Asset registry / table of contents
- [ ] Loader interface
- [ ] Asset type registration
- [ ] Asset cache and reference counting
- [ ] Asset unloading
- [ ] Dependency management
5.3 Loading & Tooling
- [ ] Asynchronous loading on the job system
- [ ] Placeholder assets while loading
- [ ] Asset hot reload
- [ ] Asset packer tool
- [ ] Asset memory budgets
Step 6 — Rendering
Develop the rendering infrastructure, starting with 2D and progressing toward 3D rendering.
6.1 Rendering Foundation
Window & Device
- [ ] Win32 window creation
- [ ] Window event handling
- [ ] Window resize handling
- [ ] DirectX 11 initialization
- [ ] Device and device context creation
- [ ] Swap chain creation
- [ ] Render target creation
- [ ] Depth-stencil buffer creation
- [ ] Viewport configuration
Rendering Infrastructure
- [ ] Command buffer abstraction
- [ ] Render command generation
- [ ] Command submission
- [ ] Resource handles
- [ ] GPU resource allocation
- [ ] Vertex buffers
- [ ] Index buffers
- [ ] Constant buffers
- [ ] Shader compilation and loading (through assets)
- [ ] BeginFrame / EndFrame / Present
- [ ] Clear color configuration
- [ ] Depth buffer clearing
- [ ] Debug draw (lines, boxes)
6.2 Basic 2D Shapes
Untextured primitives. For each: generate vertices and indices, create render commands, manage GPU resources, support position, rotation, scale and color.
- [ ] Triangle
- [ ] Square
- [ ] Rectangle
- [ ] Circle
- [ ] Line
- [ ] Point
- [ ] Polygon
6.3 Basic 3D Shapes
For each: generate vertices, indices, normals and UVs, create render commands, support position, rotation, scale and material/color.
- [ ] Plane
- [ ] Pyramid
- [ ] Cube
- [ ] Cuboid
- [ ] Sphere
- [ ] Capsule
- [ ] Cylinder
- [ ] Cone
6.4 Textures & Materials
Texture System
- [ ] PNG decoder from scratch (as an asset importer)
- [ ] Texture creation
- [ ] GPU texture allocation
- [ ] Texture handles
- [ ] Texture filtering
- [ ] Texture wrapping
- [ ] Mipmaps
Textured Primitives
- [ ] Textured triangle, square, rectangle, circle
- [ ] Textured pyramid, cube, cuboid, sphere, capsule
Material System
- [ ] Material abstraction
- [ ] Shader assignment
- [ ] Texture assignment
- [ ] Material parameters
- [ ] Material handles
6.5 Text Rendering
- [ ] Font loading (through assets)
- [ ] Font parsing
- [ ] Glyph generation and metrics
- [ ] Font atlas generation
- [ ] Text rendering
- [ ] Alignment, scaling, color
- [ ] Wrapping, character spacing, line spacing
- [ ] Unicode support
Step 7 — Input System
- [ ] Keyboard input
- [ ] Mouse input (position, delta, buttons, wheel)
- [ ] Gamepad input
- [ ] Text input
- [ ] Input events
- [ ] Input mapping
- [ ] Action bindings
- [ ] Input contexts
Step 8 — UI System
Develop a basic user interface rendering and interaction system.
8.1 UI Foundation
- [ ] UI element base
- [ ] UI hierarchy
- [ ] Layout system
- [ ] Positioning, sizing, anchoring
- [ ] UI rendering pipeline
- [ ] Input routing
- [ ] Focus management
8.2 UI Elements
- [ ] Text labels
- [ ] Text boxes
- [ ] Buttons
- [ ] Text buttons
- [ ] Images
- [ ] Image buttons
- [ ] Checkboxes
- [ ] Sliders
- [ ] Progress bars
- [ ] Dropdown menus
- [ ] Scrollable containers
8.3 UI Behavior
- [ ] Click, hover, press, release events
- [ ] Keyboard events
- [ ] UI state management
- [ ] UI element callbacks
Step 9 — ECS (Entity Component System)
Build the foundation of the simulation architecture.
9.1 Entity Management
- [ ] Entity ID system
- [ ] Generation counters
- [ ] Entity creation, destruction, validation, recycling
9.2 Component Storage
- [ ] Sparse set implementation
- [ ] Component registration
- [ ] Component creation, removal, access
- [ ] Component iteration
9.3 ECS Architecture
- [ ] World implementation
- [ ] Entity and component management through World
- [ ] System implementation, registration, execution
- [ ] Entity queries
- [ ] Multi-component queries
- [ ] Query filtering
- [ ] Deferred structural changes (command buffers)
9.4 Core Components
- [ ] Transform (position, rotation, scale)
- [ ] Parent / child hierarchy
- [ ] Camera
- [ ] Mesh
- [ ] Material
- [ ] Light
- [ ] Renderable
9.5 Scenes
- [ ] Scene serialization
- [ ] Scene loading as an asset
Step 10 — Lighting & Shading
Build the lighting system that determines how surfaces interact with light.
10.1 Lighting Foundation
- [ ] Lighting data structures
- [ ] Light abstraction and light component
- [ ] Light management
- [ ] Shader lighting interface
- [ ] Surface normals
- [ ] World-space and view-space lighting
- [ ] Light intensity, color, attenuation
10.2 Basic Lighting Models
- [ ] Unlit shading
- [ ] Lambert diffuse
- [ ] Phong
- [ ] Blinn-Phong
- [ ] Ambient lighting
- [ ] Specular lighting
- [ ] Emissive materials
10.3 Light Types
- [ ] Point lights — radiate in all directions from a point (position, color, intensity, attenuation)
- [ ] Directional lights — uniform direction across the scene, used for sunlight
- [ ] Spot lights — projected within a cone (inner cone, outer cone, falloff)
- [ ] Area lights — emitted from a surface, softer and more realistic
10.4 Materials & Physically Based Rendering
- [ ] Material properties
- [ ] Albedo, metallic, roughness
- [ ] Normal maps
- [ ] Ambient occlusion
- [ ] Physically Based Rendering (PBR)
- [ ] Microfacet BRDF
- [ ] Fresnel effect
- [ ] Energy conservation
- [ ] Metallic-roughness workflow
10.5 Shadows
- [ ] Shadow mapping
- [ ] Depth shadow maps
- [ ] Directional, point and spot light shadows
- [ ] Shadow bias
- [ ] Shadow filtering
- [ ] PCF (Percentage-Closer Filtering)
- [ ] Cascaded Shadow Maps (CSM)
10.6 Lighting Optimization
- [ ] Frustum culling
- [ ] Light culling
- [ ] Light influence bounds
- [ ] GPU light buffers
- [ ] Instanced rendering
- [ ] Forward rendering optimization
- [ ] Deferred rendering research
- [ ] Clustered lighting research
Step 11 — Scripting (native DLLs)
Scripts are compiled C++ DLLs loaded at runtime. There is no VM and no interpreter.
11.1 Script Runtime
- [ ] Script DLL loader (through PAL)
- [ ] Script entry-point discovery
- [ ] Script loading, execution, unloading
- [ ] Script error handling and crash isolation
- [ ] Script build integration (one DLL per script or per module)
11.2 Script API
- [ ] Stable C ABI (function-pointer table passed to the DLL)
- [ ] API versioning and compatibility check
- [ ] Logging API
- [ ] Memory API
- [ ] Entity and ECS API
- [ ] Component and Transform API
- [ ] Rendering API
- [ ] UI API
- [ ] Input API
- [ ] Time API
- [ ] Scheduling API
- [ ] Asset API
11.3 Script Integration
- [ ] Script component
- [ ] Script lifecycle (OnInit, OnUpdate, OnShutdown)
- [ ] Script events
- [ ] Script-to-engine and engine-to-script communication
- [ ] Fiber-based long-running scripts
11.4 Hot Reload & Tooling
- [ ] Hot reload (copy, unload, reload)
- [ ] State preservation across reloads
- [ ] Script debugging support
- [ ] Script project template
Step 12 — Audio
- [ ] Audio device initialization
- [ ] Audio loading (through assets)
- [ ] Sound playback
- [ ] Audio channels and mixing
- [ ] Volume control
- [ ] Audio listener and sources
- [ ] Audio spatialization
- [ ] 3D audio
- [ ] Streaming for long audio
Step 13 — Physics
- [ ] Physics world
- [ ] Collision shapes
- [ ] Broad phase
- [ ] Narrow phase collision detection
- [ ] Rigid bodies
- [ ] Collision response
- [ ] Physics simulation (fixed tick)
- [ ] Raycasts and shape queries
- [ ] Triggers
- [ ] Physics/ECS integration
Step 14 — Animation
Make characters and objects move over time.
14.1 Animation Foundation
- [ ] Animation clip data (keyframes and curves)
- [ ] Keyframe interpolation (linear, spherical for rotations)
- [ ] Animation asset loading (through assets)
- [ ] Animation player component
- [ ] Playback control (play, pause, loop, speed)
- [ ] Animation events (callbacks at specific times)
14.2 Skeletal Animation
- [ ] Skeleton and bone hierarchy
- [ ] Skinned mesh data (bone indices and weights)
- [ ] Bind pose and inverse bind matrices
- [ ] Pose sampling
- [ ] Bone matrix palette
- [ ] GPU skinning
- [ ] Parallel pose evaluation on the job system
14.3 Blending & Control
- [ ] Clip blending and crossfades
- [ ] Blend spaces (1D, 2D)
- [ ] Layered and masked animation (e.g. upper body vs lower body)
- [ ] Additive animation
- [ ] Animation state machines
- [ ] Transition rules and parameters
- [ ] Root motion
14.4 Advanced Animation (research)
- [ ] Inverse kinematics (two-bone IK, foot placement)
- [ ] Animation retargeting
- [ ] Animation compression
- [ ] Physics-driven animation / ragdoll blending
Step 15 — AI
Game AI for characters and non-player entities.
15.1 AI Foundation
- [ ] AI agent component
- [ ] AI update on the tick scheduler
- [ ] Blackboard (shared agent memory)
- [ ] AI LOD (reduced update rate for distant agents)
15.2 Navigation
- [ ] Navigation grid
- [ ] Navigation mesh generation
- [ ] A* pathfinding
- [ ] Path smoothing
- [ ] Dynamic obstacles
- [ ] Asynchronous path requests on the job system
15.3 Steering & Movement
- [ ] Seek, flee, arrive
- [ ] Wander
- [ ] Path following
- [ ] Obstacle avoidance
- [ ] Separation and flocking
- [ ] Local avoidance between agents
15.4 Decision Making
- [ ] Finite state machines
- [ ] Behavior trees
- [ ] Utility AI
- [ ] Goal-oriented action planning (research)
15.5 Perception
- [ ] Vision cones and line of sight
- [ ] Hearing
- [ ] Sensory memory
- [ ] Team and faction awareness
15.6 AI Tooling & Scripting
- [ ] AI debug visualization (paths, perception, state)
- [ ] AI decision tracing
- [ ] AI API for script DLLs
Step 16 — Streaming & LOD
Keep large worlds within memory and frame-time budgets by loading and drawing only what is needed, at the detail that is needed.
16.1 Level of Detail (LOD)
- [ ] Multiple detail levels per mesh
- [ ] Mesh simplification (generating lower detail levels)
- [ ] LOD selection by distance and screen size
- [ ] LOD transitions (hysteresis, cross-fade)
- [ ] Material and shader LOD (cheaper shading at distance)
- [ ] Animation LOD (lower update rate, simpler skeleton)
- [ ] Impostors / billboards for distant objects
- [ ] LOD bias and quality settings
16.2 Asset Streaming
- [ ] Streaming requests with priorities
- [ ] Texture mip streaming
- [ ] Mesh LOD streaming
- [ ] Dedicated I/O thread / asynchronous file reads
- [ ] Streaming memory budget and eviction
- [ ] Time-sliced GPU uploads (no frame hitches)
- [ ] Placeholder-to-final transitions
16.3 World Streaming
- [ ] World partition into cells
- [ ] Cell load and unload based on distance
- [ ] Additive scene loading
- [ ] Entity ownership across cell boundaries
- [ ] Large-world precision (origin shifting)
- [ ] Physics and AI integration for streamed cells (collision, navmesh tiles)
- [ ] Predictive loading from movement direction
Step 17 — Advanced Lighting & Post-Processing
Heavier techniques that sit on top of a working PBR and shadow pipeline.
- [ ] HDR rendering
- [ ] Gamma correction
- [ ] Tone mapping
- [ ] Bloom
- [ ] Image-based lighting (IBL)
- [ ] Environment maps
- [ ] Reflection maps and probes
- [ ] Screen-space ambient occlusion (SSAO)
- [ ] Screen-space reflections (SSR)
- [ ] Volumetric lighting
- [ ] Global illumination (research)
Recommended Future Steps
These will eventually fit into the roadmap.
- Reflection (runtime type descriptions; would enable generic serialization, component registration and script properties)
- Networking
- Particles and VFX
- Profiling and diagnostics (frame timing, memory statistics)
- Packaging and build pipeline
- Additional graphics APIs (D3D12, Vulkan) and platforms