# jyu041/dlss-rtxsr-upscaler architecture

> Architecture diagram of the GitHub repository jyu041/dlss-rtxsr-upscaler, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jyu041/dlss-rtxsr-upscaler
- Repository: https://github.com/jyu041/dlss-rtxsr-upscaler

## Overview

NVIDIA Video Enhancer is a local Windows application for processing video with RTX VSR, DLSS SR, DLSS Frame Generation, or experimental DLSS 5. Its main workflow runs from the localhost UI through mode-specific enhancement and video processing to an NVENC output, with previews and progress available in the UI. Configuration and diagnostics also manage runtime readiness, presets, and repair actions. The README documents these capabilities; sampled excerpts clarify selected UI, worker, and runtime interactions, but not every backend’s internal call chain.

Main entry points: [`src/ui/app.py`](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/ui/app.py) (Local UI), [`src/backends/rtx_vsr.py`](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/rtx_vsr.py) (RTX VSR), [`src/backends/dlss_sr.py`](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss_sr.py) (DLSS SR), [`src/backends/dlss5.py`](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5.py) (DLSS 5)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_ui["Local UI<br/>[app.py]"]
  node_presets[("Presets<br/>[user_presets.py]")]
  node_diagnostics["Diagnostics<br/>[diagnostics.py]"]
end

subgraph group_enhance["Enhancement modes"]
  node_vsr["RTX VSR<br/>[rtx_vsr.py]"]
  node_vsrworker["VSR worker<br/>[rtx_vsr_worker.py]"]
  node_dlsssr["DLSS SR<br/>[dlss_sr.py]"]
  node_srhost["DLSS SR host<br/>[main.cpp]"]
  node_dlssg["DLSS Frame Generation<br/>[dlssg.py]"]
  node_dlssgworker["DLSS-G worker client<br/>[dlssg_worker.py]"]
  node_dlss5["DLSS 5<br/>[dlss5.py]"]
  node_v10client["v10 host client"]
  node_v10protocol["v10 protocol"]
end

subgraph group_video["Video processing"]
  node_stream["Frame streaming<br/>[stream.py]"]
  node_encoder["NVENC output<br/>[nvenc.py]"]
  node_media["Media probing<br/>[media_info.py]"]
  node_paths["Job paths<br/>[paths.py]"]
  node_progress["Progress<br/>[progress.py]"]
end

subgraph group_runtime["Runtime management"]
  node_runtime["Runtime lifecycle<br/>[core.py]"]
  node_profiles["DLSS-G profiles<br/>[dlssg_profiles.py]"]
  node_attestation[("Compatibility attestation")]
  node_readiness["DLSS-G readiness<br/>[dlssg_readiness.py]"]
end

node_user(("Local user"))
node_externalgpu{{"NVIDIA GPU"}}

node_user -->|"uses"| node_ui
node_ui -->|"selects mode"| node_vsr
node_ui -->|"selects mode"| node_dlsssr
node_ui -->|"selects mode"| node_dlssg
node_ui -->|"selects mode"| node_dlss5
node_ui -.->|"configures"| node_presets
node_ui -->|"shows"| node_diagnostics
node_ui -.->|"probes media"| node_media
node_ui -.->|"stores job files"| node_paths
node_ui -.->|"reports progress"| node_progress
node_vsr -.->|"uses worker"| node_vsrworker
node_vsr -->|"processes video"| node_externalgpu
node_dlsssr -.->|"uses host"| node_srhost
node_dlsssr -->|"upscales"| node_externalgpu
node_dlssg -->|"sends frames"| node_dlssgworker
node_dlssgworker -->|"generates frames"| node_externalgpu
node_dlss5 -.->|"uses preferred runtime"| node_v10client
node_v10client -->|"encodes messages"| node_v10protocol
node_dlss5 -->|"renders frames"| node_externalgpu
node_ui -->|"renders video"| node_stream
node_stream -->|"encodes output"| node_encoder
node_runtime -->|"checks profile"| node_profiles
node_runtime -->|"checks attestation"| node_attestation
node_readiness -->|"resolves profile"| node_profiles
node_readiness -->|"checks compatibility"| node_attestation
node_ui -->|"manages runtimes"| node_runtime
node_ui -->|"checks readiness"| node_readiness

click node_ui "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/ui/app.py"
click node_presets "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/user_presets.py"
click node_diagnostics "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/diagnostics.py"
click node_vsr "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/rtx_vsr.py"
click node_vsrworker "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/video/rtx_vsr_worker.py"
click node_dlsssr "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss_sr.py"
click node_srhost "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/native/dlss_sr_host/main.cpp"
click node_dlssg "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlssg.py"
click node_dlssgworker "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlssg_worker.py"
click node_dlss5 "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5.py"
click node_v10client "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5_v10_client.py"
click node_v10protocol "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5_v10_protocol.py"
click node_stream "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/video/stream.py"
click node_encoder "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/video/nvenc.py"
click node_media "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/media_info.py"
click node_paths "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/paths.py"
click node_progress "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/progress.py"
click node_runtime "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/runtime_manager/core.py"
click node_profiles "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/dlssg_profiles.py"
click node_attestation "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/dlssg_attestation.py"
click node_readiness "https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/dlssg_readiness.py"

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_ui,node_presets,node_diagnostics,node_user toneBlue
class node_vsr,node_vsrworker,node_dlsssr,node_srhost,node_dlssg,node_dlssgworker,node_dlss5,node_v10client,node_v10protocol toneAmber
class node_stream,node_encoder,node_media,node_paths,node_progress toneMint
class node_runtime,node_profiles,node_attestation,node_readiness toneRose
class node_externalgpu toneIndigo
```

## Components

### Application

- [Local UI](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/ui/app.py): `src/ui/app.py`
- [Presets](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/user_presets.py): `src/core/user_presets.py`
- [Diagnostics](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/diagnostics.py): `src/core/diagnostics.py`

### Enhancement modes

- [RTX VSR](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/rtx_vsr.py): `src/backends/rtx_vsr.py`
- [VSR worker](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/video/rtx_vsr_worker.py): `src/video/rtx_vsr_worker.py`
- [DLSS SR](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss_sr.py): `src/backends/dlss_sr.py`
- [DLSS SR host](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/native/dlss_sr_host/main.cpp): `native/dlss_sr_host/main.cpp`
- [DLSS Frame Generation](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlssg.py): `src/backends/dlssg.py`
- [DLSS-G worker client](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlssg_worker.py): `src/backends/dlssg_worker.py`
- [DLSS 5](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5.py): `src/backends/dlss5.py`
- [v10 host client](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5_v10_client.py): `src/backends/dlss5_v10_client.py`
- [v10 protocol](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/backends/dlss5_v10_protocol.py): `src/backends/dlss5_v10_protocol.py`

### Video processing

- [Frame streaming](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/video/stream.py): `src/video/stream.py`
- [NVENC output](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/video/nvenc.py): `src/video/nvenc.py`
- [Media probing](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/media_info.py): `src/core/media_info.py`
- [Job paths](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/paths.py): `src/core/paths.py`
- [Progress](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/progress.py): `src/core/progress.py`

### Runtime management

- [Runtime lifecycle](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/runtime_manager/core.py): `src/runtime_manager/core.py`
- [DLSS-G profiles](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/dlssg_profiles.py): `src/core/dlssg_profiles.py`
- [Compatibility attestation](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/dlssg_attestation.py): `src/core/dlssg_attestation.py`
- [DLSS-G readiness](https://github.com/jyu041/dlss-rtxsr-upscaler/blob/main/src/core/dlssg_readiness.py): `src/core/dlssg_readiness.py`

### Other components

- **Local user**
- **NVIDIA GPU**

## Connections

- Local user → Local UI: uses
- Local UI → RTX VSR: selects mode (evidence: `src/ui/app.py`)
- Local UI → DLSS SR: selects mode (evidence: `src/ui/app.py`)
- Local UI → DLSS Frame Generation: selects mode (evidence: `src/ui/app.py`)
- Local UI → DLSS 5: selects mode (evidence: `src/ui/app.py`)
- Local UI → Presets: configures (evidence: `src/ui/app.py`)
- Local UI → Diagnostics: shows (evidence: `src/ui/app.py`)
- Local UI → Media probing: probes media (evidence: `src/ui/app.py`)
- Local UI → Job paths: stores job files (evidence: `src/ui/app.py`)
- Local UI → Progress: reports progress (evidence: `src/ui/app.py`)
- RTX VSR → VSR worker: uses worker
- RTX VSR → NVIDIA GPU: processes video
- DLSS SR → DLSS SR host: uses host
- DLSS SR → NVIDIA GPU: upscales
- DLSS Frame Generation → DLSS-G worker client: sends frames (evidence: `src/video/dlssg.py`)
- DLSS-G worker client → NVIDIA GPU: generates frames
- DLSS 5 → v10 host client: uses preferred runtime
- v10 host client → v10 protocol: encodes messages (evidence: `src/backends/dlss5_v10_client.py`)
- DLSS 5 → NVIDIA GPU: renders frames
- Local UI → Frame streaming: renders video (evidence: `src/ui/app.py`)
- Frame streaming → NVENC output: encodes output (evidence: `src/video/stream.py`)
- Runtime lifecycle → DLSS-G profiles: checks profile (evidence: `src/runtime_manager/core.py`)
- Runtime lifecycle → Compatibility attestation: checks attestation (evidence: `src/runtime_manager/core.py`)
- DLSS-G readiness → DLSS-G profiles: resolves profile (evidence: `src/core/dlssg_readiness.py`)
- DLSS-G readiness → Compatibility attestation: checks compatibility (evidence: `src/core/dlssg_readiness.py`)
- Local UI → Runtime lifecycle: manages runtimes
- Local UI → DLSS-G readiness: checks readiness (evidence: `src/ui/app.py`)
