April 03, 2026
The Axiom Journey: Engineering a High-Performance Engine
A technical dive into the core architecture, sprite batching, and Entity-Component Systems (ECS) of the Axiom 2D game engine.
Building Axiom was more than just a coding exercise; it was a journey into the deepest layers of computer graphics and performance optimization. When I first started, my goal was simple: render 10,000 active entities at 60 FPS.
The bottleneck: draw calls
In my initial builds, performance tanked after just 500 entities. The CPU was spending 99% of its time telling the GPU “draw this sprite” thousands of times. This led me to my first major breakthrough: sprite batching.
By consolidating thousands of sprites into a single vertex data buffer (VBO) and issuing just one draw call per frame, I achieved a jump from 30 FPS to 166+ FPS with over 10,000 entities.
Core architecture
Axiom is built on three main pillars:
- Custom ECS. A powerful Entity-Component System that decouples data from logic, allowing for highly efficient memory access and parallel processing.
- Hardware-accelerated rendering. Direct OpenGL communication with custom GLSL shaders.
- Fixed-time-step loop. Ensuring consistent gameplay physics regardless of the user’s frame rate.
Looking ahead
The Axiom journey is far from over. Future iterations will focus on spatial partitioning for collision optimization and a more robust scripting layer for logic.