The Evolution of SQL Gaming
The age-old hacker mantra of "Can it run Doom?" has officially crossed into the world of database management. Following a 2025 experiment that successfully rendered a primitive, ray-casting version of the game using SQL, developer Lukas Vogel has returned with a far more ambitious project: SQLDoom. Unlike its predecessor, which resembled early titles like 3D Monster Maze, this new iteration implements authentic Binary Space Partitioning (BSP) tree traversal—the technical engine core that made the original Doom a revolutionary title in the 1990s.
Vogel’s approach was driven by a commitment to technical purity. He established rigid constraints for the project, demanding that both the game logic and the rendering pipeline exist exclusively within SQL queries. While Python is utilized as a peripheral tool to manage keyboard input, system timing, and the final bitmap display, the heavy lifting—every pixel calculation and game state logic—is handled entirely by the CedarDB database engine.
Under the Hood of the CedarDB Port
The secret sauce behind this improbable feat is CedarDB, a compiling database system. Unlike traditional engines that interpret queries, CedarDB compiles complex queries into machine code, allowing for levels of performance that enable a game as resource-intensive as Doom to run in real-time. According to Vogel, the rendering performance of this "real" Doom port actually exceeds the more stripped-down version he created last year, proving that pushing the boundaries of database architecture can yield surprising real-time computing results.
Beyond the rendering engine, the project includes fully functional multiplayer capabilities. Users can jump into deathmatches across international servers, a testament to the robustness of the SQL-based logic. While server latency can be noticeable depending on the connection, the fact that a database is successfully managing a real-time 3D game loop is a massive technical leap forward from the early prototypes of just a few years ago.
Why It Matters
- Architecture Benchmarking: This project serves as a high-stress test for CedarDB’s query compilation capabilities, demonstrating the raw speed of machine-code-compiled SQL.
- Redefining Query Limits: By forcing a database to handle complex game logic and BSP rendering, developers are learning new ways to optimize data retrieval and state management.
- Proof of Concept: It transforms the SQL language from a simple data-querying tool into a functional execution environment capable of handling high-fidelity, real-time application state.
Future Outlook
While the project remains a technical demonstration rather than a commercial product, it highlights how far database engineering has evolved. Vogel notes that the project has transitioned from a simple "tech demo" into something he genuinely uses for leisure. As compiling databases become more sophisticated, the line between data processing and high-performance application hosting continues to blur. Whether SQLDoom will inspire a wave of database-native applications remains to be seen, but it has certainly settled the debate on whether SQL can handle the demands of 90s-era 3D gaming—with room to spare.










