OFXR Bridge V439, release 5: native DLSS Frame Generation (experimental)
This release comes from the native-dlss-fg branch of
elliotttate/OFXR-Bridge. That
fork builds on djules75/OFXR-Bridge
v0.2.13.1 (V438), which is itself a fork of
tig3rmast3r/OFXR-Bridge.
It adds native NVIDIA DLSS Frame Generation (NGX DLSS-G) as a VR
frame-generation backend beside OFXR's own methods. Native generation is
off by default; OFXR's own algorithm stays the default selection.
New in this release
- DLSS guides matched to the right eye. When each eye has its own DLSS
feature, as under UEVR, each eye could be given the other eye's motion and
depth: the eyes were matched in the order their DLSS first ran, and in
Galactic Racer the right eye's ran first every time. Native generation and
OFXR + DLSS vectors both suffered. Replaying recorded frames with the eyes
put right, the error where the scene moved fell from 9.6 to 3.5 for OFXR +
DLSS vectors and from 4.8 to 3.6 for native generation. The eyes are now
matched by where their inputs sit in the game's render targets. - 50% native resolution is back in the tray's DLSS Frame Generation
resolution submenu, beside 100% and 67%. On recorded Galactic Racer
frames, native generation at 67% and 50% erred less than at 100% (7.9
against 8.05 where the scene moved), so the lower settings are faster
without measurable loss there. Over all the recorded frames, native
generation at 67% had the least error of every method.
From release 4
- Fades and flashes fixed in OFXR + DLSS vectors. Release 3 treated any
disagreement between the two frames as an occlusion, so a fade or a flash
stepped at half the rate in generated frames. Away from moving edges,
generated frames now blend the two frames along the game's motion, as a
fade needs. On a moving scene that darkens, the error is 0.08, against
22.5 in release 3 and 45.7 before that.
From release 3
-
Native generation in games that ship no DLSS Frame Generation. NGX
looks fornvngx_dlssg.dllonly along the search paths of the process's
first NGX initialisation, which is normally the game's own DLSS. In a game
without its own copy, native generation therefore reported "unavailable".
The layer now adds its folder to those search paths when the game's OpenXR
instance is created with a DLSS method selected, before the game's DLSS
starts. Tested in Hubris, a native Unreal Engine 4 VR game with DLSS
but no frame generation of its own. -
Depth for games with no camera metadata. A game that submits no OpenXR
depth, and is not run through UEVR, still states its depth direction in its
DLSS flags. That direction is all NVIDIA's output depends on, so capture
now uses it. Hubris needed this as well. -
Much better OFXR + DLSS vectors. Where the game's motion reveals or
covers background, the generated frame used to show both frames' edges at
once. It now takes uncovered background from the new frame and covered
background from the previous one, and finds the surface in front near
moving edges. Content that stays put on screen although its vectors say it
moved, such as a HUD drawn after DLSS, is kept.On a test scene of a striped square sliding over a detailed background, the
error fell from 3.95 to 1.74 overall, and from 25.9 to 7.55 at the square's
edges. Native generation measures 4.25 and 8.7 on the same scene, so with
exact vectors OFXR + DLSS vectors is the more accurate method, at about a
sixth of the GPU time. At 3X its frames err 1.38 and 1.37 (native: 3.38 and
2.99). On recorded game frames, where the game's vectors are not exact,
native generation held up better on average. -
Diagnostics. With the environment variable
XRFG_TEST_NATIVE_DLSSG_VERBOSE=1, the layer writes NVIDIA's answers -
initialisation result, frame-generation availability, feature creation
failures - to%LOCALAPPDATA%\OFXR Bridge\NGX\ofxr-native-dlssg.log.
From release 2
- Optional reduced resolution for native generation. The tray's DLSS
Frame Generation resolution submenu offered 100% (the default) and
67%, which is faster with softer moving detail. - A GPU fault on resolution changes fixed. NGX now stays initialised, and
swapchain teardown no longer frees hand-over copies the GPU has not
finished.
Install
- Extract the whole archive, and keep the
ofxrfolder beside
OFXRBridgeTray.exe. - Run
OFXRBridgeTray.exe. - To try native generation, right-click the tray icon and select NVIDIA
DLSS Frame Generation (experimental) before the game starts its OpenXR
session. - Optionally choose a lower DLSS Frame Generation resolution. It takes
effect the next time the game starts. - 3X Frame Gen asks NGX for two generated frames, where the adapter
supports it. - Select OFXR frame generation to go back to OFXR's own methods. In a
game with DLSS, the tray has them use the game's DLSS vectors: OFXR + DLSS
vectors.
OpenXR games only, and never run the game as administrator. See README.md for
the full guide.
Requirements for native DLSS FG
- An NVIDIA RTX GPU and driver for which NGX reports DLSS Frame Generation
available. Tested on an RTX 5090 with driver 616.56. - A game that uses a D3D12 DLSS or Ray Reconstruction upscaler. The bridge
captures its motion vectors and depth automatically. - The layer loading before the game's DLSS starts, or a game that ships its
ownnvngx_dlssg.dll. Native OpenXR games load the layer first. A game
that UEVR injects after it has started, and that ships no
nvngx_dlssg.dll, cannot run native generation; OFXR + DLSS vectors still
works there.
Without usable guides, the headset shows the current frame instead of a
generated one.
Measured cost
All figures are from one RTX 5090, and are median GPU time per stereo pair.
Offline benchmark, turning head:
| Method | 1440x1584 | 2004x2004 | 3004x3004 | 3600x3600 |
|---|---|---|---|---|
| OFXR + DLSS vectors | 0.13 ms | 0.23 ms | 0.52 ms | 0.72 ms |
| OFXR FidelityFX, half-res flow | 0.20 ms | 0.31 ms | 0.58 ms | 0.78 ms |
| Native DLSS FG 2X | 1.14 ms | 1.49 ms | 2.38 ms | 3.42 ms |
| OFXR NVIDIA medium flow | 1.30 ms | 1.61 ms | 2.89 ms | 3.80 ms |
| Native DLSS FG 3X | 1.66 ms | 2.13 ms | 3.73 ms | 5.02 ms |
Live in Hubris through SteamVR, at 2568x2568 per eye in its menu scene:
| Method | GPU per stereo pair (median) |
|---|---|
| OFXR + DLSS vectors | 0.37 ms |
| OFXR FidelityFX flow | 0.67 ms |
| Native DLSS FG 2X at 67% resolution | 1.39 ms |
| Native DLSS FG 2X | 1.87 ms |
| OFXR NVIDIA medium flow | 3.15 ms |
Live in Galactic Racer on a Steam Frame, racing (3004x3004 per eye):
| Method | GPU per stereo pair (median) |
|---|---|
| OFXR + DLSS vectors | 0.59-0.62 ms |
| OFXR FidelityFX flow | 0.90 ms |
| Native DLSS FG 2X at 67% resolution | 1.60-1.81 ms |
| Native DLSS FG 2X | 2.2-4.9 ms |
| OFXR NVIDIA medium flow | 4.5 ms |
Full measurements are in docs/BUILDING.md.
Caveats
- Experimental. Live testing so far covers Galactic Racer under UEVR, on
a Steam Frame through SteamVR and on the Meta XR Simulator, and Hubris
through SteamVR. - Fixed cadence. Native mode uses NGX's fixed 1/2, or 1/3 and 2/3,
fractions. It suits games that hold half or a third of the display rate.
Licences
This package bundles NVIDIA's unmodified production nvngx_dlssg.dll under
the NVIDIA DLSS SDK license (licenses/NVIDIA-DLSS.txt). See THIRD_PARTY.md
and licenses/ for every third-party notice. This fork is not sponsored or
endorsed by NVIDIA.
SHA256SUMS.txt lists the checksum of every file in the archive.