Advanced Neural Rendering & Frame Generation Translation Layer for AMD GPUs
Envy-Diamond-2 unlocks the true power of DLSS and OptiScaler features on AMD hardware, injecting a custom proxy to translate calls and deliver massive framerate uplifts!
If this mod saved your framerate, consider buying me a coffee to support future development!
- ๐ Always-latest NR stack:
Setup.Install.ps1pulls the newest AMDNR (0.3.5.8.28+) release with Mochi 0.0.9 (CC_SILVER_AARDWOLD+CC_SMALL_FP8+ optimized/INT4), lmxxf 0.4.6.x, Daniel 0.6.0, Daniel 0.8.0 and Daniel 0.9.0 (AMDNR-NeuralHub-090, extracted from the officialNeuralHub_v*_setup.exewithout running it). All files and sub-folders of the release are installed, so new versions need no script change (SHA-256 verified againstSHA256SUMS.txt). - ๐จ ReShade only when needed:
-ReShadeMode auto(default) skips ReShade + DLSS5-Feeder if the game already ships DLSS/FSR/XeSS (or already has ReShade); installs them (ReShade 6.8.0 asdxgi.dll, OptiScaler aswinmm.dll) when it does not. Force with-ReShadeMode always|neveror the GUI drop-down;Setup.Feeder.ps1always forces it on. PutReShade64.dll+DLSS5-Feeder-*.zipinfeeder-cache\(or%LOCALAPPDATA%\DLSS5-Feeder\downloads). - Opt-ins:
-SkipDaniel080,-SkipDaniel090,-SkipAnrFg,-IncludeWrongGpu. Daniel0.8.0/0.9.0stay selectable from the OptiScaler menu even when Mochi is the active backend. - Note: Daniel hosts hook D3D12 directly; with ReShade 6.8.0 active they may need AMDNR-side fixes, so
autoprefers Mochi.
- โก Apex Neural Rendering (
ANR FG) Included Out-of-the-Box:Setup.Install.ps1now automatically fetches the latest official apex-compute/ANR Frame Generation addon (anr-fg-*-addon.zip), verifies its SHA-256 checksum againstSHA256SUMS.txt, installs it underOptiScaler\custom\Apex Neural Rendering FG, and sets[FrameGen] FGInput=nvngxfg&FGNvngxReplacement=Apex Neural Rendering FGso you get DLSS 5 visuals (AMD-NR) + Vulkan neural Frame Generation (ANR FG) in one click (verified on RDNA 4 in GTA V Enhanced; pass-SkipAnrFgif you want to opt out, and RE Engine keeps RTX 3090 isolation). - โ๏ธ Legal & License Compliance: ED2 is 100% compliant and respects the licensing of third-party developers. It does not bundle copyrighted or upstream binaries in this repository.
- ๐ Online Automated Installer (with Local Fallback):
Setup.Install.ps1fetches the latest official releases from 3zwr1/AMD-NR---OptiScaler (GPL-3.0), danielblnc/DLSS-NR-on-AMD (All Rights Reserved), and apex-compute/ANR directly from GitHub at runtime (with local fallback to cachedAMDNR-v*folders if GitHub is unreachable). - ๐ง Full AMD-NR R23+, Mochizuki & Daniel 0.8.0 Backend Support: Automatically resolves the newest official
Alpha0.3.5.8R*release (includingAMDNR-Mochi-*-component.zip), installsMochizukiNrRuntime.dll+dlssnr-amd/+model-tools/dlssnr_extract_model.exe+FSR4Fast/+AMDNR-ModelB/+dlssnr_amd_pass1..3.dll, and supports preparing Daniel 0.8.0 (AMDNR-NeuralHub-080) + extracting Mochi weights (dlssnr-small.bin) whenever a verified localnvngx_dlssnr.dll(310.9.16.0or310.8.0.0) is found or passed via-NrDllPath. WhenAMDNR-NeuralHub-080is absent, ED2 automatically enforcesForceDlssSr=autoandNeuralHubEnabled=falseto prevent startup freezes (AppHangB1). - ๐ Clean Line-by-Line INI Updater (
Set-IniValue): Replaced legacy regex INI edits with a line-by-line parser that updates keys in place without duplicates, preventing trailing= autoentries from overriding[Spoofing] Dxgi = true,[FrameGen] SkipReset = true, or[Menu] OverlayMenu = true. - ๐ก๏ธ Zero Registry Modifications: Invasive Windows TDR registry changes have been completely eliminated. No system restarts required, zero OS-level footprint. (If you previously used an older version that modified Windows TDR keys, run
Restore_TDR_Defaults.batas Administrator to remove them and reboot). - ๐จ Smart ReShade Coexistence: Automatically detects existing ReShade proxies (such as
dxgi.dll) and seamlessly assigns alternative proxy chains (winmm.dllorversion.dll) so you can run ReShade and ED2 together without crashes. - ๐ฆ Non-Destructive Backup & 1-Click Restore: Every installation creates a timestamped backup with
manifest.jsonrecording original file hashes. RunUninstall.ps1at any time to restore your game to its exact original state. - ๐ค Proper Attribution: Full credit and gratitude belong to 3zwr1, Daniel Blanco (
danielblnc), Apex Compute (ANR), Kien (lmxxf), mochizuki0323, and the OptiScaler contributors (see Credits & Upstream Licenses). ED2 acts strictly as an automated installer and configuration wrapper.
|
๐ Grand Theft Auto V Enhanced (Story Mode) DLSS 5 Visuals (AMD-NR R23) + FSR-RR + ANR Frame Generation (FPS & Quality)
โถ Watch on YouTube (DLSS 5 + ANR FG) ยท Earlier Clip |
๐ง Resident Evil Requiem (BIOHAZARD requiem) DLSS 5 Neural Tunneling, Multi-Pass Inference & RE Engine Stability
โถ Watch on YouTube |
|
๐พ Palworld Zero Stutters with The Digital Bottomless Pit Watchdog
โถ Watch on YouTube |
โก Community Verified Titles Final Fantasy XVI, No Man's Sky (Vulkan), and more Rock-solid stability across AMD RDNA 3 and RDNA 4 GPUs. |
- ๐ AMD Neural Rendering Support (
Mochi/lmxxf/Daniel 0.6.0 & 0.8.0): Experience high-end neural reconstruction natively adapted for AMD RDNA 3 & RDNA 4 GPUs. - โก Apex Neural Rendering Frame Generation (
ANR FGIncluded): Automatically installs Apex Compute's ANR FG addon (FGInput=nvngxfg,FGNvngxReplacement=Apex Neural Rendering FG) to intercept native DLSS-G calls and generate interpolated frames via Vulkan compute alongside AMD-NR visuals. - ๐ฎ Universal DLSS-to-DLSS 5 + FSR-RR Pipeline: Intercepts DLSS inputs in DirectX 12 titles, tunnels them through FSR 3.1 / FSR Ray Regeneration (
fsr_rrwithRrBackend=amdnr), and applies neural reconstruction layers (DlssNr) for clean image quality and Ray Reconstruction on AMD GPUs. - ๐ง GPU-Aware Auto-Tune: Detects your AMD RDNA generation at install time and configures optimal
DlssNrparameters. - ๐ง Engine-Specific Tuning: Includes automatic resource barrier fixes for Unreal Engine 5, Streamline/FrameGen isolation + exposure scanning fixes for Capcom RE Engine, and
OverlayMenu=true(Insert) fixes for GTA V Enhanced. - ๐งน Clean 1-Click Uninstaller: Zero leftover files, 100% reversible via
Uninstall.ps1usingmanifest.json.
Envy-Diamond-2 (ED2) orchestrates AMD-NR, OptiScaler, and Apex Neural Rendering FG into one automated setup:
[ Game Engine (DX12 / Vulkan / UE5 / RE Engine) ]
โ
โผ (Game Menu: Select "DLSS", "DLSS Ray Reconstruction" & "DLSS Frame Gen")
[ OptiScaler + AMD-NR Proxy (dxgi.dll / winmm.dll / version.dll) ] <โโ RTX Spoofing
โ
โโโบ [ Visuals: AMD Neural Rendering + Upscaler ]
โ โข Mochi (MochizukiNrRuntime.dll) / lmxxf / Daniel 0.6.0
โ โข FSR 3.1 / FSR Ray Regeneration (fsr_rr, amd_fidelityfx_denoiser_dx12.dll)
โ
โโโบ [ FPS: Apex Neural Rendering FG (opt. -SkipAnrFg) ]
โข OptiScaler\custom\Apex Neural Rendering FG\dlssg\nvngx_dlssg.dll
โข Vulkan compute frame interpolation (FGInput=nvngxfg)
โ
โผ
[ High-Fidelity "DLSS 5" Visuals + Neural Frame Generation on AMD Radeon ]
- Select DLSS + Frame Gen in the game: Choose DLSS (plus Ray Reconstruction and DLSS Frame Generation where supported).
- Visual Neural Enhancement: OptiScaler routes the game's buffers through AMD-NR (
Mochi,lmxxf, orDaniel 0.6.0) and upscales viafsr_rr/ffxwithSkipReset=true. - ANR Frame Generation (FPS): When the game activates native DLSS Frame Generation (
slDLSSGSetOptions), OptiScaler forwards DLSS-G calls directly to Apex Neural Rendering FG, generating smooth interpolated frames on AMD Radeon GPUs (RX 5000 / 6000 / 7000 / 9000 series). (In titles that keep DLSS-GOFFon AMD, ANR FG loads cleanly and stays idle).
When running DLSS Neural Rendering (DLSS-NR) via OptiScaler on AMD hardware (especially while using heavy background software like OBS Studio), the GPU queue can occasionally bloat. A frame that normally takes 30ms might take 190ms to submit.
When this happens, the AMD proxy (dlssnr_amd) initiates a "Host Watchdog" time budget to prevent the game from freezing. The default budget starts at 600ms, but dynamically halves itself on every spike, rapidly plummeting to 87ms.
Because the budget drops to 87ms, any frame that takes 190ms to process is instantly aborted. OptiScaler is forced to present the raw, unprocessed 1080p frame to the screen, which users perceive as a jarring 1-fps micro-stutter without anti-aliasing.
Furthermore, if the frame takes too long, OptiScaler falls into internal "booby traps" (at 0x180019442 and 0x180014750) that completely disable the DLSS Neural Renderer for 1,000 milliseconds, compounding the stutter.
EnvyDynamicPacing.asi is an advanced memory-patching ASI plugin loaded directly by OptiScaler's native plugin loader. Version 1.0.4 completely cures frame pacing breakdowns and raw unscaled frame leaks through surgical assembly interception:
- Root-Cause Flag Interception (
0x76D54): The AMD neural renderer (dlssnr_amd) controls frame acceptance through a master memory flag at RVA0x76D54(>= 0: Success;< 0: Discard & Render Raw). ED2 patches the initialization at0x1061Eto0(Success by default), NOPs the unpatched timeout branch at0xF0D1, overrides error writes at0xF293to0, and continuously clamps0x76D54to0in live RAM every 50ms. - OptiScaler 16ms Pre-SR Bypass: OptiScaler contains an internal 16ms deadline on AMD passes. ED2 dynamically hot-patches RVA
0x14585(JAE->JMP), making OptiScaler time-blind so it never aborts frames before sending them to the neural net. - Engine History Reset Suppression (
SkipReset = true): When severe GPU load spikes occur (200ms+), game engines (such as RE Engine, Final Fantasy XVI, UE5) falsely assume a scene cut/teleport and issue an explicitResetHistorycommand to DLSS, which would normally purge the temporal buffer and flash an un-accumulated raw frame. ED2 suppresses these resets, preserving continuous temporal reconstruction through any spike. - Log Sanity & Epilogue Integrity: Preserves the clean execution jump at RVA
0xF138, completely preventing false-positive host watchdog timeout log flooding.
The Result: The renderer is fully immune to frame cancellation. When extreme GPU load or background apps cause a frame to take 200ms+, the engine simply drops FPS gracefully, maintaining 100% reconstructed neural fidelity without flickering raw images, stutters, or crashes!
- Download the latest release from the Releases tab.
- Extract the package to a folder on your PC.
- Double-click
Install_Game_Admin.bat(or drag and drop your game folder directly onto it!):- Type, paste, or drag your game's executable folder into the window and press Enter:
- RE Engine games (e.g. Resident Evil Requiem / BIOHAZARD requiem):
E:\Steam\steamapps\common\RESIDENT EVIL requiem BIOHAZARD requiem - DirectX 12 games (e.g. FINAL FANTASY XVI):
E:\Steam\steamapps\common\FINAL FANTASY XVI DEMO - Grand Theft Auto V Enhanced (Story Mode):
(Launch with
E:\Steam\steamapps\common\Grand Theft Auto V Enhanced-nobattleyefor offline Story Mode). - Unreal Engine games (e.g. Palworld):
C:\Steam\steamapps\common\Palworld\Pal\Binaries\Win64
- RE Engine games (e.g. Resident Evil Requiem / BIOHAZARD requiem):
- The installer automatically fetches the latest official AMD-NR release from GitHub, checks for ReShade, configures optimal INI parameters (
SkipReset=true), and creates an automated backup.
- Type, paste, or drag your game's executable folder into the window and press Enter:
Double-click Setup.bat (or run .\Setup.GUI.ps1), click Browse..., select the game executable directly (e.g. re9.exe), and click Install.
# Default install (AMD-NR R23+ with Mochizuki + ANR FG; auto-prepares Daniel 0.8.0 & Mochi weights if verified nvngx_dlssnr.dll 310.9.16.0/310.8.0.0 is found)
.\Setup.Install.ps1 -GameDir "E:\Steam\steamapps\common\YourGame"
# Choose NR backend explicitly for testing ('auto', 'mochizuki', 'daniel', 'lmxxf') and pass your own verified nvngx_dlssnr.dll (310.9.16.0 or 310.8.0.0)
.\Setup.Install.ps1 -GameDir "E:\Steam\steamapps\common\YourGame" -NrBackend mochizuki -NrDllPath "D:\DLSS\nvngx_dlssnr.dll"
.\Setup.Install.ps1 -GameDir "E:\Steam\steamapps\common\YourGame" -NrBackend daniel -NrDllPath "D:\DLSS\nvngx_dlssnr.dll"
# Optional: install AMD-NR without ANR FG or skip Daniel 0.8.0 NeuralHub setup
.\Setup.Install.ps1 -GameDir "E:\Steam\steamapps\common\YourGame" -SkipAnrFg -SkipDaniel080Note
Mochizuki & Daniel 0.8.0 Model / DLL Requirements (License-Compliant): Neither ED2 nor AMD-NR redistributes NVIDIA's proprietary nvngx_dlssnr.dll or full NR model weights. Prepare-Daniel080.ps1 and dlssnr_extract_model.exe specifically require an unmodified nvngx_dlssnr.dll matching SHA-256 for 310.9.16.0 (2bc19bc0...) or 310.8.0.0 (e16bcf15...) โ other versions such as GTA V Enhanced's stock 310.8.3.0 (f95feb54...) are rejected cleanly with a warning rather than corrupting your setup.
To completely uninstall ED2 and restore all original files:
.\Uninstall.ps1 -game "E:\Steam\steamapps\common\YourGame"The uninstaller removes all proxies, runtime libraries, and config files installed by ED2. If original game files were backed up during installation, they are restored with full fidelity.
When running ED2 with Capcom RE Engine games that integrate NVIDIA Streamline, several strict engine validation checks must be observed.
Important
Monolithic REFramework is Required: Almost all modern RE Engine games require the latest monolithic build of REFramework (dinput8.dll) to prepare the engine environment and bypass anti-tamper integrity checks.
- Extract only
dinput8.dll(andreframework_revision.txt) into the game folder. - Do NOT extract the VR files (
openvr_api.dll,openxr_loader.dll) unless playing in VR. - Do NOT enable DLSS/Upscaler inside REFramework's menu: Let OptiScaler handle the upscaling pipeline; activating REFramework's internal upscaler will cause hook collisions.
- In-Game Settings: In the graphics menu, select DLSS (and optionally DLSS Ray Reconstruction). Selecting DLSS routes the frame inputs into OptiScaler, through the neural reconstruction layers, and outputs via the FSR 3.1 tunnel (
Dx12Upscaler=ffx). - Hotkey Separation:
- REFramework Overlay: Opens with
Insert(VK_INSERT). - OptiScaler / ED2 Overlay: Opens with
Home(VK_HOME/0x24). This prevents input capture conflicts between both tools.
- REFramework Overlay: Opens with
- GPU Spoofing Target (RTX 3090): RE Engine games use NVIDIA Streamline 2.x. Spoofing an RTX 4090 triggers Streamline to enforce DLSS Frame Generation (
kFeatureDLSS_G), which requires Ada Lovelace hardware and causes an unhandled exception crash (0x9fb347e/ missing DLSS-G context). ED2 automatically configures RTX 3090 spoofing to unlock DLSS Super Resolution and Ray Reconstruction safely. - Proxy Selection: For RE Engine games, installing OptiScaler as
version.dllprovides flawless stability. The installer detects RE Engine automatically and defaults toversion.dll.
- Overlay Menu & FrameGen (
OverlayMenu=true): AMD-NR R22 Quirks disable the overlay menu and Frame Generation in GTA V Enhanced unless[Menu] OverlayMenu=trueis explicitly set.Setup.Install.ps1now enforcesOverlayMenu=true,ShortcutKey=0x2D, andMenuKey=0x2D(Insert) automatically. - LocalAppData INI Precedence: If R22 cannot write to the game folder while running, it saves overlay changes to
%LOCALAPPDATA%\AMDNR\settings\GTA5_Enhanced\OptiScaler.ini, which takes priority on subsequent launches. Make sureOverlayMenu = truestays set there if you edit settings in-game. - DLSS Ray Reconstruction without Daniel 0.8.0 (
fsr_rr):- Setting
Dx12Upscaler = fsr_rr(with[FSR-RR] RrBackend = amdnr) serves in-game DLSS Ray Reconstruction (DLSSD) calls on RDNA 4 via AMD's bundledamd_fidelityfx_denoiser_dx12.dllโ no Daniel 0.8.0 (AMDNR-NeuralHub-080\neuralhub_host.dll) required. - Keeping
Dx12Upscaler = dlssdrequires Daniel 0.8.0 (neuralhub_host.dll), which must match the verified release installed throughAMDNR-Launcher.
- Setting
- ANR Frame Generation (
apex-compute/ANR, Included by Default):- Tested alongside AMD-NR R22 (
FG-V.B15addon; installer pulls the latestanr-fg-*-addon.ziprelease with SHA-256 verification and configuresFGInput=nvngxfg,FGNvngxReplacement=Apex Neural Rendering FG) on AMD Radeon AI PRO R9700 (RDNA 4) in GTA V Enhanced: ANR FG generates interpolated frames via Vulkan compute once the game activates DLSS Frame Generation (slDLSSGSetOptions). - In titles where the game itself keeps DLSS-G
OFFon AMD (e.g., Palworld), ANR FG initializes cleanly but remains idle (Current DLSSG state: OFF).
- Tested alongside AMD-NR R22 (
- Story Mode vs. GTA Online (BattlEye Safety):
- Never launch GTA Online with
dxgi.dll,OptiScaler/,dlssnr*, or any proxy/mod files inside the game directory โ BattlEye blocksdxgi.dlland using DLL injection online risks an account ban. - Launch Story Mode with
-nobattleye(steam://run/3240220//-nobattleye/), and keep a clean vanilla game folder (move all mod/backup/log files out to an external folder) whenever you switch back to GTA Online with BattlEye enabled.
- Never launch GTA Online with
Many DirectX 12 games crash when transitioning from pre-rendered intro videos to the main menu because the engine attempts to resize the DXGI swapchain while Frame Generation proxies are active.
ED2 has been made 100% generic for DX12 by configuring the installer to enforce the following swapchain stability fixes out-of-the-box across all titles:
[FrameGen]
PreserveSwapChain=false
SkipResizeBuffers=false
ModifyBufferState=true
ModifySCIndex=trueThis guarantees the proxy passes ResizeBuffers events seamlessly to the game engine, completely eliminating main menu initialization crashes without requiring manual INI tweaks.
Envy-Diamond-2 (ED2) is strictly an automated online installer and configuration wrapper โ huge thanks to all the upstream developers and open-source contributors whose work makes Neural Rendering and Frame Generation possible on AMD Radeon GPUs. No third-party binaries are bundled in this repository; Setup.Install.ps1 downloads official packages directly from their authors' GitHub releases at runtime under their respective licenses:
| Project & Author | Role in Stack | License & Notes |
|---|---|---|
| Apex Neural Rendering (ANR) by Apex Compute | ANR FG (Vulkan compute neural Frame Generation addon) | Official beta addon (anr-fg-*-addon.zip) fetched directly from apex-compute/ANR with SHA-256 verification (source code coming soon; nr-record source in repo) |
AMDNR (AMD-NR---OptiScaler) by 3zwr1 |
Core AMD Neural Rendering pipeline, Ray Regeneration rules, c32w/fastk2 kernels & OptiScaler R22+ host |
GNU GPL v3 (with additional attribution terms per AMDNR_NOTICE.txt ยง3โ4: AMDNR by 3zwr1) |
| OptiScaler by the OptiScaler Contributors | Base upscaler/FrameGen proxy, Streamline/NGX hooks & in-game overlay | GNU GPL v3 |
DLSS-NR-on-AMD by Daniel Blanco (danielblnc) |
Original DLSS-NR runtime (dlssnr_amd_pass1..3.dll & NeuralHub 0.8.0 host via 3zwr1's Prepare-Daniel080.ps1) |
All Rights Reserved โ never bundled in ED2; fetched only from 3zwr1 / official releases with attribution and user-supplied nvngx_dlssnr.dll |
dlss5-on-amd-9070xt-porting by Kien (lmxxf) |
Open-source lmxxf neural network port, kernels & runtime |
MIT License |
| Mochi by mochizuki0323 | MochizukiNrRuntime.dll (Mochi 0.0.8.2) & public Mochi 0.0.7 model tool |
MIT License |
Dagherbou (OptiScaler_DLSSNR), wilsjo2, Matheus & TheAutomatic (dlss-5-amd-project) |
Foundational pre-SR DLSS-NR code, snapshot bookkeeping & lmxxf C++ runtime glue |
GNU GPL v3 / MIT License |
ReShade by crosire, RenoDX, zgauthier2000 (cyboman) |
Coexistence detection, colour composition maths & shader overrides | BSD-3-Clause / respective licenses |
HelixSR (lonewolf0622), d4r (countervolts), AMD FidelityFX SDK, Intel XeSS & Microsoft DirectX |
Optional ecosystem providers & vendor SDK libraries | HelixSR Freeware / Apache-2.0 / MIT / vendor EULAs |
Caution
This project modifies game binaries and proxy DLLs in memory. Use at your own risk in single-player games only. Do not use in multiplayer games with anti-cheat software, as it will likely result in an account ban.
Tip
Log Location: Environment log files are written to the current working directory by default. Use ENY_LOG_PATH environment variable to specify a custom location.
Tip
GPU Generation: The installer detects your AMD GPU generation and optimizes settings accordingly. Full DLSS-NR support requires RDNA 3 or newer.
If this mod saved your framerate and you love playing with DLSS 5 on AMD hardware, consider buying me a coffee or donating to support ongoing development!
ยกMuchas gracias por tu apoyo! Cada donaciรณn ayuda enormemente a seguir investigando, mejorando el cรณdigo y testeando nuevos juegos.
