Q Labs

← All posts

Porting NVIDIA's NvRTX to Unreal Engine 5.9 in one night

There was no 5.9 version. Four hours later, DLSS was in our game and NVIDIA's denoiser was running in a 5.9 engine built from source

NVIDIA's NvRTX stops at Unreal Engine 5.8 and our game jam entry was on 5.9. Between 23:10 on Saturday and 03:15 on Sunday, the AI agents I directed ported six NVIDIA plugins to stock 5.9, put DLSS in Brasswork, ran frame generation full screen, built 5.9 from source and got NRD's SIGMA shadow denoiser running inside it.

The port, on one clock

Saturday 23:10 to Sunday 03:15

  1. Find the source23:10 → 23:53

  2. Plugins on stock 5.923:53 → 01:44

  3. DLSS in Brasswork01:27 → 02:07

  4. A 5.9 engine from source01:37 → 02:52

  5. NRD in the renderer02:18 → 03:15

03:15 · NRD in the renderer

SIGMA running

NRD's SIGMA shadow denoiser ran on the theatre, taking 1.2 to 3.0 ms of GPU time at three camera positions.

PluginsIn the gameEngine from sourceNext for the engine build: RTXDI and ReSTIR lighting, opacity micromaps and full ray reconstruction.

23:10 SaturdayThere was no 5.9 version

Brasswork is the game my team Shelfware (Moi, Carlos and I) made for the 2026 Epic AI MegaJam. It runs on the Unreal Engine 5.9 preview, and it is a dark theatre lit by about two hundred small lights: exactly the kind of scene NVIDIA's RTX work is built for. The jam's rendering prize also had an award for entries using NvRTX or DLSS.

On the Saturday night, with less than a day left, I asked for it. The first agent came back with the catch: NVIDIA's public NvRTX branches and Unreal plugin packages stop at 5.8. There was nothing to install. So I gave the agents the source of NVIDIA's NvRTX 5.8.3 branch and Epic's 5.9 preview source, and asked for at least some of it working on 5.9: RTXDI and ReSTIR lighting, the NRD denoisers, opacity micromaps, full ray reconstruction. The figure above is how that night went, on one clock.

23:53Two tracks at once

NvRTX is two things. Part of it is plugins: DLSS, Streamline (frame generation and Reflex), NIS and their support modules. The rest is changes inside the renderer: RTXDI and ReSTIR lighting, the NRD denoisers, opacity micromaps, and the guide buffers that full-quality ray reconstruction reads. Plugins build against the engine you already have. Renderer changes need an engine built from source.

So the work split in two and ran side by side. A plugin track built against the stock 5.9.0 install, aiming for the game. An engine track ported renderer features onto the 5.9 preview source in its own folder. Neither waited on the other, and the shared project only got what had already been checked.

00:48Six plugins, 22 fixes

Six plugins from the 5.8.3 source were built as project plugins against stock 5.9.0: StreamlineNGXCommon, StreamlineCore, DLSS, StreamlineDLSSG, StreamlineReflex and NIS. All six compiled and loaded.

A version jump like this usually means renderer interfaces that moved, headers that changed place, delegates that disappeared. None of that showed up. Every error came from 5.9's stricter compile-time checking of printf-style format strings: a scoped enum passed to %d without a cast (C2338, DNeedsIntegerArg), or an int64 passed to %d (C7595, DNeedsSmallerIntegerArg). That was 22 call sites in nine files, each fixed with a cast or a wider format and marked // UE 5.9 port:. No engine change was needed.

The source has no DLSS runtime libraries, so the agent took nvngx_dlss.dll and nvngx_dlssd.dll 310.9.16 from NVIDIA's public DLSS repository and checked their signatures. At 00:48, on an RTX 4070 SUPER, the log showed DLSS Super Resolution creating its feature on the theatre at 1920x1080. DLAA followed at 00:54 and ray reconstruction at 00:57. About an hour and a half after the ask, NVIDIA's upscaler was running on an engine version it was never released for.

01:44Twice the frames

Frame generation needs a real screen, not an editor viewport. I allowed one fullscreen run: a standalone game process, borderless at 2560x1440, with a small probe plugin turning the camera and logging Streamline's counters through four 20-second captures, while another agent's build ran on the same machine.

One fullscreen run, 20 s per mode (FG: frame generation, DLSS at Quality)
ModeRendered fpsPresented fpsFrame msSlowest 1% msLatency ms
TSR only66.5666.9815.0345.2349.86
DLSS + FG + Reflex72.74145.6313.7528.8526.44
Same, Reflex boost70.92142.2814.1041.5126.43
NIS115.84116.228.6321.2025.35

All 2,874 samples with frame generation on, across both of its modes, reported two frames presented for every frame rendered. Every sample with it off reported one. That counter is the real proof, more than the frame rate. Presented fps is the plugin's smoothed figure, and latency is Streamline's game-to-render marker. Reflex came on together with frame generation, so the latency drop belongs to the pair. NIS upscaled from 1707x961.

02:07DLSS in the game

I approved DLSS for the game at 01:27. Forty minutes later it was in the shared project: the DLSS plugin and StreamlineNGXCommon under Brasswork/Plugins/Nvidia/, with source, shaders, notices and compiled Win64 modules, so a teammate without Visual Studio could still open the project. EngineAssociation stayed at 5.9, so Moi and Carlos kept working on the stock engine and needed nothing new. The switch lives in the plugin's own Blueprint module, so our game module did not even need a rebuild.

One console variable drives it. bw.DLSSQuality 1 checks IsDLSSSupported(), saves the screen percentage and turns DLSS on at 66.67%. bw.DLSSQuality 0 puts the saved values back. The log showed TSR rendering 1400x788 to 1920x1080, then the DLSS feature created from 1281x721 when switched on, then the original values back when switched off.

bw.DLSSQuality 1
bw.DLSSQuality 0

On Sunday evening it became a line on the game's new settings card, listed on machines where the plugin reports DLSS support. That is the version in the build we submitted.

The DLSS line in the game
  1. Brasswork's settings card over a dim theatre corridor, listing quality, window, VSync, frame cap, volume, look speed, invert look and a DLSS line1 The settings card from the pause menu, in the packaged game, with its DLSS line.

02:52A 5.9 engine from source

The engine track started at 01:37 with an OpenAI Codex agent and Epic's 5.9 preview source. By 01:55 the source was unpacked: 233,338 files. The agent ran only the dependency step of Setup.bat, since the full script also installs system redistributables and registers the engine, and pulled 22.7 GB from Epic's CDN in 6 minutes 35 seconds.

It built our game's editor target rather than the whole UnrealEditor, which compiles every module: 4,149 actions, at most 12 at a time. The first attempt stopped after 45 minutes in our own game module, where two test files collided in a unity build. With unity builds off for that module, the retry took 50 seconds. The build finished at 02:52, and the source-built editor loaded the theatre: 2,637 actors and 217 lights.

03:15NRD inside the renderer

With no stock 5.8.3 engine to diff against, the agent compared NvRTX with the 5.9 preview file by file and separated the blocks NVIDIA marks with its feature names from ordinary version drift. That gave each feature a size, and the size set the order.

What each renderer feature touches in the engine
FeatureFilesMarked linesThat night
NRD denoisers10128,550SIGMA built and running
Full ray reconstruction guides2211,679Needs RTXDI first
Opacity micromaps306,893Needs NVIDIA's OMM SDK
RTXDI / ReSTIR14435,932Next

NRD went first because the ray-traced shadow inputs it needs already exist in 5.9. The engine side came to 89 added lines in four renderer files (SceneRendering.h, ScreenSpaceDenoise.h, ScreenSpaceDenoise.cpp, SceneViewState.cpp) plus 189 plugin source, shader and config files. One shader include needed fixing, and RDG_GPU_STAT_SCOPE, a no-op in 5.9, came out. NRD compiled into the renderer at 02:59.

At 03:15, with r.Shadow.Denoiser 2, the log reported SIGMA shadow passes submitted on the theatre and the GPU profile put the SIGMA pass at 1.2 to 3.0 ms at three camera positions. Four hours and five minutes after I asked, NVIDIA's shadow denoiser was running inside an Unreal Engine version NVIDIA had not released it for.

The other three features need more than a night. Full ray reconstruction's guide buffers come largely from RTXDI's sampled-lighting code. Opacity micromaps link NVIDIA's prebuilt OMM SDK, and the brief said never to run binaries from the archive. RTXDI alone is 80 new files before its SDK. The source-built engine is kept as it is, with NRD in it, ready for them.

How the agents were run

I directed it; OpenAI's Codex CLI (GPT astra and sol) did the porting, and Claude wrote the briefs, read the logs and pictures, and sent work back. Every brief set the limits: work only in the job's own folder, never commit, render off screen, cap the build threads, and never run anything from the NVIDIA archive.

Every report opened with what was not done and backed each claim with a log line, a hash or a fixed-size picture. That is why this post can give the minute each thing happened: the times in the figure come from those logs.

What one night bought

  • Six NVIDIA plugins on an engine version they were never released for, with 22 small fixes and no engine change.
  • DLSS in a shipped game, with Super Resolution, DLAA and ray reconstruction all creating their features on 5.9.
  • Frame generation measured full screen: two frames presented for every frame rendered, across 2,874 samples.
  • A 5.9 engine built from source with NRD in its renderer, and SIGMA denoising shadows on the GPU.
  • Two tracks that never blocked each other. The engine work stayed in its own folder and the game kept moving the whole time.

Read the Brasswork dev log Every session of the jam, start to finish