Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

refactor(engine): one place builds the graph description

Veyra Goal Agent153084440486
diff --git a/docs/UI_MIGRATION_EXECUTION_2026-09-25.md b/docs/UI_MIGRATION_EXECUTION_2026-09-25.md
index 349b9ec6..192721a4 100644
--- a/docs/UI_MIGRATION_EXECUTION_2026-09-25.md
+++ b/docs/UI_MIGRATION_EXECUTION_2026-09-25.md
@@ -16,16 +16,23 @@
| S0.2 | 构建与现有测试基线 | 完成 | `checkpoint/ui-mig-s0` | 600/600 目标构建通过;交付门槛 PASS |
| S0.3 | 抓帧哈希基线 | 完成 | `checkpoint/ui-mig-s0` | 13 种配置 × 24 帧,两次运行完全一致 |
| S0.4 | 性能 / 延迟基线 | 完成 | `checkpoint/ui-mig-s0` | 4 种播放场景 |
+| S1.1 | 合并图描述构建 | 完成 | `checkpoint/ui-mig-s1.1` | 5 处合并为 `describeStages()`;13 项哈希一致 |
## 发现并修复的 bug
| # | 发现于 | 问题 | 修复 |
|---|---|---|---|
| B1 | S0.2 | `veyra_live_timing_tests` 的“输出上限仍会跳过候选帧”断言一直失败:09-22 把输出上限改到独立时间网格(`rateSubmitted`)后,测试只调用了 `submitted()`,测的是旧行为。产品逻辑正确,测试过期 | 测试补上 `rateSubmitted()` |
+| B3 | S1.1 | 非 NVIDIA 显卡上,`initializePreview` 的能力归一化分支把 `enableSr` 直接写成 false,AMD FSR 超分(唯一的跨厂商超分)在预览里永远不生效,而 `disableUnsupportedNvidiaEffects` 是特意保留它的。导出路径没有这个问题 | 5 处描述合并进 `describeStages()`,两边同一套规则 |
| B2 | S0.2 | `veyra_quality_probe` 用 ANSI `argv` 转宽字符,输出目录含中文(`E:\项目`)时写图失败,交付门槛因此失败;门槛脚本原先用相对路径绕开,但源码在 C:、日志在 E: 时相对路径无法跨盘 | 探针改为从 UTF-16 命令行读参数;门槛改传绝对路径 |
## 日志
+### S1.1(2026-09-25)合并图描述构建
+- 新增 `include/veyra/engine/GraphDescription.h`:`StageRequest` + `describeStages()`,把原先分散在 `EngineController.cpp`(初始打开、能力归一化、初始化失败降级、设置重建、串流尺寸切换、增强故障恢复共 6 处)和 `VideoExportJob.cpp` 的 `EnhanceGraphDesc` 填充合并成一处;尺寸策略、NR/超导顺序、厂商能力判断、参数下发全部由它决定。
+- 各处的差异是历史遗留,不是有意区分:导出路径用 `Native` 尺寸、禁用 NR 先行、不走呈现端补帧,这些用 `StageRequest::exportJob` 表达;图片用 `stillImage` 表达。
+- 验证:13 项抓帧哈希全部一致(0 差异);延迟对比无退化(1080p NR 提交 P95 0.92→0.99 ms、GPU 就绪 8.09→8.42 ms,均在本机噪声内,帧率与跳帧计数不变);交付门槛另行复跑。
+
### S0(2026-09-25)
- 构建:`scripts/build-ui-migration.ps1`,沿用 1.4.4 发布配置,输出 `E:\项目\Veyra\build\ui-qml-migration-20260925`。`.cmd` 按 ANSI 解析,中文路径由 PowerShell 用环境变量传入。
- 测试目录:`scripts/stage-ui-migration.ps1` 复制构建产物到 `E:\项目\Veyra\tests\ui-qml-migration-20260925\app`。运行组件用 junction 指向 1.4.4 发布包(7 个文件 SHA-256 与 manifest 全部一致),`runtime_local` 为测试专用新目录,不碰用户设置。
diff --git a/include/veyra/engine/GraphDescription.h b/include/veyra/engine/GraphDescription.h
new file mode 100644
index 00000000..c5f24ddc
--- /dev/null
+++ b/include/veyra/engine/GraphDescription.h
@@ -0,0 +1,54 @@
+#pragma once
+#include "veyra/engine/EnhancementSettings.h"
+#include "veyra/pipeline/EnhanceGraph.h"
+#include "veyra/pipeline/ResolutionPlan.h"
+
+namespace veyra::engine {
+// Stage selection for one graph build. Preview and export used to fill the
+// EnhanceGraphDesc in five separate places with slightly different formulas;
+// every build now goes through describeStages() so the rules live in one spot.
+struct StageRequest {
+ bool nr=false,sr=false,fg=false;
+ uint32_t fgMultiplier=2;
+ uint32_t width=0,height=0;
+ bool stillImage=false; // image preview/processing: no NR-first order
+ bool exportJob=false; // offline export: native NR size, no present-sink FG, no NR-first order
+ bool nvidiaAdapter=true;
+};
+
+// Fills the stage, size and parameter fields of `desc` from `settings`.
+// Source-format fields (hdrInput, rgbInput, packedInput, ...), hdrOutput and
+// host hooks are left untouched: the caller owns those.
+inline pipeline::ResolutionPlan describeStages(const StageRequest& request,const EnhancementSettings& settings,
+ pipeline::EnhanceGraphDesc& desc) {
+ const bool lowLatency=!request.exportJob&&settings.lowLatency&&request.nr;
+ const auto policy=request.exportJob?pipeline::NrSizePolicy::Native:settings.nrPolicy;
+ const auto plan=pipeline::ResolutionPlan::make({request.width,request.height},request.sr,policy,
+ request.stillImage||request.exportJob,settings.revision,settings.srTarget,lowLatency);
+ desc.sourceWidth=request.width;desc.sourceHeight=request.height;
+ desc.workWidth=plan.base.width;desc.workHeight=plan.base.height;
+ desc.nrWidth=plan.nr.width;desc.nrHeight=plan.nr.height;
+ desc.flowWidth=plan.flow.width;desc.flowHeight=plan.flow.height;
+ desc.enableSr=plan.srApplied&&(request.nvidiaAdapter||settings.videoSrQuality==kVideoSrFsr);
+ desc.enableNr=request.nr&&request.nvidiaAdapter;
+ desc.nrBeforeSr=!request.stillImage&&!request.exportJob&&lowLatency&&desc.enableNr&&desc.enableSr;
+ desc.enableNvofStandalone=desc.enableNr;
+ desc.enableFg=request.fg&&(request.nvidiaAdapter||(!request.exportJob&&presentSinkFrameGeneration(settings.frameGenerationBackend)));
+ desc.fgMultiplier=request.fgMultiplier;
+ desc.videoSrQuality=settings.videoSrQuality;
+ desc.nrRuntime=settings.nrRuntime;
+ desc.nrTemporal=settings.nrTemporal;
+ desc.frameGenerationBackend=settings.frameGenerationBackend;
+ desc.model=settings.model;
+ desc.residual=settings.residual;
+ desc.protection=settings.protection;
+ desc.color=settings.color;
+ desc.videoHdr=settings.videoHdr;
+ desc.settingsRevision=settings.revision;
+ desc.flowQuality=settings.flow;
+ desc.contentRate=settings.content;
+ desc.opticalFlowBackend=settings.opticalFlowBackend;
+ desc.amdFlowHalfResolution=settings.amdFlowHalfResolution;
+ return plan;
+}
+}
diff --git a/src/engine/EngineController.cpp b/src/engine/EngineController.cpp
index 121d9804..111858c8 100644
--- a/src/engine/EngineController.cpp
+++ b/src/engine/EngineController.cpp
@@ -34,6 +34,7 @@
#include "veyra/gfx/D3D12DeviceContext.h"
#include "veyra/gfx/CommandSlotRing.h"
#include "veyra/RuntimePaths.h"
+#include "veyra/engine/GraphDescription.h"
#include <avrt.h>
#include <chrono>
#include <filesystem>
@@ -320,14 +321,14 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
gd.captureBitDepth=activeSource->info().color.pixelFormat==pipeline::SourcePixelFormat::P010?10:activeSource->info().color.pixelFormat==pipeline::SourcePixelFormat::P016?16:8;
gd.yuy2Input=isCapture&&activeSource->info().color.pixelFormat==pipeline::SourcePixelFormat::Yuy2;gd.stillImage=isImage;
gd.packedInput=isCapture?pipeline::packedInputCode(activeSource->info().color.pixelFormat):0;
- const auto resolution=pipeline::ResolutionPlan::make({width,height},options.sr,options.snapshot().nrPolicy,isImage,options.settings.revision,options.settings.srTarget,options.settings.lowLatency&&options.nr);
- gd.workWidth=resolution.base.width;gd.workHeight=resolution.base.height;gd.nrWidth=resolution.nr.width;gd.nrHeight=resolution.nr.height;gd.flowWidth=resolution.flow.width;gd.flowHeight=resolution.flow.height;
const bool nvidiaAdapter=ctx.adapter().isNvidia;
+ auto stageRequest=[&](const PlayerOptions& o){
+ StageRequest r;r.nr=o.nr;r.sr=o.sr;r.fg=o.fg;r.fgMultiplier=o.fgMultiplier;
+ r.width=width;r.height=height;r.stillImage=isImage;r.nvidiaAdapter=nvidiaAdapter;return r;
+ };
+ describeStages(stageRequest(options),options.snapshot(),gd);
const bool xessFg=presentSinkFrameGeneration(options.settings.frameGenerationBackend);
- gd.nrBeforeSr=!isImage&&options.settings.lowLatency&&options.nr&&resolution.srApplied;gd.enableSr=resolution.srApplied&&(nvidiaAdapter||options.settings.videoSrQuality==kVideoSrFsr);gd.videoSrQuality=options.settings.videoSrQuality;gd.enableNr=options.nr&&nvidiaAdapter;gd.nrRuntime=options.settings.nrRuntime;gd.nrTemporal=options.settings.nrTemporal;gd.enableFg=options.fg&&(nvidiaAdapter||xessFg);gd.fgMultiplier=options.fgMultiplier;gd.frameGenerationBackend=options.settings.frameGenerationBackend;gd.enableNvofStandalone=gd.enableNr;
- gd.noFeatures=false;gd.model=options.settings.model;gd.residual=options.settings.residual;gd.protection=options.settings.protection;gd.color=options.settings.color;gd.settingsRevision=options.settings.revision;gd.flowQuality=options.settings.flow;gd.contentRate=options.settings.content;
- gd.opticalFlowBackend=options.settings.opticalFlowBackend;gd.amdFlowHalfResolution=options.settings.amdFlowHalfResolution;
- gd.videoHdr=options.settings.videoHdr;
+ gd.noFeatures=false;
gd.hdrOutput=options.settings.useHdrPreview(gd.hdrInput,displayHdrActive());
veyra::log::info("display-color",std::format("hdrInput={} hdrOutput={} forceSdrPreview={}",gd.hdrInput,gd.hdrOutput,options.settings.forceSdrPreview));
gd.runtimeAbsPath=runtime::localRuntimeDirectory().wstring();
@@ -338,9 +339,9 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
auto supported=selected.snapshot();
if(disableUnsupportedNvidiaEffects(supported,nvidiaAdapter)){
selected=PlayerOptions::from(supported);
- const auto plan=pipeline::ResolutionPlan::make({width,height},false,supported.nrPolicy,isImage,supported.revision,supported.srTarget,false);
- desc.workWidth=plan.base.width;desc.workHeight=plan.base.height;desc.nrWidth=plan.nr.width;desc.nrHeight=plan.nr.height;desc.flowWidth=plan.flow.width;desc.flowHeight=plan.flow.height;
- desc.enableNr=desc.enableSr=desc.enableNvofStandalone=desc.nrBeforeSr=false;desc.enableFg=selected.fg;desc.fgMultiplier=selected.fgMultiplier;
+ // Same stage rules as every other build: AMD FSR upscaling
+ // survives the normalization, it used to be dropped here.
+ describeStages(stageRequest(selected),selected.snapshot(),desc);
backendRecoveryWarning=L"当前 GPU 不支持 NVIDIA 增强;NR、超分及 DLSS 已关闭,XeSS选择保留";
veyra::log::warn("capability","normalized requested NVIDIA effects before graph creation; applied settings reflect actual disabled stages");
}
@@ -403,10 +404,7 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
}
if(!ring.drainQueue()||!ring.discardRecording())return false;
presenter.close();graph.shutdown();selected=PlayerOptions::from(reduced);
- const auto plan=pipeline::ResolutionPlan::make({width,height},selected.sr,reduced.nrPolicy,isImage,reduced.revision,reduced.srTarget,reduced.lowLatency&&selected.nr);
- desc.workWidth=plan.base.width;desc.workHeight=plan.base.height;desc.nrWidth=plan.nr.width;desc.nrHeight=plan.nr.height;desc.flowWidth=plan.flow.width;desc.flowHeight=plan.flow.height;
- desc.enableNr=selected.nr&&nvidiaAdapter;desc.enableSr=plan.srApplied&&(nvidiaAdapter||selected.settings.videoSrQuality==kVideoSrFsr);desc.enableFg=selected.fg&&(nvidiaAdapter||presentSinkFrameGeneration(reduced.frameGenerationBackend));desc.fgMultiplier=selected.fgMultiplier;
- desc.enableNvofStandalone=desc.enableNr;desc.nrBeforeSr=!isImage&&reduced.lowLatency&&selected.nr&&desc.enableSr;
+ describeStages(stageRequest(selected),selected.snapshot(),desc);
}
return false;
};
@@ -843,14 +841,9 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
if(requested.revision==previous.revision){finishReset(diagnostics::ResetOutcome::Cancelled);continue;}
resetRecord->settingsRevision=requested.revision;
auto next=PlayerOptions::from(requested);auto nextDesc=gd;
- const auto plan=pipeline::ResolutionPlan::make({width,height},next.sr,requested.nrPolicy,isImage,requested.revision,requested.srTarget,requested.lowLatency&&requested.nr);
- nextDesc.workWidth=plan.base.width;nextDesc.workHeight=plan.base.height;nextDesc.nrWidth=plan.nr.width;nextDesc.nrHeight=plan.nr.height;nextDesc.flowWidth=plan.flow.width;nextDesc.flowHeight=plan.flow.height;
const bool nvidiaAdapter=ctx.adapter().isNvidia;
const bool xessFg=presentSinkFrameGeneration(next.settings.frameGenerationBackend);
- nextDesc.nrBeforeSr=!isImage&&requested.lowLatency&&requested.nr&&plan.srApplied;nextDesc.enableSr=plan.srApplied&&(nvidiaAdapter||next.settings.videoSrQuality==kVideoSrFsr);nextDesc.videoSrQuality=next.settings.videoSrQuality;nextDesc.enableNr=next.nr&&nvidiaAdapter;nextDesc.nrRuntime=next.settings.nrRuntime;nextDesc.enableFg=next.fg&&(nvidiaAdapter||xessFg);nextDesc.fgMultiplier=next.fgMultiplier;nextDesc.frameGenerationBackend=next.settings.frameGenerationBackend;nextDesc.enableNvofStandalone=nextDesc.enableNr;
- nextDesc.model=requested.model;nextDesc.nrTemporal=requested.nrTemporal;nextDesc.residual=requested.residual;nextDesc.protection=requested.protection;nextDesc.color=requested.color;nextDesc.settingsRevision=requested.revision;nextDesc.flowQuality=requested.flow;nextDesc.contentRate=requested.content;
- nextDesc.opticalFlowBackend=requested.opticalFlowBackend;nextDesc.amdFlowHalfResolution=requested.amdFlowHalfResolution;
- nextDesc.videoHdr=requested.videoHdr;
+ describeStages(stageRequest(next),next.snapshot(),nextDesc);
nextDesc.hdrOutput=requested.useHdrPreview(nextDesc.hdrInput,displayHdrActive());
const bool rebuild=gd.videoHdr.enabled!=nextDesc.videoHdr.enabled||gd.nrTemporal!=nextDesc.nrTemporal||(!nvidiaAdapter&&(next.nr||next.sr||(next.fg&&!xessFg)))||gd.hdrOutput!=nextDesc.hdrOutput||previous.captureCompatible!=requested.captureCompatible||gd.nrRuntime!=nextDesc.nrRuntime||gd.opticalFlowBackend!=nextDesc.opticalFlowBackend||gd.amdFlowHalfResolution!=nextDesc.amdFlowHalfResolution||gd.enableNr!=nextDesc.enableNr||gd.color.enabled!=nextDesc.color.enabled||gd.color.lutNameString()!=nextDesc.color.lutNameString()||gd.enableFg!=nextDesc.enableFg||gd.frameGenerationBackend!=nextDesc.frameGenerationBackend||gd.fgMultiplier!=nextDesc.fgMultiplier||gd.videoSrQuality!=nextDesc.videoSrQuality||gd.flowQuality!=nextDesc.flowQuality||gd.nrBeforeSr!=nextDesc.nrBeforeSr||gd.workWidth!=nextDesc.workWidth||gd.workHeight!=nextDesc.workHeight||gd.nrWidth!=nextDesc.nrWidth||gd.nrHeight!=nextDesc.nrHeight||gd.flowWidth!=nextDesc.flowWidth||gd.flowHeight!=nextDesc.flowHeight;
bool accepted=ring.drainQueue();out={};hasOutput=false;
@@ -1021,9 +1014,8 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
if((isRemote||isScreen)&&frame&&(uint32_t(frame->width)!=width||uint32_t(frame->height)!=height||(isScreen&&gd.hdrInput!=activeSource->info().color.isHdrPath()))){
drainLivePresentation();if(!ring.drainQueue()){status(L"串流尺寸切换排空失败",true);break;}
width=uint32_t(frame->width);height=uint32_t(frame->height);
- auto plan=pipeline::ResolutionPlan::make({width,height},options.sr,options.settings.nrPolicy,false,options.settings.revision,options.settings.srTarget,options.settings.lowLatency&&options.nr);
- gd.nrBeforeSr=options.settings.lowLatency&&options.nr&&plan.srApplied;gd.enableSr=plan.srApplied&&(ctx.adapter().isNvidia||options.settings.videoSrQuality==kVideoSrFsr);
- gd.sourceWidth=width;gd.sourceHeight=height;gd.hdrInput=!isImage&&activeSource->info().color.isHdrPath();gd.hdrOutput=options.settings.useHdrPreview(gd.hdrInput,displayHdrActive());gd.workWidth=plan.base.width;gd.workHeight=plan.base.height;gd.nrWidth=plan.nr.width;gd.nrHeight=plan.nr.height;gd.flowWidth=plan.flow.width;gd.flowHeight=plan.flow.height;
+ describeStages(stageRequest(options),options.snapshot(),gd);
+ gd.hdrInput=!isImage&&activeSource->info().color.isHdrPath();gd.hdrOutput=options.settings.useHdrPreview(gd.hdrInput,displayHdrActive());
presenter.close();graph.shutdown();out={};hasOutput=false;
if(!graph.initialize(gd)||!presenter.open(ctx,window,graph,options.settings.captureCompatible,!isCapture&&!isImage)||!graph.createViews()){status(L"串流尺寸切换失败",true);break;}
reset=true;pendingResetCause=pipeline::ResetReason::Resize;
@@ -1304,9 +1296,7 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
out={};hasOutput=false;presenter.close();graph.shutdown();
{std::lock_guard lock(mutex_);reduced.revision=++nextRevision_;}
options=PlayerOptions::from(reduced);
- const auto plan=pipeline::ResolutionPlan::make({width,height},options.sr,reduced.nrPolicy,isImage,reduced.revision,reduced.srTarget,reduced.lowLatency&&reduced.nr);
- gd.workWidth=plan.base.width;gd.workHeight=plan.base.height;gd.nrWidth=plan.nr.width;gd.nrHeight=plan.nr.height;gd.flowWidth=plan.flow.width;gd.flowHeight=plan.flow.height;
- gd.enableNr=options.nr&&nvidiaAdapter;gd.enableSr=plan.srApplied&&(nvidiaAdapter||options.settings.videoSrQuality==kVideoSrFsr);gd.enableFg=options.fg&&(nvidiaAdapter||presentSinkFrameGeneration(reduced.frameGenerationBackend));gd.fgMultiplier=options.fgMultiplier;gd.enableNvofStandalone=gd.enableNr;gd.settingsRevision=reduced.revision;gd.nrBeforeSr=!isImage&&reduced.lowLatency&&gd.enableNr&&gd.enableSr;
+ describeStages(stageRequest(options),options.snapshot(),gd);
if(!initializePreview(gd,options)){status(L"增强故障后的基础图重建失败",true);break;}
publishFrameGenerationCapabilities();
backendRecoveryWarning=std::wstring(backendFailureName(failedComponent))+L"运行失败,已关闭对应效果;错误码见日志"+(backendRecoveryWarning.empty()?L"":L";"+backendRecoveryWarning);
diff --git a/src/engine/VideoExportJob.cpp b/src/engine/VideoExportJob.cpp
index 6dc2d111..ac2ea3b4 100644
--- a/src/engine/VideoExportJob.cpp
+++ b/src/engine/VideoExportJob.cpp
@@ -6,6 +6,7 @@
#include "veyra/gfx/D3D12DeviceContext.h"
#include "veyra/gfx/CommandSlotRing.h"
#include "veyra/RuntimePaths.h"
+#include "veyra/engine/GraphDescription.h"
#include <filesystem>
#include <format>
#include <thread>
@@ -70,7 +71,6 @@ bool exportVideo(const std::wstring& input,const std::wstring& output,PlayerOpti
int rateNum=info.nominalRateNum,rateDen=info.nominalRateDen;
if(rateNum<=0||rateDen<=0){rateNum=30;rateDen=1;veyra::log::warn("export-timeline","missing nominal rate; encoder configured at 30 fps, source timestamps retained");}
const double sourceInterval=double(rateDen)/rateNum;
- const auto resolution=pipeline::ResolutionPlan::make({info.width,info.height},options.sr,pipeline::NrSizePolicy::Native,true,options.settings.revision,options.settings.srTarget);
pipeline::EnhanceGraphDesc gd;gd.hdrInput=gd.hdrOutput=info.color.isHdrPath();
gd.videoHdr=options.settings.videoHdr;
gd.videoHdr.enabled=gd.videoHdr.enabled&&nvidiaAdapter;
@@ -87,11 +87,17 @@ bool exportVideo(const std::wstring& input,const std::wstring& output,PlayerOpti
// upscaling is the only vendor-neutral video SR we ship. Requesting an
// unavailable feature must degrade the export, never fail it.
const bool nvidiaFeatures=nvidiaAdapter;
- const bool srAvailable=resolution.srApplied&&(nvidiaFeatures||options.settings.videoSrQuality==kVideoSrFsr);
+ // One description for the whole job: the stage rules (which SR runs,
+ // whether NR/FG are available) come from the same place the preview uses.
+ StageRequest stages;stages.nr=options.nr;stages.sr=options.sr;stages.fg=options.fg;stages.fgMultiplier=options.fgMultiplier;
+ stages.width=info.width;stages.height=info.height;stages.exportJob=true;stages.nvidiaAdapter=nvidiaAdapter;
+ const auto plan=describeStages(stages,options.snapshot(),gd);
+ const auto resolution=plan;
+ const bool srAvailable=plan.srApplied&&(nvidiaFeatures||options.settings.videoSrQuality==kVideoSrFsr);
if(options.nr&&!nvidiaFeatures)fgNote+=fgNote.empty()?L"当前显卡不能使用 DLSS NR,本次导出自动关闭 NR":L";当前显卡不能使用 DLSS NR,本次导出自动关闭 NR";
if(options.sr&&!srAvailable)fgNote+=fgNote.empty()?L"当前显卡不能使用所选超分,本次导出关闭超分":L";当前显卡不能使用所选超分,本次导出关闭超分";
if(!nvidiaFeatures&&srAvailable)fgNote+=fgNote.empty()?L"本次导出使用 AMD FSR 超分":L";本次导出使用 AMD FSR 超分";
- gd.sourceWidth=info.width;gd.sourceHeight=info.height;gd.workWidth=resolution.base.width;gd.workHeight=resolution.base.height;gd.nrWidth=resolution.nr.width;gd.nrHeight=resolution.nr.height;gd.flowWidth=resolution.flow.width;gd.flowHeight=resolution.flow.height;gd.enableSr=srAvailable;gd.videoSrQuality=options.settings.videoSrQuality;gd.enableNr=options.nr&&nvidiaFeatures;gd.nrRuntime=options.settings.nrRuntime;gd.nrTemporal=options.settings.nrTemporal;gd.enableFg=options.fg&&nvidiaFeatures;gd.fgMultiplier=options.fgMultiplier;gd.frameGenerationBackend=options.settings.frameGenerationBackend;gd.enableNvofStandalone=options.nr&&nvidiaFeatures;gd.model=options.settings.model;gd.residual=options.settings.residual;gd.protection=options.settings.protection;gd.color=options.settings.color;gd.settingsRevision=options.settings.revision;gd.flowQuality=options.settings.flow;gd.opticalFlowBackend=options.settings.opticalFlowBackend;gd.amdFlowHalfResolution=options.settings.amdFlowHalfResolution;gd.contentRate=options.settings.content;gd.runtimeAbsPath=runtime::localRuntimeDirectory().wstring();
+ gd.runtimeAbsPath=runtime::localRuntimeDirectory().wstring();
// Keep the requested multiplier. Changing it after initialization fails
// would produce a successful-looking file with different settings.
bool graphReady=false,fgFailure=false;