ZLUDA project enables PhysX effects on Radeon graphics cards

PhysX effects simulating realistic physics are a good example of the risks associated with proprietary technologies in games. Nvidia kept them as an exclusive feature available only on GeForce graphics cards for years, only to ditch support on the new RTX 5000 series, causing the effects to stop working. Ironically, this may have been the catalyst for an independent emulation effort that, years later, brings them to Radeon GPUs.

The open-source ZLUDA project has existed for several years. It creates an emulation layer (or alternative implementation) with near-native performance that allows applications programmed for the CUDA framework—which Nvidia exclusively offers only for its own GPUs—to run freely on other GPUs. ZLUDA was originally sponsored by AMD and later by other companies as well, but its developer, Andrzej Janik, is currently working on it only in his spare time (official backing may have become problematic for various companies due to the risk of legal action).

In ZLUDA version 6, Andrzej Janik has now added support for games using CUDA-based PhysX through 32-bit libraries—precisely the games that Nvidia has stopped supporting. Although Nvidia partially reversed course in December by restoring partial support for selected popular titles, that solution is not universal. With ZLUDA, a broader range of games could eventually work again— on competing Radeon graphics cards, ironically. In those older games, Radeon GPUs would gain both higher performance and access to various special effects that until now were exclusively locked to older Nvidia GPUs.

For now, however, this support is not yet complete. It is currently in a pre-alpha state and serves more as a proof of concept, while support is also incomplete (Janik notes that fluid simulation effects, for example, do not yet work entirely correctly). The implementation can already run Nvidia’s showcase demos on Radeon GPU, and he has also successfully launched and benchmarked the 2010 game Mafia II. Acceleration through ZLUDA increased its frame rate from 26.2 FPS to 80.2 FPS (with ZLUDA acceleration enabled).

Benchmark akcelerace PhysX pomocí ZLUDA ve hře Mafia II (Zdroj: Andrzej Janik)
Benchmark of PhysX acceleration using ZLUDA in Mafia II (Source: Andrzej Janik)

For everyday use, however, it will probably be necessary to wait until this initial support reaches a more stable ZLUDA release and undergoes further improvements. Besides PhysX, this version of ZLUDA also adds basic texture handling support, enabling Blender rendering acceleration besides PhysX. It also improves operation under Windows, but ZLUDA supports Linux too and is designed to work under Wine and Proton (for running the affected games on Linux).

ZLUDA does not require any modifications to software—the goal is for original games and applications using CUDA to run unchanged. The developer is primarily targeting recent Radeon GPUs (RDNA architecture and newer), but not exclusively AMD hardware, meaning the project could also be usable on Intel GPUs in theory. Actual usability depends on the drivers and architecture of the specific GPU.

ZLUDA is by no means focused solely on running games that use CUDA, but rather on supporting a broad range of CUDA-based applications. In the past, for example, it focused on AI acceleration (although without active sponsorship from commercial users, that is probably a lower priority now). Only time will tell how comprehensive and robust the project’s CUDA software compatibility becomes—and whether any threat from Nvidia’s legal department could arise in the future.

Sources: Andrzej Janik, Tom’s Hardware

English translation and edit by Jozef Dudáš


Contents

AMD confirms development of little “LP” core for Zen 6

When AMD came back nine years ago with the Zen core, its strategy was to eliminate the split between big and little (Bobcat and Jaguar) cores and cover the entire market with a single, balanced architecture. Intel, on the other hand, moved to hybrid (big.LITTLE) CPUs. AMD is apparently going there too, now. It has used classic and compact cores where both shared the same architecture so far, but now there will be a separate low-power core. Read more “AMD confirms development of little “LP” core for Zen 6″ »

AMD Re-Enables RAM Encryption on Ryzen CPUs Following Criticism

Recently, reports spread that AMD had disabled TSME, one of the Ryzen CPU security features without warning. It’s a bit more complicated than that, however, as this was not a regular default feature, but rather a Pro SKUs technology that was only present on standard Ryzen CPUs unofficially if not accidentally. The media attention seems to have resulted in access to TSME technology being restored for the non-Pro Ryzen processors, though. Read more “AMD Re-Enables RAM Encryption on Ryzen CPUs Following Criticism” »

FSR 4.1 for Radeon RX 7000 Launched, APUs Will Get Lite Version

In May, AMD announced that FSR 4.1 AI upcaling is coming to Radeon RX 7000 and later also RX 6000 graphics cards. It was supposed to be due next month for X 7000, but AMD went and launched it this week possibly due to the launch of Valve’s Steam Machine, which uses GPUs from the Radeon RX 7000 series. And furthermore: Official FSR 4.1 should work better than the leaked FSR4 libraries that could previously be used unofficially. Read more “FSR 4.1 for Radeon RX 7000 Launched, APUs Will Get Lite Version” »

Leave a Reply

Your email address will not be published. Required fields are marked *