How janblade/optiscaler-f5-dlssnr-multipass works
OptiScaler is a Windows game mod centered here on NVIDIA DLSS Neural Rendering: it loads into a game, intercepts graphics and upscaler interfaces, accepts settings through an in-game menu, and applies configurable neural-rendering passes. The tree also shows frame-generation, latency, Vulkan/DX12 bridging, and plugin capabilities. The workflow and some feature links are documented or visible in the excerpts; unsampled implementation details are left unconnected rather than inferred.
Main entry points: dllmain.cpp DLL entry and loading · DlssNrFeature_Dx12.h DLSS NR DX12 feature · Config.h Settings · VulkanwDx12_Hooks.cpp Graphics and API hooks
Components 22
Injection and configuration
- DLL entry and loading
OptiScaler/dllmain.cpp - Settings
OptiScaler/Config.h - Runtime state
OptiScaler/State.h - In-game menu
OptiScaler/menu/menu_common.cpp
Graphics interception
- Graphics and API hooks
OptiScaler/hooks/VulkanwDx12_Hooks.cpp - DX12 resource tracking
OptiScaler/resource_tracking/ResTrack_dx12.cpp - FSR2 input adapter
OptiScaler/inputs/FSR2_Dx12.cpp - Upscaler adapters
OptiScaler/upscalers - Native frame pipeline
OptiScaler/native
Neural rendering
- Neural settings UI
OptiScaler/dlssnr/DlssNr_Menu.cpp - DLSS NR DX12 feature
OptiScaler/dlssnr/DlssNrFeature_Dx12.h - DLSS NR Vulkan feature
OptiScaler/dlssnr/DlssNrFeature_Vk.cpp - Temporal detail reuse
OptiScaler/dlssnr/DlssNrDetailReuseHost.h - Colour LUT chain
OptiScaler/dlssnr/DlssNr_LutChain.h - Pass profiles
OptiScaler/dlssnr/DlssNr_Profiles.h
Game-facing features
- Frame generation
OptiScaler/framegen - Low-latency inputs
OptiScaler/low_latency/input/input_common.cpp - Plugin registry
OptiScaler/plugins/PluginRegistry.h
Runtime support
- Shared runtime utilities
OptiScaler/SysUtils.h - Logging
OptiScaler/Logger.h - Latency configuration rules
OptiScaler/native/NativeLowLatencyRule.h
Other components
- Game
Connections 20
- Game → DLL entry and loading: loads mod
OptiScaler/dllmain.cpp - DLL entry and loading → Settings: reads settings
OptiScaler/dllmain.cpp - DLL entry and loading → Graphics and API hooks: installs hooks
OptiScaler/dllmain.cpp - DLL entry and loading → Plugin registry: loads plugins
OptiScaler/dllmain.cpp - Game → FSR2 input adapter: dispatches upscaling
- FSR2 input adapter → DLSS NR DX12 feature: adapts dispatch
OptiScaler/inputs/FSR2_Dx12.cpp - Graphics and API hooks → DX12 resource tracking: tracks resources
- Graphics and API hooks → DLSS NR Vulkan feature: intercepts Vulkan
OptiScaler/hooks/VulkanwDx12_Hooks.cpp - DLSS NR DX12 feature → Temporal detail reuse: reuses detail
- Neural settings UI → Settings: edits settings
OptiScaler/dlssnr/DlssNr_Menu.cpp - In-game menu → Neural settings UI: opens controls
- Settings → Runtime state: configures runtime
OptiScaler/Config.h - DLSS NR DX12 feature → Pass profiles: uses profiles
- DLSS NR DX12 feature → Colour LUT chain: applies colour
- Game → Frame generation: requests frame generation
- Game → Low-latency inputs: requests latency control
- DLL entry and loading → Shared runtime utilities: uses runtime helpers
OptiScaler/dllmain.cpp - DLL entry and loading → Logging: logs startup
OptiScaler/dllmain.cpp - Settings → Latency configuration rules: includes rules
OptiScaler/Config.h - Native frame pipeline → DLSS NR DX12 feature: supports native mode