Note
FSR-NG-Scaling is a standalone, ultra-low latency real-time neural upscaler for Windows 11 (C++20 / DirectX 12). Powered by the latest Envy-Diamond-2 (ED2) translation engine and OptiScaler, it brings native DLSS Neural Rendering (DLSS-NR), Intel XeSS, and AMD FidelityFX upscaling to any window or game on AMD Radeon and NVIDIA GPUs without process injection.
- ✨ Key Features
- 💎 Powered by Envy-Diamond-2 (ED2)
- 🧩 Architecture & Workflow
- 🎮 Hotkeys & In-Game Controls
- ⚙️ Configuration (
settings.ini) - 🛠️ Requirements & Building from Source
- 📦 Pre-built Release Installation
- 📂 Project Structure
- 💖 Support the Project
- 📄 License & Disclaimer
- 🛡️ Zero Process Injection: Completely external and non-invasive. Captures frames directly from the desktop/GPU surface without modifying game memory, injecting remote threads, or hooking game binaries (100% anti-cheat safe).
- 🧠 Real-Time AI Depth Estimation: Integrates a parallel ONNX Runtime asynchronous pipeline running Depth Anything V2 to dynamically hallucinate missing depth maps for native FSR2/DLSS upscaling logic without game integration.
- 💎 Envy-Diamond-2 (ED2) Engine Integration: Unlocks DLSS Neural Rendering (DLSS-NR), Ray Reconstruction passes, and multi-backend scaling on AMD Radeon hardware.
- ⚡ Absolute Zero-Stutter Frame Pacing: Bundles
EnvyDynamicPacing.asi(The Digital Bottomless Pit v1.0.1) to eliminate internal watchdog timeout drops and bypass proxy penalties during heavy GPU loads. - 📌 Continuous TopMost Z-Order Heartbeat: Active DWM Z-order enforcement ensures no background games, notification popups, or external windows ever stick out above the overlay.
- 🖱️ Intelligent Dual-Mode Mouse Input:
- Game Mode (Ctrl + Alt + S): Mouse clicks, mouse look, and raw input pass directly through to the game underneath (
HTTRANSPARENT). - Menu Mode (Ctrl + Alt + M): Instantly unlocks the mouse cursor to interact with runtime GUI controls and menus.
- Game Mode (Ctrl + Alt + S): Mouse clicks, mouse look, and raw input pass directly through to the game underneath (
- 📐 Adaptive DPI & Multi-Monitor Support: Automatically handles Windows 11 display scaling (100%, 125%, 150%, 200%) and multi-monitor topologies with 1:1 pixel accuracy and zero corner cropping.
- 🏎️ Ultra-Low Latency Presentation: Direct DXGI Flip-Discard swapchain (
DXGI_SWAP_EFFECT_FLIP_DISCARD) synchronized with display VSync.
FSR-NG-Scaling embeds the Envy-Diamond-2 (ED2) architecture to eliminate micro-stutters and time-budget collapses associated with running heavy neural models on AMD hardware:
- The Digital Bottomless Pit (
EnvyDynamicPacing.asiv1.0.1):- Host Watchdog Budget Freezer: Freezes internal AMD proxy time budgets at 600ms, preventing watchdog timeout drops from 600ms down to 87ms under heavy loads (e.g. streaming with OBS Studio or high-density scenes).
- Unlocked 50M Iteration Cap: Modifies the internal spin iteration cap to 50,000,000 and NOPs out dynamic cap recalculations.
- OptiScaler Penalty Bypass: Dynamically patches
dxgi.dllin memory to bypass 16ms error counters and 1-second recovery penalties (Offsets0x14587,0x14750,0x19442).
- GPU-Aware Detection & TDR Hardening:
- Includes
tools/Setup.TDRFix.ps1to configure Windows TDR delay to 10 seconds, preventing driver timeouts during intense neural compute passes. - Validated against AMD RDNA 2, RDNA 3, and RDNA 4 (Radeon AI PRO R9700 / RX 7000 / RX 9000 series).
- Includes
- Multi-Pass Neural Execution: Runs the full 3-pass DLSS-NR pipeline (
dlssnr_amd_pass1/2/3.dll) backed by 147 MB of trained generative weights (dlssnr_on_amd_weights.bin).
graph TD
A[Game / Window] -->|DXGI Output Duplication / Frame Capture| B(Capture Engine)
B -->|GPU Shared Resource / VRAM| C{Envy-Diamond-2 / OptiScaler}
C -->|EnvyDynamicPacing.asi| D[Zero-Stutter Memory Patched Pipeline]
D -->|Multi-Pass Neural Passes| E[DLSS-NR / XeSS / FSR In-Flight]
E -->|Continuous TopMost Present| F[Borderless Overlay Window]
F -->|Click-Through Ghost| G((Player Monitor))
style A fill:#1f2937,stroke:#3b82f6,stroke-width:2px,color:#fff
style B fill:#374151,stroke:#8b5cf6,stroke-width:2px,color:#fff
style C fill:#8b5cf6,stroke:#6d28d9,stroke-width:3px,color:#fff
style D fill:#10b981,stroke:#047857,stroke-width:3px,color:#fff
style E fill:#ec4899,stroke:#be185d,stroke-width:2px,color:#fff
style F fill:#f59e0b,stroke:#b45309,stroke-width:2px,color:#fff
style G fill:#059669,stroke:#10b981,stroke-width:2px,color:#fff
FSR-NG-Scaling runs silently in the background and responds to global hotkeys:
| Shortcut | Action | Description |
|---|---|---|
| Ctrl + Alt + S | Toggle Overlay | Activates or hides the real-time scaling overlay. |
| Ctrl + Alt + D | Toggle Depth Map | Toggles the real-time AI depth map visualization overlay. |
| Ctrl + Alt + M | Toggle Menu / Game Mode | Switches mouse input between pass-through (Game) and interactive (GUI). |
| Ctrl + Alt + R | Reload Config | Re-reads OptiScaler.ini live without restarting. |
| Insert | In-Game Menu | Toggles the native OptiScaler / Envy-Diamond-2 GUI menu (unlock mouse first). |
| Ctrl + C | Exit | Gracefully terminates the application and frees all GPU resources. |
All engine parameters can be configured in config/settings.ini:
[Scaling]
; Scaling profile: Native, Quality, Balanced, Performance, UltraPerformance
dlss_mode = Performance
; Custom scale factor multiplier
scale_factor = 1.0
; Automatically adapt to Windows DPI scaling (e.g. 150%, 200%)
auto_dpi_scale = true
[Performance]
; FPS target limit (0 = uncapped / monitor refresh rate)
fps_limit = 0
[Debug]
; Split screen comparison (0.0 = full upscaled, 0.5 = 50/50 split)
debug_split_screen = 0.0- Operating System: Windows 11 64-bit (x64)
- Compiler: Microsoft Visual C++ (MSVC) with C++20 support (Visual Studio 2022 v17.x / VS 2026)
- Windows SDK: 10.0.19041.0 or higher (SDK 10.0.28000+ recommended)
- Build System: CMake 3.20+
- Clone the repository:
git clone https://github.com/mnector/FSR-NG-Scaling.git cd FSR-NG-Scaling - Build via the automated batch script:
Or manually via CMake:
build.bat
cmake -B build -A x64 cmake --build build --config Release
- Download
FSR-NG-Scaling-v1.0.3-win64.zipfrom the Releases section. - Extract the archive to any directory.
- (Optional, recommended for heavy scenes): Right-click
tools/Setup.TDRFix.ps1and run with PowerShell as Administrator. - Launch
FSR-NG-Scaling.exe. - Open your game in Windowed or Borderless Windowed mode.
- Press Ctrl + Alt + S to activate real-time neural scaling!
FSR-NG-Scaling/
├── 📄 CMakeLists.txt # CMake build configuration
├── 📖 README.md # Documentation and usage guide
├── 🛠️ build.bat # One-click Release build script
├── 📦 backend/ # Envy-Diamond-2 engine libraries, passes, and weights
├── ⚙️ config/ # Runtime settings (settings.ini)
├── 🎨 shaders/ # HLSL Compute Shaders
├── 🔧 tools/ # TDR registry fix & environment validator
└── 💻 src/
├── capture/ # Screen capture & frame pool
├── display/ # Borderless overlay & Swapchain Presenter
├── neural_engine/ # NGX API and neural scaling coordinator
└── utils/ # Config parser & global hotkeys
If you enjoy FSR-NG-Scaling and would like to support ongoing development:
FSR-NG-Scaling is licensed under the MIT License.
All trademarks, product names, and company logos are the property of their respective owners. This software is an independent research project.
