github elliotttate/OFXR-Bridge 0.2.13.6-dlssg-V439
OFXR Bridge V439 release 6 - DLSS vectors + flow hybrid, SpaceWarp-style extrapolation, Benchmark this PC

one month ago

OFXR Bridge V439, release 6: a hybrid, SpaceWarp-style extrapolation, and a benchmark

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, and, in this release, two
new OFXR modes and a benchmark of every mode on your own PC. Native
generation and the new modes are off by default; OFXR's own algorithm
stays the default selection.

New in this release

  • A reworked tray menu, and Benchmark this PC. The menu is grouped by
    decision: the frame-generation method, how OFXR makes frames, quality and
    performance, then diagnostics and advanced settings, with what is running
    shown at the top and options that do not apply greyed out. Benchmark this
    PC...
    times every mode at your headset's resolution through the real
    synthesizer (ofxr\OFXRBenchmark.exe, about 20 seconds on an RTX 5090),
    and each option then shows its GPU cost and the most it can raise your
    frame rate, with its measured quality and latency in the results window.
  • DLSS vectors + FidelityFX flow, a new OFXR mode. In a game with DLSS,
    OFXR runs FidelityFX's optical flow beside the game's motion vectors and
    composes each pixel from whichever explains both frames better. Content
    the vectors do not describe - a shadow cast onto ground rushing past, a
    reflection, an object that writes no velocity - moves as the image does,
    which the flow follows. On 42 recorded Galactic Racer triplets it had the
    least error of every method where the scene moved (7.18, against 7.67 for
    NVIDIA flow, 7.96 for native generation at 67% and 8.40 for the vectors
    alone), with the best SSIM. It costs about as much as native generation at
    67%: 1.58-1.71 ms a stereo pair live on a Steam Frame at 3004x3004 per eye.
  • Extrapolation, SpaceWarp-style, a new OFXR mode. Every interpolating
    method holds each real frame back a display period, to show a frame between
    it and the one before first. Extrapolation shows each real frame as soon as
    it is ready and then predicts the next display period from it, as Meta's
    Application SpaceWarp does: a display period less latency, for the quality
    of a prediction. It follows the game's DLSS vectors and depth, ordering
    surfaces by depth near motion edges and stretching background over what
    moving content uncovers, or FidelityFX's optical flow in games without
    them, as Asynchronous SpaceWarp does. Predicting a whole frame ahead from
    recorded frames, a harder test than the half frame a headset needs, it
    erred 12.7 where the scene moved against 20.6 for showing the last frame
    again. Live it cost a median 1.1-1.25 ms a pair in Galactic Racer, and
    0.29 ms in Hubris. [ofxr] extrapolate=2 also runs the flow beside the
    vectors for the least error (11.87), at 2.1-4.6 ms live.
  • Native generation at 67% by default. NVIDIA's full-resolution frame is
    the softest of the three: on the 42 triplets 67% erred less (7.96 against
    8.04) with better SSIM and sharper detail, for about a quarter less GPU
    time. 100% and 50% stay in the tray.
  • Native generation's depth scaled for NGX, as NVIDIA suggests for
    compressed depth: 0.09-0.12 less error, at every resolution.
  • Optical flow no longer falls back to a double image. Where the flow's
    two samples disagreed, the optical-flow methods blended the two frames
    after only the head's turn. Each pixel now takes whichever explains both
    frames better, the flow or the camera alone: FidelityFX flow's error fell
    from 8.21 to 7.86, NVIDIA medium's from 8.17 to 7.67 and NVIDIA fast's from
    9.01 to 7.94, and a pure head turn is more exact than before.
  • OFXR + DLSS vectors' occlusions take B's sample wherever the motion is
    not uniform, not only at sharp motion edges: 8.49 to 8.40.

From release 5

  • 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%.

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 for nvngx_dlssg.dll only 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

  1. Extract the whole archive, and keep the ofxr folder beside
    OFXRBridgeTray.exe.
  2. Run OFXRBridgeTray.exe.
  3. To try native generation, right-click the tray icon and select NVIDIA
    DLSS Frame Generation (experimental)
    before the game starts its OpenXR
    session.
  4. Optionally choose another DLSS Frame Generation resolution (67% is
    the default). It takes effect the next time the game starts.
  5. For OFXR's own algorithm, How OFXR makes frames chooses interpolation,
    the DLSS vectors + FidelityFX flow hybrid, or extrapolation. They apply
    from the next game start.
  6. Benchmark this PC... labels each option with what it costs on your
    GPU.
  7. 3X Frame Gen asks NGX for two generated frames, where the adapter
    supports it.

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
    own nvngx_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

At 3004x3004, OFXRBenchmark measured the DLSS vectors + FidelityFX flow
hybrid at 1.21 ms, extrapolation from the vectors at 0.49 ms, and native
generation at 67% at 1.83 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
OFXR extrapolation (new) 1.07-1.25 ms
OFXR DLSS vectors + FidelityFX flow (new) 1.58-1.71 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. The hybrid and extrapolation were tested live in Galactic
    Racer on a Steam Frame, and extrapolation in Hubris as well.
  • Extrapolation predicts. Content its source does not describe - for the
    game's vectors, a shadow on moving ground - is placed where the vectors say,
    with no later frame to correct it; uncovered background is stretched.
  • 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.

Don't miss a new OFXR-Bridge release

NewReleases is sending notifications on new releases.