pwshub.com

This Doom port runs (almost) entirely on a GPU

Serving tech enthusiasts for over 25 years.
TechSpot means tech analysis and advice you can trust.

Rip and Tear the Framebuffer: Doom fans and coding enthusiasts can't stop putting id Software's FPS on every computing platform or tech-related commodity known to mankind. The latest port, however, targets a very PC-specific hardware component. While it "runs" like an impressive display of software prowess, it serves no real practical purpose.

The list of Doom ports on Wikipedia should now be updated with a brand-new entry. The recently unveiled doomgpu project aims to run the forefather of modern shooters "almost" entirely on the GPU, requiring a somewhat complex software setup and a Linux operating system to get the job done.

Joseph Huber, the developer behind doomgpu, successfully implemented a working copy of the original Doom for DOS on his AMD GPU using the LLVM C library for GPUs and the doomgeneric interface. The LLVM technology acts as a "middle layer" between source code and pure assembly code, producing a common intermediate representation that can be ported and optimized for different processor architectures.

Furthermore, doomgeneric's purpose is to make Doom porting even easier than it traditionally is. The PC DOS FPS released by id Software in 1993 has repeatedly demonstrated its ability to be ported essentially everywhere, especially after id released the official source code under a non-commercial license in 1997. Thanks to doomgeneric, a resourceful developer can create a brand-new port using just a few functions.

Huber explained how he achieved his goal on the official doomgpu GitHub page. The port requires a Linux operating system, an AMD GPU with support for the ROCm open software stack, SDL2 libraries, a ROCm or ROCR-Runtime installation, and an LLVM build derived from the project's main branch, such as LLVM20.

Doomgpu makes nearly all of the game's code run on the GPU instead of the CPU, Huber states, with the SDL2 interface managing the functions needed to capture input keys and write to the output framebuffer. While Doom doesn't run "entirely" on the GPU, the developer concedes that all the logic and rendering routines do.

Doomgpu was tested on an Arch Linux installation with kernel version 6.10.5, an AMD Radeon RX 6950 XT GPU, and ROCm version 6.0. The project should also work on Nvidia GPUs, thanks to LLVM's capabilities and the NVPTX backend.

A GPU's framebuffer isn't the strangest place Doom has been recently ported to, with quantum computers, holographic displays, and generative AI models contending for the top spots in the "weird" Doom porting category. Meanwhile, Bethesda and id Software are now working on a brand-new Doom experience known as Doom: The Dark Ages.

Source: techspot.com

Related stories
1 day ago - The mind behind the endeavor is Luke Mortimer, a PhD student at the Barcelona ICFO Institute who is well-versed in quantum information. In the release notes on GitHub, he jokes that Quandoom could be "the first practical use found for...
1 month ago - This 90s classic has been modded to include ray tracing giving it a whole new feel. For those nostalgists, you can download Doom 2 with Ray Tracing, as well as the classic version, right here.Read Entire Article
1 month ago - My critical opinion is that this absolutely whips — Just how you remember it, but through a 4K, 120 fps accessible...
1 month ago - Anyone who owns the original 1993 Doom or Doom II on digital PC storefronts, Nintendo Switch, Xbox, or PlayStation should check for a major update released by id Software this week. The company has rewritten the modern ports of these two...
3 weeks ago - 30+ years ago, PC gamers could choose GPUs from over 10 different makers. The story of Rendition is a fascinating tale of engineering brilliance and lost opportunities from the golden age of graphics. Plus, some easter egg content about...
Other stories
5 minutes ago - Fluid Motion Frames 2 (FMF2) is AMD's AI frame generation for improving smoothness on Radeon RX 6000 and 7000 series GPUs on both desktop and integrated graphics. Other driver changes include geometric downscaling as well as HYPR-Tune...
20 minutes ago - With 14 serious security flaws found, what a gift for spies and crooks Fourteen bugs in DrayTek routers — including one critical remote-code-execution flaw that received a perfect 10 out of 10 CVSS severity rating — could be abused by...
35 minutes ago - When successful, attacks install a backdoor. Getting it to work reliably is another matter.
35 minutes ago - Skip to content Linking Meta smart glasses to a face search engine can ID strangers in a...
50 minutes ago - Palworld, a game widely referred to as "Pokemon with guns," is coming to mobile. The game's developer, Pocketpair, has signed a licensing agreement...