The Stack Overflow Podcast

The pioneering coding tricks that built Doom and Quake

· Summarized

Share this episode
Anyone with this link can open it.
Share Link
Start at 0:00

Key takeaways

  • Romero learned programming independently by using a college mainframe and store computers before his family owned a machine, making dozens of games before joining the team that became id Software.
  • Wolfenstein 3D’s performance depended on CPU rendering, VGA palette control, vertical span blitting, and self-modifying code rather than graphics hardware or APIs.
  • Doom’s sector-and-line representation enabled varied heights, lighting, angled spaces, and a mod-friendly separation between engine code and game data.
  • Doom multiplayer used deterministic simulation and techniques such as tick dupe to remain playable over unreliable, low-bandwidth modem connections.
  • Quake’s collision system shows Romero’s distinction between implementation and invention: the team’s key breakthrough was reducing 3D bounding-box collision to a bit-packed point lookup.
  • Romero believes coding agents will make implementation faster, but human designers must supply the novel ideas and spend the recovered time improving the experience.

Summary

Romero learned to code by camping out in computer stores

John Romero said he first encountered computers in 1979, when almost nobody he knew owned one. At 11, he found a local college mainframe lab, played text games such as Star Trek, Adventure, and Poison Cookie, and became fascinated by students typing BASIC programs. For the next three years, before his family got a computer in 1982, he programmed in Radio Shack and other stores on TRS-80s and Ataris, copying code from books and hoping staff would not eject him. Once he had a home machine, he stopped going outside and spent a decade making games, including roughly 56 by 1987.

id Software doubled its workload to escape day jobs

Romero explained that id Software began informally in 1990 and went full-time after shipping the Commander Keen trilogy on December 14, 1990. Because their publisher Softdisk had customers committed to a year-long subscription, the team agreed to supply six games, one every two months, while also developing its own projects. In 1991 they produced 13 games. John Carmack used that period to explore 3D, and the team shipped Hovertank One in two months: a fast, polygon-wall game with digital sound that rendered every pixel on CPU-bound hardware, without graphics APIs or acceleration.

Catacomb 3D and Wolfenstein turned texture mapping into the future

Six months after Hovertank One, the team released Catacomb 3D, a texture-mapped, real-time version of its earlier Gauntlet-like Catacomb games. Romero recalled making Keen 6, Keen 5, and Catacomb simultaneously, including a one-month Keen 5 production, before deciding that another Commander Keen trilogy was not worth pursuing. In January 1992, the team abandoned that side-scroller after about two weeks and chose to remake Castle Wolfenstein in 3D. They uploaded the Wolfenstein 3D shareware episode on May 5, after fewer than four months of work, then produced about 50 more levels in the following month.

Wolfenstein’s speed came from VGA, vertical spans, and self-modifying code

Wolfenstein initially targeted EGA, but publisher Scott Miller urged the team to switch entirely to VGA because customers were buying the newer cards. Romero described EGA as bit-planed and awkward—one bit per plane across four planes—whereas VGA allowed one byte per pixel and a custom 256-color palette. The renderer used chain-four mode and vertical span blitting: it drew one vertical line at a time, avoiding calculations made unnecessary by the game’s level geometry and fixed viewing assumptions. Self-modifying code generated specialized loops for each screen width, so shrinking the view on slower computers meant fewer spans and faster rendering.

Doom replaced Wolfenstein’s grid with sectors, light levels, and complex walls

Romero said Doom reused the vertical-span approach but added lighting, forcing the palette to reserve gradient levels—he estimated about eight per color—along with “fullbright” colors that never dimmed. Its world was no longer Wolfenstein’s 2D matrix of right-angle cells: lines had front and back sides, while sectors stored heights, light levels, and top, middle, and bottom textures. Two-sided lines could open onto another sector, enabling windows and spaces with different heights. The team still hit renderer limits when maps contained too many line definitions, but the data-driven design let the engine support angled and potentially curved walls.

Doom’s AI made level designers avoid hand-authored navigation hints

The Doom team deliberately kept enemy navigation information out of the maps. Romero said Carmack’s AI had to infer paths from the level and determine how an Imp or Cacodemon could reach the player without designers placing nodes or hints, even in difficult convex areas. This made the code unusually challenging but kept level data simple: designers could drop a monster into a map and rely on the game to work out movement. That same attitude—making the engine do more rather than burdening designers—helped Doom support maps and modifications beyond what the original team had explicitly built.

Doom became moddable because the team finally designed for copying and changing

Romero said earlier games were not intentionally made for modification because the team had never seen that model, apart from systems such as Eamon Adventures and the BASIC programs people shared in the 1970s. Doom changed that. Its WAD-based data structure gave players a practical way to replace levels and assets, and the modding scene eventually used executable patches through tools such as DeHackEd to alter monsters, firing rates, and other behavior. He cited MyHouse.wad as a later example: running on the GZDoom source port, it uses extensive scripting to achieve effects beyond the original engine’s map-data tricks and evokes House of Leaves.

Deathmatch worked as a deterministic simulation over unreliable modems

Romero described early Doom multiplayer as deterministic rather than a system that predicted or fudged player movement. Key presses became movement vectors sent to the other players, and the game tried to keep everyone synchronized despite slow telephone connections—sometimes around 24K. If a modem connection could not send enough data smoothly, Doom used “tick dupe,” transmitting less data over the same time span so a player still arrived at the correct simulated destination. After Doom 2 launched in October, Romero wrote the Duango client and worked with its server developer to use packets; Heretic shipped two months later.

Quake required a new toolchain for genuine full 3D

Romero identified Quake as the first of these games to render genuinely 3D objects and levels rather than 2D geometry presented through a 3D view. The team bought an SGI Indigo and Alias Wavefront—he recalled a cost around $36,000—to create models, then unwrapped their surfaces into 2D textures because artists could not paint directly on 3D models. The in-house level editor was largely top-down because the team chose to build outward rather than vertically, and debugging required a special point-file trace: when lighting rays escaped through a tiny hole in a level, the trace showed exactly where the leak was.

Romero’s lesson for AI coding agents: ideas and design still belong to people

Romero argued that coding agents can execute an algorithm but are unlikely to invent the crucial idea. For Quake collisions, the team recognized that monsters fit into only a few size classes, extruded the world geometry by half the relevant bounding box, bit-packed the resulting collision volumes, and reduced each expensive 3D rectangle test to a single point lookup. He said an agent could write that implementation once given the concept and memory constraints. The broader benefit of automation, he argued, is shifting time from debugging and low-level code toward user experience and design. His rule remains: “design is law.”

Sponsors

  • Mastercard Developers · Mastercard invites developers to turn open-finance prototypes into production-ready applications using Mastercard APIs, permissioned financial data, and infrastructure designed for the security and reliability requirements of financial services.

Show notes

Ryan chats with John Romero, creator of the WAD file and the video game Doom, about the self-modifying code and blitting techniques that made Wolfenstein run so fast on early PCs, the mod-friendly architecture that turned Doom into a cultural phenomenon, and why the raw creative problem-solving of Quake proves that human ideas will always beat AI coding agents.

Episode notes:

This episode was recorded at the WeAreDevelopers 2026 North American World Congress as part of their global event series for software engineers, tech leaders, and AI builders.

Romero Games is an independent game development studio based in Galway, Ireland, where John Romero serves as game director.

Learn more about John’s legendary game work at his website rome.ro.

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account

Couldn't load the audio. A blocker may be stopping the show's tracking links. Open the file