# DLSSG for SM86 (Proxy Build) — v0.4.3 [中文](README.md) · **English** Unified **Windows x64 / D3D12** proxy layer that enables and accelerates **NVIDIA DLSS Frame Generation (DLSS-G, up to 6X)** and optional **XeSS-FG (2X–4X)** on **RTX 30 (SM86)** and **RTX 20 (SM75)** GPUs, adds **Precision / Performance** two-tier INT8 acceleration for **DLSS Super Resolution (SR)** and **DLSS Ray Reconstruction (RR)**, and includes a built-in **in-game Debug HUD, live Official FP16 hotkey A/B toggle, and per-frame GPU timing logger** with zero external tools required. > **Upgrade Notes** > - **Upgrading from 0.4.0 / 0.4.1 / 0.4.2**: File layout is unchanged. Quit the game and overwrite `version.dll` (or your active alternative proxy), `dlssg_sm86.ini`, and the entire `dlssg_sm86\` folder; migrate custom settings with the bundled `dlssg_sm86ini_Configurator.html` or by editing the new INI. > - **Upgrading from 0.3.x**: Major layout & INI break — **do not extract over 0.3.x**. Delete all old proxy DLLs (`version.dll`, `winmm.dll`, `dbghelp.dll`, `dinput8.dll`), old `dlssg_sm86.ini`, and `dlssg_sm86\` (and optionally `%LOCALAPPDATA%\DlssgSm86`), then copy the three new items. > - **Multiplayer Warning**: This project uses local DLL proxying for D3D12 / NGX interception. **Use strictly in single-player / offline titles — never install in anti-cheat-protected online multiplayer games.** ## Contents - [Feature & GPU Support Matrix](#feature--gpu-support-matrix) - [What's New](#whats-new) - [Quick Install & Recommended Configs](#quick-install--recommended-configs) - [In-Game Hot-Switch & Debug HUD Guide](#in-game-hot-switch--debug-hud-guide) - [Benchmarks & VRAM Reference](#benchmarks--vram-reference) - [FAQ](#faq) - [Diagnostics & Known Limitations](#diagnostics--known-limitations) - [Credits, Building & Licenses](#credits-building--licenses) --- ## Feature & GPU Support Matrix | Feature | Capabilities | RTX 30 (SM86) | RTX 20 (SM75) | RTX 40 / 50 | Shipped Default | |---|---|---:|---:|---:|---| | **DLSS Frame Gen (DLSS-G)** | 2X / 3X / 4X / 5X / 6X, bundled 310.9.16.0 runtime, Presets A / B / C (FG Lite) | ✅ Full | ✅ Full | ✅ PTX path | Enabled (4X / `Optimized=1` / `Preset=A`) | | **XeSS Frame Gen (XeSS-FG)** | Optional engine (2X–4X), custom CUDA backend | ✅ Optional | ✅ Forward JIT | ✅ Incl. RTX 50 opt | Off (`Engine=DLSS`) | | **DLSS Super Resolution (SR)** | **Precision** (high-fidelity INT8) & **Performance** (2:4 sparse accel), automatic per-tier default | ✅ Precision + Performance | ✅ Precision + Dense Perf | — (native) | Off (`Mode=Off`) | | **DLSS Ray Reconstruction (RR)** | Bundled 310.9.0.0 (Preset F), **Precision** (`Mixed`) & **Performance** (`Performance`) | ✅ Precision + Performance | ✅ Precision + Dense Perf | — (native) | Off (`Mode=Off`) | | **Performance Observation** | In-game `DebugHud`, cadence strip, `ToggleOfficialKey` FP16 A/B hotkey, `FrameTiming=1` | ✅ | ✅ | ✅ | Off (zero overhead when off) | **Requirements**: Windows 10 / 11 x64, DirectX 12, **NVIDIA R580 or newer driver (CUDA 13.0+; older drivers disable FG & RR)**. No CUDA Toolkit or Python needed. --- ## What's New ### v0.4.3 (Current) 1. **DLSS Super Resolution (SR) & Ray Reconstruction (RR): Precision / Performance Tiers with Real-World Speedups** - **Real Pass Speedups & Expected In-Game FPS Gains (RTX 3080 Ti Reference)**: | Accelerator | Game Setting | AI Pass Speedup (vs Official FP16) | Precision Tier Speedup | Expected Native FPS Gain (4K / High Res) | |---|---|---|---|---| | **Ray Reconstruction (RR `Performance`)** | **Ray / Path Tracing + Ray Reconstruction** | **1.41×–1.42×** (~**4.9 ms** saved per 4K frame) | `Mixed`: **1.34×–1.36×** | In *Cyberpunk 2077* and *Phantom Blade Zero* at **4K DLSS Performance + RT**, typically **~+7 native FPS (nearly +15%)**, amplified further with FG | | **SR Preset M / L (`Auto-PERF`)** | Game DLSS set to **Performance** (M) or **Ultra Performance** (L) | M: **1.57×–1.60×**; L: **1.64×–1.77×** (AI pass only) | M: **1.37×–1.39×**
L: **1.20×–1.34×** | **Modest ~10% overall in-game FPS gain** under default scheduling (e.g. **50 → ~55 FPS** in the *Phantom Blade Zero* test scene) | - **Smart Per-Tier Defaults (`Auto-PERF` / `Auto-INT8`)**: Keeps **DLAA / Quality / Balanced / UltraQuality Native** (avoiding slower overrides on upper quality tiers) and accelerates **Performance** (Preset M) and **UltraPerformance** (Preset L) automatically; global locks (`M-PERF` / `L-PERF` / `M-INT8` / `L-INT8`) remain available. - **Built for Sharpness & Stability**: SR Performance applies RTX 30 2:4 hardware sparsity to core layers while keeping fine-detail bottleneck exits full-density to suppress fine-line shimmering. RR Performance accelerates entry encoding and post-filtering while preserving core reconstruction precision to eliminate skin/specular fireflies, block mottling, and distant frosted-glass blur (RTX 20 runs bit-identical dense parity sets). > **Visual Quality & Quick Fallback Note (Important)** > The extra speedup in every **Performance** tier comes from **multi-game distillation training and neural-network sparsification/pruning**. While mainstream ray-traced games such as *Cyberpunk 2077* and *Phantom Blade Zero* are well covered and major flicker/blur issues are resolved, **minor visual glitches may still occur in rare uncovered scenes, materials, or extreme lighting conditions**. > You can press **`ToggleOfficialKey` (e.g. `F9`)** in-game anytime for an instant Official FP16 comparison. If a specific title shows a small glitch, simply switch that feature back to the **Precision / Quality tier** — `[RayReconstruction] Mode=Mixed`, `[SuperResolution] Mode=Auto-INT8`, or `[DLSSG]` / `[XeSSFG]` `Mode=Quality` — for near-official visual stability while keeping solid acceleration. 2. **Unified In-Game Debug HUD & Live Official FP16 Hotkey Toggle** - GPU latency timing and frame cadence markers are now unified under a single `[Debug] DebugHud=1` switch (default scale enlarged 1.5× to `MarkerScale=3`, no separate `HudShowTiming` key needed). Paired with `ToggleOfficialKey=`, Row 0 shows SR / RR active mode & GPU ms while Row 1 shows fixed-width `DL/XE N.NMS` + `[RL] [G1] [G2] [G3]` cadence strip; press the hotkey once in-game to flip between accelerated INT8 and Official FP16 at the next frame boundary with zero restart. 3. **Major Package Slim-Down & Single-File RR Pack** - Consolidated the 492 loose kernel files under `dlssg_sm86\rr\` into a single `rr_kernels.dll` and enabled built-in zlib compression plus dead-file pruning for both `sr_kernels.dll` and `rr_kernels.dll`: custom SR/RR kernel packs shrink from **295.3 MB → 30.8 MB (~−90%)**, with the release zip down to **138.8 MB** and zero loss of functionality or PTX fallback. 4. **Stability Fixes** - Fixed hook teardown after NGX capability probes unload DLSS modules, improving stability across resolution changes and feature recreations. ### v0.4.2 - XeSS-FG performance fix on RTX 50 (Blackwell) via dedicated kernels (Cyberpunk 2077 3440×1440 on RTX 5070: 4X `6.54 → 4.68 ms`, 2X `2.43 → 1.69 ms`). - Jittered motion vector support (`DLSSG.MvecJittered=1`) fixing 3X / 4X `unsupported_input`; faster 4K motion-vector kernel (+3.0–5.6%, bit-identical). - Added offline single-file INI configurator `dlssg_sm86ini_Configurator.html`; `[XeSSFG] UseHudless=Auto` now interpolates full frames including UI. ### v0.4.1 - XeSS-FG upgraded to native multi-frame generation (Intel model 15, 2X / 3X / 4X) with tensor-core CUDA backend; removed `[XeSSFG] Model`. - Minimum driver floor made strict **R580**; fixed SR INT8 first-frame hitch.
Earlier release history (0.4.0 – 0.3.0) - **0.4.0**: Unified layout (single root `version.dll`, 5 alternatives in `alternatives\`), bundled 310.9.16.0 runtime, DLSS-G Preset C (FG Lite), optional XeSS-FG engine, SR INT8 acceleration, `[Logging] FrameTiming=1`, and HTML installation manual `MANUAL.en.html`. - **0.3.6**: NVIDIA App DLSS override detection and early Streamline generation logging. - **0.3.5**: Fixed recycled kernel handle corruption / random TDRs across feature re-creations. - **0.3.4**: Excluded NVIDIA's own modules from architecture spoofing (fixed RTX 30 hangs under NGX overrides). - **0.3.3**: Removed `SkipRepeatedRealCopy` from `Optimized=1`; armed architecture spoof early in `DllMain` for Streamline 2.x on RTX 20/30. - **0.3.2**: Rewrote 310.9 inference kernels for bit-exact official parity; 4-tier `Optimized=0..3`. - **0.3.1**: Restored RTX 20 (SM75) support; default `MaxGeneratedFrames` set to `3` (4X). - **0.3.0**: Returned to proxy architecture with bundled 310.9 runtime supporting up to 6X.
--- ## Quick Install & Recommended Configs ### 1. 4-Step Installation 1. **Quit the game completely** and locate the **actual rendering EXE** directory (Unreal games typically use `...\Binaries\Win64\`, not the top-level launcher folder; verify via Task Manager → Details → right-click process → *Open file location*). 2. Copy all **3 items** from the release root beside the EXE (back up any pre-existing file with the same name): - `version.dll` - `dlssg_sm86.ini` - The entire `dlssg_sm86\` folder (**copying only the DLL does nothing**) 3. *(Optional)* Open **`dlssg_sm86ini_Configurator.html`** in a browser to build your `dlssg_sm86.ini`, or edit it directly (restart the game after edits). 4. Launch the game and enable **DLSS Frame Generation** (plus DLSS Super Resolution / Ray Reconstruction). > **If the game does not load `version.dll`** (set `[Logging] Level=2`, run the game, and check `dlssg_sm86\logs\dlssg_sm86.log` — if empty, `version.dll` wasn't loaded): quit, **delete `version.dll`**, and try one proxy at a time from `alternatives\` in order: `winmm.dll` → `dbghelp.dll` → `dinput8.dll` → `dxgi.dll` → `d3d12.dll` (only one proxy at a time; `dxgi`/`d3d12` sit on the render path and should be tried last, never together). See `MANUAL.en.html` and `alternatives\README.md`. ### 2. Package Layout (v0.4.3) | Path | Size | Purpose | |---|---:|---| | `version.dll` (& `alternatives\*.dll`) | ~0.8 MB | Lightweight proxy loader (keep only one in game folder) | | `dlssg_sm86\backend\sm86_backend.dll` | 2.6 MB | Core router, hooks, Debug HUD, and timing backend | | `dlssg_sm86\kernels\fg_kernels.dll` | 19.1 MB | DLSS-G kernel pack (required) | | `dlssg_sm86\runtime\nvngx_dlssg.dll` | 7.2 MB | Unmodified NVIDIA DLSS-G 310.9.16.0 runtime | | `dlssg_sm86\xefg\xefg_kernels.dll` | 23.2 MB | XeSS-FG models & CUDA kernels (`Engine=XeSS` only) | | `dlssg_sm86\sr\nvngx_dlss.dll` + `sr_kernels.dll` | 70.8 + 23.3 MB | DLSS SR runtime + compressed Precision & Performance kernel pack | | `dlssg_sm86\rr\nvngx_dlssd.dll` + `rr_kernels.dll` | 76.0 + 7.5 MB | DLSS RR runtime + compressed Precision & Performance kernel pack | | `manifest.json` / `*.zip.sha256` | — | Exact per-file byte sizes and SHA-256 verification digests | ### 3. Recommended Presets (Simple Choice: Performance vs Precision) For Super Resolution (SR), Ray Reconstruction (RR), and Frame Generation, just pick **one of two tiers**: - **Performance Tier**: Uses distilled training and network sparsification/pruning for maximum speed while keeping sharp visuals — **recommended for most players** (and easy to switch back to Precision if any rare uncovered scene shows minor artifacts). - **Precision Tier**: Virtually indistinguishable from Official FP16 with maximum visual stability and solid speed gains — **great for maximum fidelity or as an instant fallback**.
Preset A: Performance Everyday Setup (FG + SR Performance + RR Performance) ```ini [General] Enabled=1 [FrameGeneration] Engine=DLSS MaxGeneratedFrames=3 [DLSSG] Optimized=1 Preset=A [SuperResolution] ; Performance Tier (smart auto): keeps DLAA/Quality/Balanced Native, accelerates Performance & UltraPerformance Mode=Auto-PERF [RayReconstruction] ; Performance Tier: keep Off for games without Ray Reconstruction, or set Performance for path-traced titles Mode=Performance ```
Preset B: High-Fidelity Precision Setup (FG + SR Precision + RR Precision) ```ini [General] Enabled=1 [FrameGeneration] Engine=DLSS MaxGeneratedFrames=3 [DLSSG] Optimized=1 Preset=A [SuperResolution] ; Precision Tier (smart auto): near-lossless INT8 fidelity Mode=Auto-INT8 [RayReconstruction] ; Precision Tier: near-lossless mixed INT8 Mode=Mixed ```
### 4. Key INI Reference | Section / Key | Common Values (**Default**) | Description | |---|---|---| | `[General] Enabled` | **`1`** / `0` | Master FG switch (`0` still allows SR / RR & HUD) | | `[FrameGeneration] Engine` | **`DLSS`** / `XeSS` | FG engine (`XeSS` max 4X, no silent fallback to DLSS) | | `[FrameGeneration] MaxGeneratedFrames` | `1`–`5` (**`3`** = 4X) | Generated frames per real frame (`1`=2X … `5`=6X; 6X is DLSS-only) | | `[DLSSG] Optimized` | `0` / **`1`** / `2` / `3` | `0`=stock; `1`=bit-exact accel; `2`=+lossy image kernels; `3`=max lossy | | `[DLSSG] Preset` | **`A`** / `B` / `C` | `A`=default; `B`=UI recomposition; `C`=FG Lite (faster, softer edges) | | `[XeSSFG] FlowResolution` | `Coarse` / **`Middle`** / `Fine` / `CoarseAt4K` | Optical flow resolution (finer = slower) | | `[XeSSFG] UseHudless` | **`Auto`** / `0` / `1` | `Auto`/`0`=full frame with UI; `1`=strict HUD-less (exits if absent) | | `[SuperResolution] Mode` | **`Off`** / `Auto-PERF` (Performance) / `Auto-INT8` (Precision) | RTX 30 / 20 only. To force Preset M or L across all quality tiers, use `M-PERF` / `L-PERF` or `M-INT8` / `L-INT8` | | `[RayReconstruction] Mode` | **`Off`** / `Performance` / `Mixed` (Precision) | RTX 30 / 20 + driver ≥ R580 only | | `[Logging] Level` | `0` / **`1`** / `2` / `3` | `0`=off, `1`=errors, `2`=info, `3`=trace → `dlssg_sm86\logs\dlssg_sm86.log` |
Expand advanced / baseline options (per-tier Tier* & Official FP16 baseline) - **Per-tier SR overrides**: Set `TierDLAA`, `TierQuality`, `TierBalanced`, `TierPerformance`, `TierUltraPerformance`, or `TierUltraQuality` under `[SuperResolution]` to `Auto`, `Native`, `Off`, `M-PERF`, `L-PERF`, `M-INT8`, `L-INT8`, `M-FP16`, or `L-FP16`. **Note**: Precision (`*-INT8`) and Performance (`*-PERF`) tiers cannot be mixed in the same session, though either mixes freely with `Native` / `*-FP16`. - **Official FP16 reference**: `Mode=M-FP16` / `L-FP16` pins official FP16 presets for comparison (or simply use the live `ToggleOfficialKey` hotkey below without restarting). - **Strict validation**: Invalid values log `configuration_invalid` and disable that feature rather than silently falling back. Full key reference: [`docs/INSTALL.en.md`](docs/INSTALL.en.md).
--- ## In-Game Hot-Switch & Debug HUD Guide A built-in **zero-restart Official FP16 A/B hotkey toggle**, **unified two-row Debug HUD**, and **per-frame GPU timing logger** are included with zero external dependencies. ### 1. What Hot-Switches In-Game vs Requires a Restart? | Action | Restart Needed? | How It Works | |---|---|---| | **Toggle Accelerated INT8 ↔ Official FP16 (SR / RR)** | **No restart (frame-boundary hot-switch)** | Set `[Debug] ToggleOfficialKey=F9` (or another key); pressing it switches immediately at the next frame boundary and resets GPU ms averaging | | **Change game graphics presets / DLSS quality tier / RR / FG** | **No restart** | Toggle in the game menu as normal; `Auto-PERF`/`Auto-INT8` follows the active tier automatically | | **Edit `dlssg_sm86.ini`** (tier changes, `Engine=DLSS/XeSS`, enabling `DebugHud`) | **Quit & restart game** | `dlssg_sm86.ini` is read once at proxy load time | ### 2. Minimal Configuration (`DebugHud=1` + `ToggleOfficialKey=F9`) Append to `dlssg_sm86.ini` (remove or set to `0` when done — zero hooks & zero overhead when off): ```ini [Debug] ; Single unified switch: Row 0 SR/RR mode+ms + Row 1 DL/XE ms + [RL][G1].. cadence markers DebugHud=1 ; Frame-boundary hot-switch between Accelerated INT8 and Official FP16 (0 = off) ; Supports: F1..F24 / Insert / Delete / Home / End / PageUp / PageDown / Pause / ScrollLock / letter/digit / VK code ToggleOfficialKey=F9 ; Optional corner position & scale (default MarkerScale=3 is 1.5x enlarged for clarity; range 1..8) ; MarkerX=8 ; MarkerY=8 ; MarkerScale=3 ``` > **Note**: Latency ms readouts and generated-frame cadence markers are now **unified under `DebugHud=1`**, with default scale enlarged **1.5×** to `MarkerScale=3` (crisp and legible across 1080p, 1440p, and 4K). ### 3. Understanding the Two-Row HUD Layout Text, border colors, and fixed widths are latched once per real-frame group so `OutputReal` (`[RL]`) and every `OutputInterpolated` (`[G1]`..`[GN]`) align cleanly with zero horizontal shift or strobe flicker: 1. **Row 0 — Super Resolution (SR) / Ray Reconstruction (RR) Mode & GPU Time** (refreshed every ~180 ms using GPU timestamps retired 6 frames earlier; omitted automatically when neither SR nor RR is running): - **RR Badge**: **Green** `RR:PERF 11.7MS` (Performance tier) or `RR:MIX 12.3MS` (Precision tier); flips to **Orange** `RR:ORIG 16.6MS` when hot-toggled to Official FP16. - **SR Badge**: **Cyan** `SR:M-PERF[P] 1.7MS` / `SR:L-INT8[UP] 2.9MS` (brackets indicate game quality tier `DLAA`/`Q`/`B`/`P`/`UP`/`UQ`); **Orange** `SR:ORIG M[P] 3.3MS` when hot-toggled; **Gray** `SR:NAT K[Q]` when `Auto-*` leaves upper tiers Native. 2. **Row 1 — Fixed-Width FG Engine Timing + Horizontal Cadence Strip** (always on Row 1 while FG is active, or Row 0 when SR/RR are inactive): - Always formatted as **`DL 1.7MS [RL] [G1] [G2] [G3]`** (`Engine=DLSS`) or **`XE 2.3MS [RL] [G1] [G2] [G3]`** (`Engine=XeSS`): fixed-width engine + GPU ms on the left, followed by the horizontal cadence strip lighting `[RL]` on real frames and `[G1]`..`[GN]` on generated frames. 3. **Instant Fixed-Camera A/B Workflow**: - Stand still at a fixed camera angle (~30 s warmup), note your Cyan/Green + `DL/XE` GPU ms and image detail, press `F9` (`ToggleOfficialKey`) to flip Row 0 to Orange `ORIG` at the next frame boundary, inspect the live Official FP16 delta within ~1 second, then press `F9` again to switch back (each toggle logs `debug_toggle_official`). ### 4. Per-Frame GPU Timing Log (`[Logging] FrameTiming=1`) Add `FrameTiming=1` under `[Logging]` to write `dlssg_sm86\logs\frame_timing.txt` asynchronously on a low-priority background thread (zero render-thread stall): ```text # frame t_ms dt_ms sr_ms fg_ms n fgw_ms gdt_ms src_ms fgc_ms flags # second 12 frames 58 fps 58.12 dt 17.205 17.180 18.012 19.440 sr 1.724 ... fg 1.651 ... n 3 gpu 99% fb 78% ``` | Column | Meaning | |---|---| | `frame` / `t_ms` | Real-frame index / elapsed ms since first frame | | `dt_ms` | CPU interval between consecutive real frames (ms); **real FPS ≈ `1000 / dt_ms`**, displayed FPS ≈ real FPS × `(n + 1)` | | `sr_ms` | Pure GPU time of DLSS SR (ms, D3D12 timestamps) | | `fg_ms` / `n` | Total GPU time of the FG group (ms) and generated frame count `n` (`1`=2X, `3`=4X, `5`=6X) | | `fgw_ms` / `gdt_ms` | FG group GPU span / GPU-side real-frame interval (ms) | | `src_ms` / `fgc_ms` | CPU submission time of SR / FG calls (ms) | | `gpu %` / `fb %` | Per-second GPU core & memory-bus utilization (**check this to rule out CPU bottlenecks**) | | `flags` | Diagnostics (`x:sr` missing stamp, `srn=2` multiple SR calls per frame, `orphan` missing Index 1) | > Note: For Ray Reconstruction timing, use **`DebugHud=1` + `ToggleOfficialKey`** above to observe RR's live GPU ms directly (`frame_timing.txt` currently records SR and FG). ### 5. Translating Kernel Time to In-Game FPS & Benchmarking Discipline **A 1.4×–1.7× faster AI pass does not multiply total game FPS by 1.4×–1.7×**, because upscaling/denoising is only 10%–35% of total frame time: 1. **SR / RR Speedup → Base Real FPS**: ```text T_new ≈ T_old − (T_official_pass − T_accelerated_pass), F_new ≈ 1000 / T_new ``` - **Ray Reconstruction Example (4K DLSS Performance + RT + RR)**: In *Cyberpunk 2077* or *Phantom Blade Zero* running at ~`45 FPS` (`22.2 ms`) at 4K Performance, RR Performance cuts denoising from `16.6 → 11.7 ms` (**−4.9 ms** per frame), typically lifting native frame rate by **~7 FPS (nearly +15%)** before 2X–4X FG multiplication; under heavier full Path Tracing (`~28.6 FPS` / `35.0 ms`), native FPS rises to **~33.2 FPS (+16%)**. - **SR Preset M / Preset L Default-Schedule Example**: Although the isolated SR pass speeds up by `1.57×–1.77×`, SR is only a small fraction (~1–2 ms) of total frame time, so real-world overall FPS uplift under default M/L scheduling is a modest **~10%** (for example, **50 → ~55 FPS** in the *Phantom Blade Zero* test scene). 2. **Frame Generation Total FPS Estimate** (measure base `F_off` with FG off; look up `T_FG` below, which already covers all `M − 1` generated frames): ```text T_group (ms) ≈ 1000 / F_off + T_FG F_out (FPS) ≈ 1000 × M / (1000 / F_off + T_FG) ``` Example (`F_off = 50 FPS` / `20.0 ms`, RTX 3080 Ti **4K 4X**): Stock `5.112 ms` → **159.3 FPS**; `Optimized=1` `4.106 ms` → **165.9 FPS**; `Optimized=2` `3.987 ms` → **166.8 FPS**. 3. **5 Rules for Clean In-Game Benchmarks**: (1) Use a fixed camera/save; (2) warm up 30–60 s for steady boost clocks; (3) disable V-Sync/FPS caps and verify `gpu % ≥ 95%`; (4) run mirrored **A → B → B → A** passes via `ToggleOfficialKey` or alternating runs to cancel thermal drift; (5) attach `dlssg_sm86.ini`, `dlssg_sm86.log` (`Level=2`), and `frame_timing.txt` when reporting issues. --- ## Benchmarks & VRAM Reference ### 1. DLSS Super Resolution (SR) & Ray Reconstruction (RR) (RTX 3080 Ti, Real Game Captures) Measured on RTX 3080 Ti at steady clocks via mirrored cross-runs (pure GPU pass time in milliseconds, lower is faster): #### Super Resolution (SR): Precision Tier vs Performance Tier | Scene & Preset | Official FP16 | **Precision Tier** (`*-INT8`) | **Performance Tier** (`*-PERF`) | Performance vs Official | |---|---:|---:|---:|---:| | *Cyberpunk 2077* 2560×1440 (Preset M) | 2.976 ms | 2.167 ms (1.37×) | **1.893 ms** | **1.57×** | | *Phantom Blade Zero* 3440×1440 (Preset M) | 4.087 ms | 2.948 ms (1.39×) | **2.556 ms** | **1.60×** | | *Cyberpunk 2077* 2560×1440 (Preset L) | 3.772 ms | 3.131 ms (1.20×) | **2.302 ms** | **1.64×** | | *Cyberpunk 2077* 3840×2160 (Preset L) | 5.431 ms | 4.064 ms (1.34×) | **3.263 ms** | **1.66×** | > Note: SR figures above are clock-verified pure-kernel stage sums (end-to-end single-pass GPU speedup reaches **~1.60×–1.77×** at 3440×1440 / 4K for Presets M and L). #### Ray Reconstruction (RR, Preset F): Precision Tier vs Performance Tier | Scene | Official FP16 | **Precision Tier** (`Mixed`) | **Performance Tier** (`Performance`) | Performance vs Official | |---|---:|---:|---:|---:| | 4K Ray-Traced Quality Scene | 16.516 ms | 12.337 ms (1.34×) | **11.742 ms** | **1.41×** | | 4K Path Tracing Scene | 16.607 ms | 12.255 ms (1.36×) | **11.702 ms** | **1.42×** | > **What do these pass numbers mean in real games?** > - **SR Preset M / Preset L Performance (`1.57×–1.77×` pass speedup)**: accelerates heavy compute stages with RTX 30 2:4 hardware sparsity while keeping fine-detail bottleneck exits dense to avoid fine-line shimmering. Because SR itself is a modest share of total frame time, overall in-game FPS gain under default M/L scheduling is roughly **~10%** (e.g. **50 → ~55 FPS** in the *Phantom Blade Zero* test scene). > - **RR Performance (`1.41×–1.42×`, ~−4.9 ms at 4K)**: optimizes prologue encoding and post-filtering while preserving full-precision core reconstruction so skin/specular fireflies and distant frosted-glass blur stay gone — typically translating to **~+7 native FPS (nearly +15%)** in *Cyberpunk 2077* and *Phantom Blade Zero* at 4K Performance + RT. > - Because Performance tiers rely on distillation training and network sparsification/pruning, if an uncovered scene ever shows a minor glitch, simply switch back to `Mixed` or `Auto-INT8`. ### 2. DLSS-G & XeSS-FG Reference Tables
Expand RTX 3070 / RTX 3080 Ti Frame Generation & Precision SR in-game tables #### Per-Generated-Frame GPU Time (ms, Real Captures Offline Replay; parentheses vs DLSS Default) **RTX 3070 (2X)** | Game & Resolution | DLSS Default | Preset C (FG Lite) | XeSS Middle | XeSS Coarse | XeSS Fine | Stock (`Opt=0`) | |---|---:|---:|---:|---:|---:|---:| | Cyberpunk 2077 1440p | 2.554 | 1.694 (−33.7%) | 2.974 (+16.4%) | 2.344 (−8.2%) | 3.828 (+49.9%) | 3.639 (+42.4%) | | Black Myth: Wukong 1440p | 2.581 | 1.745 (−32.4%) | 3.266 (+26.5%) | 2.634 (+2.0%) | 4.164 (+61.3%) | 3.657 (+41.7%) | | Cyberpunk 2077 4K | 3.557 | 2.499 (−29.7%) | 6.379 (+79.3%) | 5.059 (+42.2%) | 8.296 (+133.2%) | 4.407 (+23.9%) | | Black Myth: Wukong 4K | 3.756 | 2.679 (−28.7%) | 6.974 (+85.7%) | 5.682 (+51.3%) | 9.025 (+140.3%) | 4.560 (+21.4%) | **RTX 3080 Ti (2X, steady 1665 MHz)** | Game & Resolution | DLSS Default | Preset C (FG Lite) | XeSS Middle | XeSS Coarse | XeSS Fine | Stock (`Opt=0`) | |---|---:|---:|---:|---:|---:|---:| | Cyberpunk 2077 1440p | 1.651 | 1.032 (−37.5%) | 2.235 (+35.4%) | 1.786 (+8.2%) | 2.791 (+69.1%) | 2.381 (+44.2%) | | Black Myth: Wukong 1440p | 1.663 | 1.062 (−36.1%) | 2.359 (+41.9%) | 1.911 (+14.9%) | 2.936 (+76.6%) | 2.391 (+43.8%) | | Cyberpunk 2077 4K | 2.171 | 1.473 (−32.2%) | 4.640 (+113.7%) | 3.668 (+68.9%) | 5.908 (+172.1%) | 2.860 (+31.7%) | | Black Myth: Wukong 4K | 2.275 | 1.577 (−30.7%) | 4.763 (+109.3%) | 3.822 (+68.0%) | 6.060 (+166.3%) | 2.935 (+29.0%) | #### Full-Group FG GPU Time `T_FG` (RTX 3080 Ti Synthetic, ms, for FPS Estimator) | Resolution | 2X (`Opt=0` / `1` / `2`) | 3X (`Opt=0` / `1` / `2`) | 4X (`Opt=0` / `1` / `2`) | 6X (`Opt=0` / `1` / `2`) | |---|---|---|---|---| | **1080p** | 1.364 / **0.926** / 0.917 | 1.942 / **1.423** / 1.400 | 2.520 / **1.914** / 1.888 | 3.677 / **2.911** / 2.867 | | **1440p** | 2.094 / **1.459** / 1.443 | 3.030 / **2.238** / 2.205 | 3.963 / **3.008** / 2.960 | 5.841 / **4.558** / 4.472 | | **4K** | 2.472 / **1.901** / 1.864 | 3.792 / **3.002** / 2.924 | 5.112 / **4.106** / 3.987 | 7.760 / **6.319** / 6.123 | #### In-Game 4K 2X Reference (RTX 3070, `FrameTiming=1` 60 s static median) | Game | DLSS Default (ms) | Preset C (ms / Real FPS) | XeSS Middle (ms / Real FPS) | |---|---:|---|---| | Cyberpunk 2077 (PT + RR) | 3.755 | 2.748 (−27% / +3.6%) | 6.733 (+79% / −8.6..−9.7%) | | Black Myth: Wukong (DLSS 50%) | 4.035 | 3.085 (−24% / +4.3%) | 7.308 (+81% / −11.0%) | | The Witcher 3 | 3.973 | 2.974 (−25% / −0.8%) | 7.166 (+80% / −15.0%) | | A Plague Tale: Resonance | 3.943 | 2.947 (−25% / +9.5%) | 6.968 (+77% / −28.1%) | | Forza Horizon 6 | 3.856 | 2.803 (−27% / +7.4%) | 6.847 (+78% / −8.0%) |
### 3. Additional VRAM for Frame Generation DLSS-G VRAM overhead scales **only with output resolution, not multiplier** (2X and 6X use the same VRAM). `Engine=XeSS` uses ~**410–530 MiB** more VRAM at 4K than DLSS-G. | Aspect | Output Resolution | DLSS-G Extra VRAM | Aspect | Output Resolution | DLSS-G Extra VRAM | |---|---|---:|---|---|---:| | 16:9 | 720p | ~230 MiB | 21:9 | 2560×1080 | ~440 MiB | | 16:9 | 1080p | ~350 MiB | 21:9 | 3440×1440 | ~700 MiB | | 16:9 | 1440p | ~540 MiB | 21:9 | 5120×2160 | ~1050 MiB | | 16:9 | 4K (3840×2160) | ~810 MiB | 32:9 | 3840×1080 / 5120×1440 | ~610 / ~990 MiB | --- ## FAQ **Q1: Frame Generation is still grayed out or inactive after copying the files.** Check 4 things: (1) files sit beside the **actual rendering EXE** together with `dlssg_sm86\`; (2) Windows **HAGS** is enabled and NVIDIA driver is **≥ R580**; (3) set `[Logging] Level=2` and check `dlssg_sm86\logs\dlssg_sm86.log` — if empty, delete `version.dll` and try `alternatives\` one at a time (`winmm` → `dbghelp` → `dinput8` → `dxgi` → `d3d12`); (4) check for `game_runtime_generation` or `configuration_invalid` in the log. **Q2: SR or RR Performance cuts AI pass time by 1.5–1.8×, so why didn't game FPS increase by the same factor?** Upscaling / ray reconstruction is only ~10%–35% of total frame GPU time; geometry, shadows, and ray tracing still dominate. Also check `gpu %` in `frame_timing.txt` — below 95% means CPU-bound. Use `DebugHud=1` + `ToggleOfficialKey` at a fixed view to see real savings. **Q3: Should I pick the Performance tier or Precision tier for Super Resolution (SR)? What if I spot a glitch?** - **Performance Tier (`Mode=Auto-PERF`, recommended)**: Keeps DLAA / Quality / Balanced Native and accelerates Performance (Preset M) & UltraPerformance (Preset L), yielding a modest **~10%** overall native FPS boost under default M/L scheduling (e.g. **50 → 55 FPS** in the *Phantom Blade Zero* test scene; use `M-PERF` / `L-PERF` to pin Preset M or L globally). - **Precision Tier (`Mode=Auto-INT8`, easy fallback)**: Because `Auto-PERF` uses training & 2:4 sparsification, rare uncovered scenes or thin textures may show minor artifacts. Check with `ToggleOfficialKey` (`F9`), and switch back to **`Auto-INT8`** (or `M-INT8` / `L-INT8`) for virtually official FP16 quality at **1.20×–1.39×** pass speedup. **Q4: Why can't I mix Precision (`*-INT8`) and Performance (`*-PERF`) across per-tier `Tier*` overrides?** One session loads a single SR acceleration kernel family; mixing the two logs `configuration_invalid` and disables SR. Either family mixes freely with `Native`. **Q5: Should I pick `Performance` or `Mixed` (Precision) for Ray Reconstruction (RR)? Could any scene show small bugs?** - **Performance Tier (`Mode=Performance`, recommended)**: **1.41×–1.42×** faster on RTX 30 (**−4.9 ms** at 4K), typically lifting 4K DLSS Performance + RT by **~7 native FPS (nearly +15%)** in *Cyberpunk 2077* and *Phantom Blade Zero* while eliminating skin/specular fireflies and distant frosted-glass blur (RTX 20 runs a bit-identical parity build). - **Precision Tier (`Mode=Mixed`, easy fallback)**: **1.34×–1.36×** faster. If an uncovered scene or material ever shows minor artifacts under `Performance`, switching back to `Mode=Mixed` restores near-lossless official fidelity. **Q6: Does `DebugHud=1` hurt FPS or corrupt temporal history?** No. When off, overhead is a single atomic read; when on, GPU timestamps are read back 6 frames behind (zero stalls), and with FG active both Row 0 (SR/RR) and Row 1 (`DL/XE` ms + `[RL][G1]..` cadence) are stamped on the final output with locked per-group widths — zero temporal history corruption and zero horizontal wobble. **Q7: Why can't some games select 6X, or why do older DLSS-G games not enable FG?** 6X requires setting `MaxGeneratedFrames=5` **and** a game with a 6X / Dynamic MFG Streamline plugin (most games cap at 4X in their plugin). Early Streamline games (DLSS-G ≤ 3.8.x, e.g. *The Witcher 3*, *Spider-Man Remastered*, *Atomic Heart*) are passed through untouched (`game_runtime_generation`). **Q8: Windows SmartScreen or antivirus flags the DLLs.** Unsigned or self-signed DLLs trigger reputation prompts rather than malware detection; signed releases sign our 11 project DLLs while leaving bundled NVIDIA runtimes untouched. Verify integrity against `*.zip.sha256` and `manifest.json` (signing workflow: [`docs/SIGNING.md`](docs/SIGNING.md)). **Q9: `Engine=XeSS` exits with `0xE0D55001` or runs slower than DLSS-G.** XeSS-FG does not fall back to DLSS-G: unsupported HDR `RGBA16F` backbuffers or `UseHudless=1` without a game HUD-less surface trigger `xefg_feature_refused` / `xefg_kernel_fatal` (`0xE0D55001`). On RTX 30 at 4K, DLSS-G is substantially faster and recommended. **Q10: FG turns on in the menu but generates zero frames, or crashes on startup.** Search `dlssg_sm86.log` for `foreign_fg_mod` and remove conflicting FG mods (OptiScaler, rtx-encore, legacy ReShade FG addons). On crashes, inspect `fg_gate_crash` (`ours` indicates whether the faulting module is ours). **Q11: What is the status on RTX 20 (SM75) and RTX 40 / 50?** RTX 20 ships full DLSS-G plus Precision & 100% dense Performance parity sets for SR and RR (forward-JIT verified; latest Performance tiers are not yet fully benchmarked on physical RTX 20 cards). RTX 40 / 50 runs FG via PTX (plus RTX 50 XeSS-FG optimizations) and leaves SR / RR native. **Q12: Can I use this in online anti-cheat games?** **Never.** Use strictly in offline / single-player games. --- ## Diagnostics & Known Limitations ### Common Log Events (`dlssg_sm86\logs\dlssg_sm86.log`) | Event | Meaning / Action | |---|---| | `install` (`active=true`) & `backend_install` (`status=0`) | Proxy and backend loaded cleanly | | `driver_below_floor` | Driver is older than **R580** — update NVIDIA driver | | `configuration_invalid` | Invalid INI value or mixed SR Precision/Performance tiers — module disabled | | `foreign_fg_mod` | Conflicting frame-gen mod detected — keep only one | | `game_runtime_generation` | Game ships early DLSS-G (≤ 3.8.x) — FG passed through | | `rr_gate` / `sr_gate` | Device or driver did not satisfy RR/SR gate (e.g. RTX 40/50 or non-RTX) | | `preset_ineffective` | `Preset=B` needs game HUD-less + UI surfaces that are absent | | `debug_toggle_official` | Live hotkey switched between accelerated INT8 and Official FP16 | | `fg_gate_exit` / `fg_gate_crash` | Clean shutdown marker / crash module attribution (`ours`) | ### Known Limitations - **Strict refusal on explicit mismatches**: missing kernel packs, missing runtimes, invalid `[Runtime] Path`, or `KernelImage=Cubin` on RTX 40/50 refuse the feature with a clear log rather than silently falling back. - **Windows x64 / D3D12 only** (no Vulkan support). - **Base FPS governs FG visual quality**: low base frame rates exaggerate artifacts at 3X–6X; raise base FPS with SR acceleration or settings first. Full documentation: [`docs/INSTALL.en.md`](docs/INSTALL.en.md), [`docs/CAPTURE.md`](docs/CAPTURE.md), [`docs/CAPTURE_SR.md`](docs/CAPTURE_SR.md), and [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md). --- ## Credits, Building & Licenses ### Credits - **Coldwood1026**: RTX 20 / SM75 kernel family port (see `THIRD_PARTY_NOTICES.txt`). - **NVIDIA**: Unmodified bundled DLSS-G 310.9.16.0, DLSS SR 310.9.16, and DLSS RR 310.9.0.0 runtimes. - **Intel**: XeSS-FG shaders and weights (MIT license, see `THIRD_PARTY_NOTICES.txt`). - **MFG-Unlocker 1.6.0 (Michael Robles / dashdogy, MIT)**: XeSS-FG model 15 multi-frame port; 46 programs derive from the Intel XeSS SDK and remain subject to Intel XeSS SDK terms. ### Building from Source Build proxy, backend, tests, and tools with `build.ps1` (default runtime model `310.9.16`, optional `-RuntimeModel 310.9`, `-KernelPack`, `-SignCert`, `-PackageOnly`). Binary kernel packs and NVIDIA runtimes are not in the open source repo and must come from a matching release package. ### Licenses & Third-Party Material - Original C++ source code is licensed under **MIT** (`LICENSE.md`, Copyright (c) 2026 sdli1995). Shipped binary kernel images are outside MIT. - Bundled `dlssg_sm86\runtime\nvngx_dlssg.dll` (310.9.16, SHA prefix `cadee1aa…`), `dlssg_sm86\sr\nvngx_dlss.dll` (310.9.16), and `dlssg_sm86\rr\nvngx_dlssd.dll` (310.9.0.0, SHA prefix `8be37e0d…`) are unmodified NVIDIA binaries; `fg_kernels.dll`, `sr_kernels.dll`, and `rr_kernels.dll` derive from NVIDIA kernels (SM75 imported from Coldwood1026) and are distributed in binary form only (see `THIRD_PARTY_NOTICES.txt`). - `dlssg_sm86\xefg\xefg_kernels.dll` contains Intel XeSS-FG assets under Intel's MIT license plus MFG-Unlocker 1.6.0 model 15 programs (46 of which fall under Intel XeSS SDK terms outside MIT; see `THIRD_PARTY_NOTICES.txt`).