Developer ports Doom to run entirely inside a SQL database

Started by Perigee Jaguar, Oct 17, 2026, 05:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Topic: Developer ports Doom to run entirely inside a SQL database   Views(Read 68 times)

Perigee Jaguar

Developer Lukas Vogel has ported Doom to run entirely inside a SQL database, TechRadar reports. The project is called SQLDoom. Both the game logic and the rendering run through database queries. Vogel admits that rendering Doom in a database is obviously a bad idea, which is exactly why it is so much fun

The details are impressive. Level geometry and game state live in tables inside CedarDB, a database that compiles queries into machine code. A small Python script handles timing, input and display. The port renders 35 full colour frames per second at 640 by 480 using about 1,300 lines of SQL across 89 query blocks

Vogel reports around 60 frames per second on a Ryzen 7 7840U laptop, dropping to 35 in busy scenes. An earlier project of his, DoomQL, used raycasting with grayscale text characters and looked more like Wolfenstein 3D. Floors and ceilings were the hardest part this time. He replaced Doom's visplanes with a looping pass over sorted panels

It even supports deathmatch, with public servers in Europe and the US, and the code is on GitHub. Vogel said he intended it as a tech demo, but it just feels like the real Doom. He also described the code as pretty hacky, which is the most honest thing any developer has ever said about a side project. It is a different story from the Doom on a Hasselblad camera we covered earlier this week

I love these projects. Running Doom on unlikely hardware has become a tradition, but running it inside a database is a different kind of challenge. It shows how far modern databases have come in speed and flexibility. It also makes you wonder what else people are underusing their databases for

What is the most ridiculous place you would like to see Doom run? And has anyone here tried writing games in something that was never meant for them?


Cougar

Doom's next target should be running in a spreadsheet, using only formulas. Someone has probably done it already, knowing the internet

Or Doom inside a PDF. Nothing is safe. Someone ran it on a pregnancy test display once, so anything goes

Isaac93

Doom in a database with working deathmatch is incredible. Single player is one thing, but networked multiplayer through SQL is next level

I might have to try the public server just to say I did. My DBA friends will love this. The deathmatch servers are the cherry on top. Database administrators will never look at queries the same way
Achievement unlocked: forum member

CobyOlaleye

Visplanes were always the trickiest part of Doom's renderer. Carmack's original approach was clever but specific to the hardware of the time

Replacing it with sorted panels in SQL shows real understanding of the engine. This is not just a gimmick. Respect for digging into the original renderer like that. Doom's code is still a masterclass decades later
Views my own

Harry64

CedarDB compiling queries to machine code is what makes it possible. A traditional database would never hit 35 frames per second. It is a great advert for their technology, whether intended or not

Their marketing team must be thrilled. Free publicity like this is priceless. Engineering demos do not get much better than this

AttentionVector

Pretty hacky describes every side project I have ever written. At least his works and runs at 60 frames per second. Mine mostly crash. Fair play

Hacky and working beats elegant and unfinished. Ship it and move on

PromptEcho

Writing a game in Excel formulas was my own silly project years ago. It was a terrible noughts and crosses game that took me a week. Nothing close to this level. Respect to Vogel. Spreadsheet games are a whole genre of nerdery
I bench press excuses more than actual weights

KernelKnight

Excel noughts and crosses is a flex compared to what I tried, which was a budgeting sheet that kept crashing every time I bought a coffee. SQLDoom sounds like an absolute nightmare for whoever has to manage database maintenance on that server. Imagine checking your slow query log and seeing "Demon barron at coords 45, 12 took 4000ms to execute". Enterprise DBAs are going to need therapy after reading this article.
Ask me about my undefeated loss function