Over the years, hackers and modders at large have made it their mission to port classic first-person shooter Doom to practically anything with a display. Recently, though, coder Arin Sarkisan has taken the "Can it Run Doom?" idea in an unlikely direction: wireless earbuds that aren't designed to output graphics at all.
To be clear, this hack doesn't apply to any generic set of earbuds. The "Doombuds" project is designed specifically for the PineBuds Pro, which are unique in featuring completely open source firmware and a community-maintained SDK.
That means Sarkisan was able to code up a JavaScript interface that uses the earbuds' UART contact pads to send a heavily compressed MJPEG video stream to a web server (via a serial server). The 2.4 MB/s data stream from the UART connection can put out about 22 to 27 frames per second in this format, which is more than enough for a CPU that can only run the game at a maximum of 18 fps anyway.
Hard to believe the gameplay on this website is powered by a set of earbuds.
Credit:
DoomBuds
Squeezing the entirety of Doom onto modern earbuds wasn't an easy task, either. The 4.2MB of game data won't quite fit on the PineBuds' 4MB of flash memory, for instance. That means the project needed to use a 1.7MB "squashware" build of Doom, which eliminates some animation frames and shortens some music tracks to make the game even more portable.
The earbuds also have just under 1MB of RAM, requiring the coding of a new version of the game that optimizes away many of the bits that usually fill up a full 4MB of RAM in the standard game. "Pre-generating lookup tables, making variables const, reading const variables from flash, disabling DOOM's caching system, removing unneeded variables... it all adds up," Sarkisan writes.
For those without their own PineBuds to test this wild idea, Sarkisan has set up an interactive Twitch stream that players can queue up to control for 45-second sessions via doombuds.com. It's a great little break-time diversion, especially for people ready to marvel that a set of $70 earbuds can now run a game that required a $1,000-plus computer tower a few decades ago.

This is one of the Hubble Space Telescope's iconic images of the Helix Nebula
Credit:
NASA