Someone got Doom in an SQL database
1,300 lines of SQL querying renders accurate bitmapped views of Hell at 35 fps.
Lukas Vogel, in a detailed blog post, recounts his process of rendering the classic video game Doom using an SQL database, a feat he describes as "obviously a bad idea". The SQLDoom project, a Python client handles input and output, manages game timing, and displays each frame. Accompanying this are 1,300 lines of SQL queries across 89 common table expressions that execute game logic, generating 35 bitmap framebuffers every second.
This project marks a significant advancement over Vogel's previous SQL-based gaming attempt, DoomQL, which produced grayscale ASCII graphics similar to Wolfenstein 3D. In contrast, SQLDoom produces full-color 640x480 frames that closely resemble the original Doom game.
Written by urgent.news from Ars Technica's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.