Repository navigation
Releases
Real-Time AI Depth Estimation
🚀 What's New
- Real-Time AI Depth Estimation: FSR-NG-Scaling now natively integrates Depth Anything V2 via ONNX Runtime. Instead of relying on static placeholder depth maps, the engine captures your game frame and uses neural inference to generate a dynamic, hyper-accurate 3D depth map in real-time.
- Flawless FSR2 & DLSS Scaling: By providing true real-time depth data to the scaling backend, FSR2/DLSS can now properly distinguish foreground characters from backgrounds, dramatically reducing ghosting, blurring, and smearing on moving objects.
- Depth Map Visualization Overlay: You can now view the AI's internal depth map in real-time by pressing
<Ctrl> + <Alt> + <D>! - Multi-Threaded Asynchronous Architecture: The depth inference runs entirely in parallel on a dedicated background thread, ensuring absolutely zero impact on the rendering pipeline and game frame pacing.
- Auto-Contrast Scaling: Features a dynamic
min-maxscaler algorithm to normalize disparity maps into true Reversed-Z depth coordinates expected by modern upscalers, ensuring pristine image quality.
🛠️ Fixes
- Activation Crash Fixed: Resolved a catastrophic out-of-bounds memory access violation (
C0000005) that caused the application to silently crash to desktop upon pressing<Ctrl> + <Alt> + <S>. - DirectX 12 Stability: Fixed a critical D3D12 state machine mismatch where the depth visualization overlay would trigger a GPU TDR timeout if the upscaler released resources in the wrong transition state.
- Depth Map Corruption: Fixed a bug where the Python backend erroneously tried to reshape raw memory dumps as perfect squares, which previously resulted in corrupted, garbled images and pitch-black depth estimations with white margins.
📥 Installation
- Download
FSR-NG-Scaling-v1.0.3-win64.zipbelow. - Extract to a new folder (do not overwrite old versions).
- Launch
FSR-NG-Scaling.exe. - Enter your game in Borderless Windowed mode and press
<Ctrl> + <Alt> + <S>!
Zero-Copy GPU VRAM Pipeline & Framerate Unlock
FSR-NG-Scaling v1.0.2 — Zero-Copy GPU VRAM Pipeline & Framerate Unlock
Esta actualización resuelve de forma definitiva los cuellos de botella de rendimiento, bloqueos de ejecución y problemas de oscurecimiento de pantalla reportados en la v1.0.1, desbloqueando la tasa real de fotogramas del motor neural Envy-Diamond-2 en GPUs AMD Radeon.
🚀 Mejoras de Rendimiento y Desbloqueo de FPS
- Pipeline de Captura Zero-Copy en VRAM Directa (GPU):
- Se eliminó por completo el motor de captura por software GDI (
StretchBlt(HALFTONE), lecturas lentas por el bus PCIe y bucles dememcpyen CPU). - Implementada duplicación nativa de pantalla DXGI Desktop Duplication (
IDXGIOutputDuplication) 100% en VRAM con texturas compartidas interop D3D11-D3D12 vía NT Handles. - La latencia de adquisición de fotogramas se redujo de ~125 ms a < 0.5 ms.
- Se eliminó por completo el motor de captura por software GDI (
- Downsampler Bilineal en Compute Shader HLSL (0.02 ms):
- En configuraciones donde la resolución del escritorio (ej. 4K) difiere de la entrada del modelo (ej. 1536x864), el reescalado previo se ejecuta ahora directamente en los Compute Units de la GPU mediante un Compute Shader HLSL (
cs_5_0), eliminando la carga de procesamiento en la CPU.
- En configuraciones donde la resolución del escritorio (ej. 4K) difiere de la entrada del modelo (ej. 1536x864), el reescalado previo se ejecuta ahora directamente en los Compute Units de la GPU mediante un Compute Shader HLSL (
- Eliminación del Bug del Temporizador de 33 ms:
- Corregido el muestreo de tiempo en el bucle principal (
main.cpp), eliminando una pausa artificial incondicional de 33 ms que se ejecutaba en cada frame. - Se fijó
fps_limit=0(sin límite) por defecto enconfig/settings.ini.
- Corregido el muestreo de tiempo en el bucle principal (
- Presentación Asíncrona con Tearing Desbloqueado:
- La presentación en pantalla ahora utiliza
DXGI_PRESENT_ALLOW_TEARING, eliminando la cuantización forzada por VSync (DWM a 60 Hz). - Se reemplazó el bloqueo síncrono
WaitForGpu()por pipelining asíncrono con vallas DirectX 12 (ID3D12Fence) por búfer, permitiendo paralelismo real entre CPU y GPU.
- La presentación en pantalla ahora utiliza
🛠️ Correcciones de Errores (Bug Fixes)
- Cierre al Iniciar (Crash 0xC00000FD / 0xC0000005):
- Se eliminó la presencia simultánea de proxies que provocaba una recursión infinita de transacciones de hooks en Microsoft Detours (
error: 10DD). - Desactivado
SimulateWaitableObjecten configuraciones donde el swapchain no utilizaba objetos de espera de latencia.
- Se eliminó la presencia simultánea de proxies que provocaba una recursión infinita de transacciones de hooks en Microsoft Detours (
- Solución al Oscurecimiento Progresivo de Pantalla:
- Desactivado el bucle descontrolado de auto-exposición (
AutoExposure=falseenOptiScaler.iniy escala de exposición fijada en 1.0f), impidiendo que las escenas oscuras se tornen gradualmente en pantallas negras.
- Desactivado el bucle descontrolado de auto-exposición (
- Reversión de Hooks en la Tecla Insert:
- Eliminada cualquier intercepción asíncrona en el código de la aplicación para dejar la tecla Insert en el comportamiento nativo y limpio del motor OptiScaler / ED2.
🎮 Controles
| Atajo | Función |
|---|---|
| Ctrl + Alt + S | Alternar Overlay de Escalado (On / Off) |
| Ctrl + Alt + M | Alternar entre Modo Juego (Mouse transparente) y Modo Menú |
| Insert | Abrir/Cerrar el menú de configuración en pantalla (OptiScaler / ED2) |
| Ctrl + Alt + R | Recargar config/settings.ini en caliente |
| Ctrl + C | Cierre seguro y liberación de recursos VRAM |
v1.0.1: Powered by Envy-Diamond-2 (ED2) — Absolute Zero-Stutter Engine Upgrade
🌟 FSR-NG-Scaling v1.0.1 — Powered by Envy-Diamond-2 (ED2) 💎
This release upgrades the core scaling and pacing backend to Envy-Diamond-2 (ED2) v1.0.1, delivering rock-solid frame pacing, micro-stutter elimination, and active Z-order stabilization.
🚀 What's New in v1.0.1
- 💎 Envy-Diamond-2 (ED2) Integration:
- The True Digital Bottomless Pit (
EnvyDynamicPacing.asiv1.0.1): Dynamically freezes internal AMD proxy watchdog time budgets to 600ms, preventing the watchdog from collapsing down to 87ms under heavy GPU load or during OBS Studio streaming. - 50M Iteration Cap Unlocked: Eliminates iteration spin clamps and dynamic cap recalculation bottlenecks in AMD proxy passes.
- OptiScaler 1-Second Penalty Bypass: In-memory byte-level bypass of recovery-pending penalties and error counters (offsets
0x14587,0x14750,0x19442).
- The True Digital Bottomless Pit (
- 📌 Continuous TopMost Z-Order Heartbeat:
- Added active DWM Z-order enforcement (
BringToTop). Background applications, contextual menus, or game popups will never bleed through or sit on top of the overlay window.
- Added active DWM Z-order enforcement (
- 🔧 TDR Hardening Scripts (
tools/):- Added
Setup.TDRFix.ps1to configure Windows TDR delay to 10 seconds for AMD RDNA 2/3/4 architectures, preventing driver resets during heavy neural passes. - Added
Setup.Validate.ps1for automated environment verification.
- Added
- ⚙️ Optimized Frame Pacing:
- Fine-tuned
OptiScaler.ini(FPTSafetyMarginInMs=3.0,FPTVarianceFactor=0.1,FPTHybridSpin=true,SimulateWaitableObject=true).
- Fine-tuned
🎮 Controls & Shortcuts
| Hotkey | Action |
|---|---|
| Ctrl + Alt + S | Toggle scaling overlay On / Off |
| Ctrl + Alt + M | Toggle between Game Mode (click-through) and Menu Mode (interactive mouse) |
| Ctrl + Alt + R | Hot-reload config/settings.ini live |
| Insert | Show / Hide in-game overlay configuration menu (activate Menu Mode first) |
| Ctrl + C | Graceful exit and clean GPU resource deallocation |
📦 Installation & Usage
- Download and extract
FSR-NG-Scaling-v1.0.1-win64.zip. - (Optional, recommended for heavy scenes): Right-click
tools/Setup.TDRFix.ps1and run with PowerShell as Administrator. - Run
FSR-NG-Scaling.exe. - Open your game in Windowed or Borderless Windowed mode.
- Press Ctrl + Alt + S to activate lossless neural scaling!
📋 Checksum
- Archive:
FSR-NG-Scaling-v1.0.1-win64.zip
Initial Release
🌟 FSR-NG-Scaling v1.0.0 — Initial Release
Welcome to the initial public release of FSR-NG-Scaling, a standalone, ultra-low latency real-time neural upscaler for Windows 11 built in native C++20 and DirectX 12.
Inspired by tools like Lossless Scaling and Magpie, FSR-NG-Scaling runs entirely external to your games—providing hardware-accelerated generative scaling and temporal reconstruction on AMD Radeon and NVIDIA GPUs without any invasive game process injection.
✨ Highlights & Features
- 🛡️ Zero Process Injection: Completely non-invasive. Captures frames directly from the desktop display surface; does not alter game memory, inject DLLs, or hook game loops (100% anti-cheat friendly).
- 🚀 Multi-Backend Neural Engine: Integrates the high-performance Envy-Diamond / OptiScaler runtime with direct support for AMD RDNA passes, DLSS-NR neural reconstruction, Intel XeSS, and AMD FidelityFX.
- 🖱️ Intelligent Dual-Mode Mouse Input:
- Game Mode: The overlay is fully transparent to mouse clicks (
HTTRANSPARENT), allowing unrestricted camera rotation and shooting in games. - Menu Mode (Ctrl + Alt + M): Unlocks mouse input to interact directly with the in-game GUI settings.
- Game Mode: The overlay is fully transparent to mouse clicks (
- 📐 Adaptive DPI Awareness: Handles mixed multi-monitor setups and Windows DPI scaling (100%, 125%, 150%, 200%) automatically with 1:1 pixel coverage.
- ⚡ Flip-Discard Presentation: Native DXGI Flip-Discard swapchain synchronized with monitor VSync for minimal frame latency.
🎮 Controls & Shortcuts
| Hotkey | Action |
|---|---|
| Ctrl + Alt + S | Toggle scaling overlay On / Off |
| Ctrl + Alt + M | Toggle between Game Mode (click-through) and Menu Mode (interactive mouse) |
| Ctrl + Alt + R | Hot-reload config/settings.ini live |
| Insert | Show / Hide in-game overlay configuration menu (activate Menu Mode first) |
| Ctrl + C | Graceful exit and clean GPU resource deallocation (in terminal) |
📦 Quick Start Guide
- Download and extract
FSR-NG-Scaling-v1.0.0-win64.zip. - Run
FSR-NG-Scaling.exe. - Open any game in Windowed or Borderless Windowed mode.
- Press Ctrl + Alt + S to activate real-time lossless scaling!
📋 SHA-256 Checksums
FSR-NG-Scaling-v1.0.0-win64.zip— Standalone x64 portable package