# silent14725/amd-nr---optiscaler architecture

> Architecture diagram of the GitHub repository silent14725/amd-nr---optiscaler, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/silent14725/amd-nr---optiscaler
- Repository: https://github.com/silent14725/amd-nr---optiscaler

## Overview

AMDNR combines a Windows launcher that discovers games, installs and maintains OptiScaler payloads, with an injected graphics runtime that exposes neural rendering and related graphics features inside supported games. The principal launcher workflow is game discovery → install or repair → game launch through the proxy → in-game rendering. The README also documents AMDNR Anywhere, frame generation, ray regeneration, and optional model choices. Connections between runtime subsystems are limited where excerpts do not show their callers; dashed links indicate documented capabilities whose implementation wiring was not sampled.

Main entry points: [`Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs) (Launcher interface), [`Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs) (Install coordinator), [`main/AMDNR-source/optiscaler/upscalers`](https://github.com/silent14725/amd-nr---optiscaler/tree/main/main/AMDNR-source/optiscaler/upscalers) (Upscaler integrations), [`Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs`](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs) (Install health checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Launcher"]
  node_mainvm["Launcher interface<br/>[MainViewModel.cs]"]
  node_scan["Game discovery<br/>[LauncherService.cs]"]
  node_scanners["Store scanners<br/>[SteamScanner.cs]"]
  node_art["Game artwork<br/>[Artwork.cs]"]
  node_updater["Launcher updater<br/>[SelfUpdater.cs]"]
end

subgraph group_install["Game installation"]
  node_service["Install coordinator<br/>[LauncherService.cs]"]
  node_installer["Payload installer<br/>[Installer.cs]"]
  node_payload["Payload rules<br/>[PayloadNames.cs]"]
  node_record[("Install records<br/>[InstallRecord.cs]")]
  node_db[("Game list state")]
end

subgraph group_runtime["Injected runtime"]
  node_entry["DLL injection entry<br/>[dllmain.cpp]"]
  node_hook["Graphics API hooks"]
  node_config["Runtime configuration<br/>[Config.h]"]
end

subgraph group_render["Rendering features"]
  node_upscalers["Upscaler integrations"]
  node_neural["AMD neural pass<br/>[AmdPreSr.cpp]"]
  node_interleave["Model interleave<br/>[InterleavePacing.h]"]
  node_framegen["Frame generation"]
  node_rayregen["Ray regeneration"]
end

subgraph group_support["Diagnostics and controls"]
  node_menu["In-game menu<br/>[menu_dx12.cpp]"]
  node_doctor["Install health checks<br/>[Doctor.cs]"]
  node_hash["Payload hashing<br/>[Hashing.cs]"]
end

node_user(("Player"))
node_game["D3D12 game"]

node_user -->|"manages games"| node_mainvm
node_mainvm -->|"requests scan"| node_scan
node_scan -->|"scans stores"| node_scanners
node_mainvm -->|"loads artwork"| node_art
node_mainvm -->|"requests install"| node_service
node_mainvm -->|"checks updates"| node_updater
node_service -->|"runs install"| node_installer
node_service -->|"reads install state"| node_record
node_service -->|"loads manual games"| node_db
node_installer -->|"uses payload rules"| node_payload
node_game -.->|"loads proxy"| node_entry
node_entry -->|"reads configuration"| node_config
node_game -.->|"routes graphics calls"| node_hook
node_hook -.->|"enables features"| node_upscalers
node_upscalers -.->|"supports neural pass"| node_neural
node_neural -.->|"uses interleave"| node_interleave
node_upscalers -.->|"offers frame generation"| node_framegen
node_upscalers -.->|"offers ray regeneration"| node_rayregen
node_user -.->|"configures runtime"| node_menu
node_mainvm -.->|"offers health checks"| node_doctor
node_doctor -->|"checks install record"| node_record
node_doctor -->|"checks file hashes"| node_hash

click node_mainvm "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs"
click node_scan "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs"
click node_scanners "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Scanning/SteamScanner.cs"
click node_art "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Scanning/Artwork.cs"
click node_updater "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.App/Services/SelfUpdater.cs"
click node_service "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs"
click node_installer "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Install/Installer.cs"
click node_payload "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Install/PayloadNames.cs"
click node_record "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Install/InstallRecord.cs"
click node_db "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/State/InstalledGamesDb.cs"
click node_entry "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/dllmain.cpp"
click node_hook "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/hooks/VulkanwDx12_Hooks.cpp"
click node_config "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/Config.h"
click node_upscalers "https://github.com/silent14725/amd-nr---optiscaler/tree/main/main/AMDNR-source/optiscaler/upscalers"
click node_neural "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/dlssnr/amd/AmdPreSr.cpp"
click node_interleave "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/dlssnr/amd/InterleavePacing.h"
click node_framegen "https://github.com/silent14725/amd-nr---optiscaler/tree/main/main/AMDNR-source/optiscaler/framegen"
click node_rayregen "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/upscalers/fsr31/FSRDFeature_Dx12.cpp"
click node_menu "https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/menu/menu_dx12.cpp"
click node_doctor "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs"
click node_hash "https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Hashing.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mainvm,node_scan,node_scanners,node_art,node_updater toneBlue
class node_service,node_installer,node_payload,node_record,node_db toneAmber
class node_entry,node_hook,node_config toneMint
class node_upscalers,node_neural,node_interleave,node_framegen,node_rayregen toneRose
class node_menu,node_doctor,node_hash,node_user,node_game toneIndigo
```

## Components

### Launcher

- [Launcher interface](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs): `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`
- [Game discovery](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`
- [Store scanners](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Scanning/SteamScanner.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Scanning/SteamScanner.cs`
- [Game artwork](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Scanning/Artwork.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Scanning/Artwork.cs`
- [Launcher updater](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.App/Services/SelfUpdater.cs): `Launcher/OpenSource/src/AmdnrLauncher.App/Services/SelfUpdater.cs`

### Game installation

- [Install coordinator](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`
- [Payload installer](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Install/Installer.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Install/Installer.cs`
- [Payload rules](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Install/PayloadNames.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Install/PayloadNames.cs`
- [Install records](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Install/InstallRecord.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Install/InstallRecord.cs`
- [Game list state](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/State/InstalledGamesDb.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/State/InstalledGamesDb.cs`

### Injected runtime

- [DLL injection entry](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/dllmain.cpp): `main/AMDNR-source/optiscaler/dllmain.cpp`
- [Graphics API hooks](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/hooks/VulkanwDx12_Hooks.cpp): `main/AMDNR-source/optiscaler/hooks/VulkanwDx12_Hooks.cpp`
- [Runtime configuration](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/Config.h): `main/AMDNR-source/Config.h`

### Rendering features

- [Upscaler integrations](https://github.com/silent14725/amd-nr---optiscaler/tree/main/main/AMDNR-source/optiscaler/upscalers): `main/AMDNR-source/optiscaler/upscalers`
- [AMD neural pass](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/dlssnr/amd/AmdPreSr.cpp): `main/AMDNR-source/optiscaler/dlssnr/amd/AmdPreSr.cpp`
- [Model interleave](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/optiscaler/dlssnr/amd/InterleavePacing.h): `main/AMDNR-source/optiscaler/dlssnr/amd/InterleavePacing.h`
- [Frame generation](https://github.com/silent14725/amd-nr---optiscaler/tree/main/main/AMDNR-source/optiscaler/framegen): `main/AMDNR-source/optiscaler/framegen`
- [Ray regeneration](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/upscalers/fsr31/FSRDFeature_Dx12.cpp): `main/AMDNR-source/upscalers/fsr31/FSRDFeature_Dx12.cpp`

### Diagnostics and controls

- [In-game menu](https://github.com/silent14725/amd-nr---optiscaler/blob/main/main/AMDNR-source/menu/menu_dx12.cpp): `main/AMDNR-source/menu/menu_dx12.cpp`
- [Install health checks](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs`
- [Payload hashing](https://github.com/silent14725/amd-nr---optiscaler/blob/main/Launcher/OpenSource/src/AmdnrLauncher.Core/Hashing.cs): `Launcher/OpenSource/src/AmdnrLauncher.Core/Hashing.cs`

### Other components

- **Player**
- **D3D12 game**

## Connections

- Player → Launcher interface: manages games (evidence: `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`)
- Launcher interface → Game discovery: requests scan (evidence: `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`)
- Game discovery → Store scanners: scans stores (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`)
- Launcher interface → Game artwork: loads artwork (evidence: `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`)
- Launcher interface → Install coordinator: requests install (evidence: `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`)
- Launcher interface → Launcher updater: checks updates (evidence: `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`)
- Install coordinator → Payload installer: runs install (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`)
- Install coordinator → Install records: reads install state (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`)
- Install coordinator → Game list state: loads manual games (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/LauncherService.cs`)
- Payload installer → Payload rules: uses payload rules (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/Install/Installer.cs`)
- D3D12 game → DLL injection entry: loads proxy (evidence: `README.md`)
- DLL injection entry → Runtime configuration: reads configuration (evidence: `main/AMDNR-source/optiscaler/dllmain.cpp`)
- D3D12 game → Graphics API hooks: routes graphics calls (evidence: `README.md`)
- Graphics API hooks → Upscaler integrations: enables features
- Upscaler integrations → AMD neural pass: supports neural pass (evidence: `README.md`)
- AMD neural pass → Model interleave: uses interleave (evidence: `README.md`)
- Upscaler integrations → Frame generation: offers frame generation (evidence: `README.md`)
- Upscaler integrations → Ray regeneration: offers ray regeneration (evidence: `README.md`)
- Player → In-game menu: configures runtime (evidence: `README.md`)
- Launcher interface → Install health checks: offers health checks (evidence: `Launcher/OpenSource/src/AmdnrLauncher.App/ViewModels/MainViewModel.cs`)
- Install health checks → Install records: checks install record (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs`)
- Install health checks → Payload hashing: checks file hashes (evidence: `Launcher/OpenSource/src/AmdnrLauncher.Core/Diagnostics/Doctor.cs`)
