# Original Doom Game Logic and Renderer Implemented in SQL, Running Inside a Database

- Link: https://cedardb.com/blog/sqldoom/
- Discussion: https://startupxo.com/en/811/
- Posted by startupxo at 2026-10-05T08:50:43.680Z
- 0 points, 0 comments, kind story, origin curated
- Written in ko, machine translated to en

## Summary

- The original 1993 Doom's game logic and rendering functions were ported into SQL queries and run inside a database.
- The game runs at the original speed with 35 tics per second, and rendering produces a screen at up to 60 Hz refresh rate with a resolution of 320x200.
- The game data in WAD file structure is converted into relational database tables, and the spatial partitioning (BSP) tree is implemented inside the database using complex expressions and procedural queries to render walls and characters accurately.
- A Python script handles only input processing, timing, and output; the game state and rendering operate entirely within SQL and database functions.

## Sources

- Hacker News: https://news.ycombinator.com/item?id=49948300 (91 points, 10 comments, checked 2026-10-05T08:49:34Z)

## Comments (0)

No comments yet.

JSON: https://startupxo.com/api/v1/item.json?id=811&lang=en
