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++
feat: default SR to RTX Video and verify software UI integration
Veyra Goal Agent60556567cb34
diff --git a/README.md b/README.mdindex dd22af6c..40a21e13 100644--- a/README.md+++ b/README.md@@ -81,6 +81,8 @@ Turn local video, capture cards and game streaming into one real-time GPU enhanc## New in 2.1.1+- **Interface and SR defaults:** software UI drawing by default, an optional GPU renderer with restart confirmation, and RTX Video SR high as the new SR model selection; saved model choices are retained.+- **Record and rotate:** record the processed picture with player audio; rotate playback90° in Cinema/Professional with matching preview and window layout.- **NR sizing:** per-layer25–100% scale controls, saved presets/sessions and fixed/percentage video-export inference sizes with independent output resolution.- **Display and frame generation:** background event-driven refresh/VRR/HDR queries, shared signal-panel refresh and HDR-cache recovery.diff --git a/README_CN.md b/README_CN.mdindex 00dd6495..4c90e641 100644--- a/README_CN.md+++ b/README_CN.md@@ -37,6 +37,8 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组## 2.1.1 新增与修复+- **界面与默认模型**:默认软件绘制界面,设置中可选GPU绘制并重启切换;默认超分模型改为RTX视频超分高质量,保留已有模型选择。+- **录制与旋转**:录制处理后的画面和播放器声音;极简/专业模式每次90°旋转播放预览,横竖画面与窗口布局同步适配。- **NR尺寸**:各层25%–100%手动比例、1%步进,保存至预设/会话;视频导出按固定档或百分比执行NR,编码尺寸独立保持。- **补帧与显示状态**:驱动查询移出播放线程,刷新率/VRR/HDR共享事件触发缓存,信号区统一刷新。diff --git a/docs/BUILD_2.1.1.md b/docs/BUILD_2.1.1.mdindex 5cbd788e..c8fac6d9 100644--- a/docs/BUILD_2.1.1.md+++ b/docs/BUILD_2.1.1.md@@ -1,12 +1,12 @@# Veyra 2.1.1 对应源码 / Corresponding source-应用版本2.1.1,PE版本2.1.1.0。发布ZIP原样沿用2026-10-26交付原件,运行库与模型身份沿用2.1.0。源码与运行包分别分发。+应用版本2.1.1,PE版本2.1.1.0。发布ZIP于2026-10-27重新构建,运行库与模型身份沿用2.1.0。源码与运行包分别分发。## 应用源码[Veyra-2.1.1-source.zip](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.1.1-sources/Veyra-2.1.1-source.zip)-SHA256:`29ea1f842a2f76e04a2c49ddb737e260fc5c0fb29a1d62255b6cb69735b08f0d`。应用源码快照89116ba51cafa445686baa7061e5267ebed7ef98,源码清单随包;产品构建回执2c0c82f69216e7731b0ee28cc6ecb2abdbd3d386,主EXE SHA256为`de07548373b8bd308d9af8865b06bb9551aa507761225ea35e574142b356db6a`。Release标签另包含发布说明、README与远端Star图同步;产品实现与该快照一致。+软件绘制与RTX视频超分默认项整合后重新构建。准确应用快照见源码ZIP内source-snapshot-manifest.json;构建提交、EXE哈希与对应源码哈希记录于运行包package-manifest.json及GitHub Release资产。MSVC2022/C++20、CMake/Ninja Release、Qt6.8.3。通用构建入口scripts/acceptance/build-recording-handoff.py,构建目标veyra_qml_ui;本机2.1.1构建记录见docs/BUILD_2.1.1_REPORT_2026-10-26.md。SDK/模型/专有运行文件独立准备,不包含在源码Git中。diff --git a/docs/RELEASE_NOTES_2.1.1.md b/docs/RELEASE_NOTES_2.1.1.mdindex 00cae30a..56bbf2ab 100644--- a/docs/RELEASE_NOTES_2.1.1.md+++ b/docs/RELEASE_NOTES_2.1.1.md@@ -2,6 +2,12 @@本版汇总2.1.0发布后Claude与Codex共同完成的功能和修复,重点是处理后录制、画面旋转、NR尺寸控制,以及采集、补帧、显示和界面链路。+## 界面绘制与默认超分模型++- 合入软件绘制设置:界面默认使用软件绘制,设置→兼容可切换软件/GPU绘制,重启后生效;视频解码、增强与呈现继续使用GPU。+- 保留OBS和监控软件的自动兼容规则,设置页显示当前实际绘制方式及切换提示。+- 默认超分模型调整为RTX视频超分(高质量);首次启动仍保持效果关闭。已经保存的模型选择继续保留,AMD/Intel沿用可用的FSR默认项。+## 录制处理后的画面与声音- 新增处理后画面实时录制入口,支持开始倒计时、取消和停止保存;录制直接取播放器的处理结果。@@ -57,7 +63,7 @@- [AMD完整包](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.1.1/Veyra-2.1.1-AMD-win64-portable.zip)- [应用与依赖对应源码](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.1.1-sources)-本次原样发布已交付的2.1.1完整包,版本号2.1.1,Windows文件版本2.1.1.0。包内本地验收说明及manifest保留封包时记录,正式发布时间以本页为准。+本次发布为整合软件绘制与RTX视频超分默认项后重新构建的2.1.1完整包,Windows文件版本2.1.1.0。manifest保留封包时记录,正式发布时间以本页为准。## 校验与组件@@ -65,15 +71,13 @@运行组件与模型沿用2.1.0受控供体,随包保留来源、版本、哈希、许可证和实验/社区标记。Veyra为独立开源项目,社区实验组件不代表GPU厂商官方认证。AMD NR适用RX9000及对应HIP运行环境。-| 完整包 | SHA256 |-|---|---|-| NVIDIA | `e3d78f91b4c2669108f2c22c1d491d17f3bfdc73b2dbda8f9eba823d5f32b451` |-| AMD | `5153e97be26c03062b8596462fbede41b700f354799df02875bad3bf5d895f15` |+下载文件的SHA256校验值见GitHub Release页面。感谢社区提供NR导出尺寸补丁与使用反馈,也感谢持续支持项目的用户。## English — Changes since 2.1.0+- Default the interface to software drawing with an optional GPU setting and restart confirmation; video stays on the GPU. New SR selections use RTX Video SR high, while saved selections and AMD/Intel FSR defaults are preserved. Effects remain off at first launch.- Record the processed picture and player audio, with countdown/cancel controls, bounded asynchronous start/stop and encoder/file finalization.- Rotate the playback view by90° in Cinema/Professional/fullscreen, with matching aspect ratio, window layout and pointer coordinates.- Per-layer manual NR processing scale:25–100%,1% steps, saved with presets/sessions. Video export now honors fixed and percentage NR sizes while retaining the selected encoded output dimensions.@@ -83,7 +87,7 @@- Settle popup layouts before opening, preserve the existing animation, report actual saved screenshot paths/formats, restore maximized/fullscreen geometry and scope playlist keys correctly.- Update all four interface languages.12 targeted regression groups,117 QML tests and four extracted-package startup/playback checks passed.-Download one complete GPU package and extract it into a new directory. Runtime versions/licenses and community-experimental labels are retained from the audited2.1.0 distribution. The published ZIPs are the original verified2.1.1 delivery; embedded local-build records describe their packaging time.+Download one complete GPU package and extract it into a new directory. Runtime versions/licenses and community-experimental labels are retained from the audited2.1.0 distribution. The2.1.1 ZIPs are rebuilt with the interface-renderer and SR-default changes; embedded manifests describe their packaging time.## 支持与反馈 / Support & feedbackdiff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 65088678..f1fc9638 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -10112,3 +10112,12 @@ AMD:Veyra-2.1.1-AMD-win64-portable.zip,466204342 bytes,SHA256 5153e97be26c实现:`include/veyra/ui/InterfaceRenderer.h` 统一启动选择。OBS 兼容、监控软件兼容(自动 + 启动时检测到浮窗或接受过兼容重启)、`VEYRA_UI_RHI` 的原有判定保持不变并优先;其余按偏好 `uiRenderer`,缺省软件,GPU 仍走 D3D12。设置 → 兼容新增“界面绘制:软件 / GPU”,只有重启真会改变渲染器时才弹确认;“监控软件兼容”的提示和重启判断改为只在选 GPU 时生效。桥接新增 `softwareUiActive`,新增 8 条四语文案。构建:复用 `build/claude-screen-recording-20261022`,标签 2.1.0-swui1,5 个目标 62.2 秒通过(日志 `logs/claude-software-ui-default-20261026/build-20261026-005610`,EXE SHA256 8e0d85d9…c599)。测试:UI 合同(新增启动选择组合)、Repair 272 项、翻译均 0 失败;QtQuick 115/0;`extract.py --check` 2671 条,0 缺译、0 占位符问题。实机 `scripts/acceptance/ui-renderer-default.py` 同一私有配置四次启动:缺省软件 → 选 GPU 弹确认 → D3D12 → 选软件弹确认 → GPU + 兼容重启仍软件、选软件不弹确认 → 软件,全部通过。首轮脚本异步截图与点选重叠,截图混入点选后状态,改为等截图写完再点后重跑通过。证据 `reports/claude-software-ui-default-20261026`,截图 `tests/claude-software-ui-default-20261026/shots`。无用户包、无 merge/push/Release,Lecram 暂停。+++## 2026-10-27 软件绘制与RTX视频超分默认项整合++用户授权重新整合/构建/发布2.1.1,覆盖前阶段原包不重建。先存档发行文档脏文件至archives/codex-release-2.1.1-final-20261027,fd42018保存,再正常merge Claude软件绘制ea148bf为eae5fd9;仅AGENTS/WORKLOG追加冲突,两边保留。软件UI分支已在候选历史中;主线未推送。++共享kDefaultVideoSrQuality=4,EnhancementSettings/ChainGlobalSettings新配置选择RTX视频超分高质量;AMD/Intel既有硬件初始化仍选FSR,首次sr/nr/FG仍关闭,既有明确模型ID不迁移。UI合同覆盖新默认与旧DLSS/RTX/FSR开关保存;四次真实启动夹具追加默认4、已选0/5持久化验证。InterfaceRenderer说明去掉未经证明的GPU故障隔离/零显存绝对断言,仅注释更正。++打包改用公开RELEASE_NOTES_2.1.1及BUILD_2.1.1说明,移除旧ZIP校验值以避免循环/过时身份;新task隔离新stage/receipt,原两包作旧交付保留,不上传旧包。不改运行库/模型/驱动/真实配置,不占采集卡,不派Agent。实际结果后续填回执。diff --git a/include/veyra/engine/EffectChain.h b/include/veyra/engine/EffectChain.hindex 0083cd62..5151486a 100644--- a/include/veyra/engine/EffectChain.h+++ b/include/veyra/engine/EffectChain.h@@ -205,7 +205,7 @@ ChainValidation compileChainExecutionPlan(const EffectChain&, const ChainExecuti// Only options belonging to the effect chain travel when the mode changes.struct ChainGlobalSettings {pipeline::SrTarget srTarget = pipeline::SrTarget::Uhd4K;- uint32_t videoSrQuality = 0;+ uint32_t videoSrQuality = kDefaultVideoSrQuality;uint32_t dlssSrModel = 0; // EnhancementSettings::dlssSrModelFrameGenerationBackend fgBackend = FrameGenerationBackend::Dlss;uint32_t vfgQuality=1;diff --git a/include/veyra/engine/EnhancementSettings.h b/include/veyra/engine/EnhancementSettings.hindex 16607630..7b4de0d5 100644--- a/include/veyra/engine/EnhancementSettings.h+++ b/include/veyra/engine/EnhancementSettings.h@@ -72,6 +72,9 @@ inline size_t exportBitrateIndex(uint32_t mbps){for(size_t i=0;i<kExportBitrateC// videoSrQuality values: 0 = DLSS SR, 1..4 = RTX video SR quality steps,// 5 = AMD FSR upscaling (vendor neutral; verified on an NVIDIA adapter).inline constexpr uint32_t kVideoSrFsr=5;+// Fresh SR selections use RTX Video SR high; explicit saved selections retain+// their numeric IDs. The UI seeds FSR separately on AMD/Intel adapters.+inline constexpr uint32_t kDefaultVideoSrQuality=4;// DLSS SR model (videoSrQuality 0 only): 0 = DLSS 4 transformer (preset K,// what DLSS SR always used here), 1 = DLSS 4.5 second-generation transformer// (preset M), 2 = DLSS 4.5 Ultra Performance model (preset L). Both 4.5@@ -334,7 +337,7 @@ struct EnhancementSettings {HdrMetadataSettings hdrMetadata;bool useHdrPreview(bool hdrInput,bool hdrDisplayActive)const{return (hdrInput||videoHdr.enabled)&&hdrDisplayActive&&!forceSdrPreview;}pipeline::SrTarget srTarget=pipeline::SrTarget::Uhd4K;- uint32_t videoSrQuality=0; // 0 DLSS SR; 1–4 RTX Video SR+ uint32_t videoSrQuality=kDefaultVideoSrQuality; // 0 DLSS SR; 1–4 RTX Video SRuint32_t dlssSrModel=0; // DLSS SR only; see kDlssSrModelCountuint32_t multiplier=1;FrameGenerationBackend frameGenerationBackend=FrameGenerationBackend::Dlss;diff --git a/include/veyra/ui/InterfaceRenderer.h b/include/veyra/ui/InterfaceRenderer.hindex ea5f10d1..c5eedddd 100644--- a/include/veyra/ui/InterfaceRenderer.h+++ b/include/veyra/ui/InterfaceRenderer.h@@ -3,10 +3,9 @@namespace veyra::ui {// How the interface draws, decided in main.cpp before Qt starts (2026-10-26,// docs/SOFTWARE_UI_DEFAULT_PLAN_2026-10-26.md). Software is the default: the-// interface then has no swapchain or D3D12 device of its own, so overlays and-// capture tools hook only the video, a GPU fault in the video leaves the-// interface running, and it uses no video memory (A/B 2026-10-26: 469 vs 105 MiB,-// about half the GPU load while the interface animates). 设置 → 界面绘制 = GPU+// interface then avoids a GPU scene-graph swapchain/device. Video rendering+// still uses the GPU; software drawing is not a guarantee against video-driver+// faults or all overlay interactions. 设置 → 界面绘制 = GPU// draws it with the GPU again. The compatibility switches keep their meaning:// OBS game capture and an overlay seen at start (监控软件兼容 = 自动) still draw// in software when GPU is chosen, and VEYRA_UI_RHI still picks a GPU renderer.diff --git a/scripts/acceptance/package-2.1.1.py b/scripts/acceptance/package-2.1.1.pyindex a6a3a5e5..895f3e36 100644--- a/scripts/acceptance/package-2.1.1.py+++ b/scripts/acceptance/package-2.1.1.py@@ -15,7 +15,7 @@ OUT = B/'test-packages'/TASKREPORT = B/'reports'/TASKDONOR = B/'releases/release-2.1.0-20261019/runtime-base'VERSION = '2.1.1'-DOC = 'docs/BUILD_2.1.1_2026-10-26.md'+DOC = 'docs/RELEASE_NOTES_2.1.1.md'SOURCE = OUT/'Veyra-2.1.1-source.zip'SOURCES = [(B/'archives/dependency-migration-cleanup-20261023/dependency-corresponding-source/Veyra-2.0.6-dependency-source.zip', '4eccde6343d66e0511b641aaacc12b999e424738a383fcce268d762abb3dceb9'),@@ -116,10 +116,10 @@ def stage():for f in (BUILD/'shaders').glob('*.dxil'):copy(f,app/'shaders'/f.name)for name in ['LICENSE','THIRD_PARTY_NOTICES.md','README.md','README_CN.md','README_EN.md']:if (ROOT/name).is_file():copy(ROOT/name,app/name)- for name in [DOC,'docs/CAPTURE_REVIEW_REPORT_2026-10-26.md','docs/CAPTURE_AUDIO_MAIN_REPORT_2026-10-25.md','docs/EXPORT_NR_SCALE_REPORT_2026-10-25.md','docs/MENU_AMD_HDR_REPORT_2026-10-26.md','docs/FIELD_CAPTURE_4K60_DIAGNOSIS_2026-10-26.md','docs/FIELD_CAPTURE_NR_DISCONNECT_2026-10-26.md']:+ for name in [DOC,'docs/BUILD_2.1.1.md']:copy(ROOT/name,app/name)copy(ROOT/DOC,app/'README-2.1.1.zh-CN.md');copy(ROOT/DOC,app/'RELEASE_NOTES.md')- (app/'GPU-PACKAGE.txt').write_text(f'Veyra {VERSION} / {flavor}\nComplete local Release-configuration portable build for user testing; not published.\nExtract all files to a new directory. Runtime/model bytes match audited 2.1.0.\n','utf-8')+ (app/'GPU-PACKAGE.txt').write_text(f'Veyra {VERSION} / {flavor}\nComplete Release-configuration portable package. Publication status follows the GitHub Release page.\nExtract all files to a new directory. Runtime/model bytes match audited 2.1.0.\n','utf-8')runtime=json.loads((DONOR/flavor/'release-runtime-manifest.json').read_text('utf-8'))runtime.update(package=VERSION,candidate=VERSION,localOnly=True)for n in ['release-runtime-manifest.json','runtime/experimental/release-runtime-manifest.json']:document(app/n,runtime)diff --git a/scripts/acceptance/ui-renderer-default.py b/scripts/acceptance/ui-renderer-default.pyindex 6f65dae6..ceebfdc6 100644--- a/scripts/acceptance/ui-renderer-default.py+++ b/scripts/acceptance/ui-renderer-default.py@@ -10,14 +10,18 @@ package. ui-renderer-default.qml picks values through the real 设置 control.usage: py -3.11 -X utf8 -B -I scripts/acceptance/ui-renderer-default.py"""from pathlib import Path-import hashlib, json, os, re, shutil, subprocess+import argparse, hashlib, json, os, re, shutil, subprocess-B = Path('E:/项目/Veyra'); T = 'claude-software-ui-default-20261026'; R = Path(__file__).resolve().parents[2]+parser=argparse.ArgumentParser()+parser.add_argument('--task',default='claude-software-ui-default-20261026')+parser.add_argument('--package-dir',type=Path)+options=parser.parse_args()+assert re.fullmatch(r'(claude|codex)-[a-z0-9.-]+',options.task)+B = Path('E:/项目/Veyra'); T = options.task; R = Path(__file__).resolve().parents[2]D = B/'build/claude-screen-recording-20261022'; A = B/'tests'/T/'app'; P = B/'tests'/T/'profile'L = B/'logs'/T/'launches'; TMP = B/'tmp'/T/'launches'; OUT = B/'reports'/T; SHOTS = B/'tests'/T/'shots'for p in [L, TMP, OUT, SHOTS]: p.mkdir(parents=True, exist_ok=True)-if P.exists(): shutil.rmtree(P)-P.mkdir(parents=True)+P.mkdir(parents=True,exist_ok=False)def sha(p):@@ -31,13 +35,13 @@ def replace(p, data):p.write_bytes(data)-donor = B/'releases/release-2.1.0-20261019/runtime-base/NVIDIA'+donor = options.package_dir or B/'releases/release-2.1.0-20261019/runtime-base/NVIDIA'manifest = json.loads((donor/'package-manifest.json').read_text('utf8'))if not A.exists():for e in manifest['files']:rel = e['path']if rel.startswith('logs/') or any(x.startswith('user-data-') for x in Path(rel).parts): continue- p = A/rel; p.parent.mkdir(parents=True, exist_ok=True); os.link(donor/rel, p)+ p = A/rel; p.parent.mkdir(parents=True, exist_ok=True); shutil.copyfile(donor/rel, p)shutil.copyfile(donor/'package-manifest.json', A/'package-manifest.json')replace(A/'veyra_qml_ui.exe', (D/'veyra_qml_ui.exe').read_bytes())for folder in ['qml', 'i18n']:@@ -88,6 +92,7 @@ try:if not any(l.endswith(want['state']) for l in lines): problems.append(f'state line {want["state"]!r} missing: {lines}')if want['picked'] and want['picked'] not in lines: problems.append(f'pick line {want["picked"]!r} missing: {lines}')if want['done'] not in lines: problems.append(f'done line {want["done"]!r} missing: {lines}')+ if not any(l.startswith('sr-selection=') for l in lines): problems.append('SR default / saved-selection check missing')errors = [x for x in text.splitlines() if any(s in x for s in ['[ERROR]', 'ReferenceError:', 'TypeError:', 'Binding loop detected'])]if errors: problems.append('QML/engine errors')results.append(dict(step=step, renderer=renderer, passed=not problems, problems=problems, lines=lines, errors=errors[:10],diff --git a/scripts/acceptance/ui-renderer-default.qml b/scripts/acceptance/ui-renderer-default.qmlindex ba8eec24..ad2cc936 100644--- a/scripts/acceptance/ui-renderer-default.qml+++ b/scripts/acceptance/ui-renderer-default.qml@@ -30,6 +30,10 @@ Item {if(test.ticks<8)returnconst seg=find(settingsPage,"set-ui-renderer"),confirm=find(settingsPage,"obs-restart-confirm")check(seg!==null&&confirm!==null,"界面绘制 control and restart confirmation found")+ const expectedSr=test.step===1?4:test.step===4?5:0+ check(veyra.videoSrQuality===expectedSr,"fresh RTX Video SR or saved SR selection restored")+ check(!veyra.srEnabled,"SR stays off while its model choice changes")+ log("sr-selection="+veyra.videoSrQuality+" enabled="+veyra.srEnabled)log("step="+test.step+" softwareUiActive="+veyra.softwareUiActive+" overlayCompatActive="+veyra.overlayCompatActive+" pref="+(veyra.preferences.uiRenderer||"")+" segment="+seg.current)// The grab is asynchronous: pick only after the PNG of the state before the pick is written.@@ -48,6 +52,8 @@ Item {if(confirm.shown){confirm.close();confirm.rejected()}}if(test.step===2)check(veyra.setPreference("uiRenderer","gpu"),"GPU stored again for the next launch")+ if(test.step===1){veyra.videoSrQuality=0;check(veyra.videoSrQuality===0,"explicit DLSS selection accepted")}+ if(test.step===3){veyra.videoSrQuality=5;check(veyra.videoSrQuality===5,"explicit FSR selection accepted")}test.phase=3;test.ticks=0}else if(test.phase===3){if(test.ticks<4)returndiff --git a/tests/unit/UiContractTests.cpp b/tests/unit/UiContractTests.cppindex 93a67215..37e06207 100644--- a/tests/unit/UiContractTests.cpp+++ b/tests/unit/UiContractTests.cpp@@ -6,6 +6,7 @@#include "../../apps/veyra/ui/CapturePreferenceStore.h"#include "../../apps/veyra/ui/SourceTitle.h"#include "veyra/engine/EngineController.h"+#include "veyra/engine/EffectChain.h"#include "../../apps/veyra/ui/LiveStatusHistory.h"#include "veyra/sink/AudioGain.h"#include "veyra/engine/PreviewView.h"@@ -134,6 +135,12 @@ int wmain(int argc,wchar_t** argv){try{using namespace veyra;outputRateContracts();interfaceRendererContracts();+ {+ engine::EnhancementSettings fresh;+ engine::ChainGlobalSettings globals;+ require(fresh.videoSrQuality==4&&globals.videoSrQuality==4,"fresh List and Node SR selections use RTX Video SR high");+ require(!fresh.sr&&!fresh.nr&&fresh.multiplier==1,"changing the SR model does not enable enhancement");+ }// Manual turns compose with metadata, including an already-oriented DAR.for(int metadata:{0,90,180,270})for(int mode=0;mode<=6;++mode){engine::PreviewView v;v.rotationDegrees=metadata;v.mode=mode;@@ -279,6 +286,12 @@ int wmain(int argc,wchar_t** argv){try{// range check. Both silently reset window size, volume and subtitle style.{ui::UiPreferences audio;audio.volume=.9f;audio.muted=true;audio.inspector=4;audio.inspectorWidth=380;audio.width=1600;audio.height=900;require(prefs.save(audio,nullptr),"audio-page preferences save");ui::UiPreferenceStore reload(dir);const auto back=reload.load();require(std::abs(back.volume-.9f)<1e-6&&back.inspector==4&&back.inspectorWidth==380&&back.width==1600,"audio page and geometry survive the version 3 round trip");}auto setting=loaded.startup({});before.revision=setting.revision;require(setting==before,"all confirmed parameters round trip");+ for(unsigned selected:{0u,4u,engine::kVideoSrFsr})for(bool enabled:{false,true}){+ auto chosen=before;chosen.videoSrQuality=selected;chosen.sr=enabled;+ require(prefs.save(p,&chosen),"explicit SR selection saved");+ ui::UiPreferenceStore restart(dir);const auto restored=restart.startup({});+ require(restored.videoSrQuality==selected&&restored.sr==enabled,"saved DLSS / RTX Video / FSR and off state survive new defaults");+ }for(int enabled:{0,1})for(const auto runtime:{engine::NrRuntime::Original,engine::NrRuntime::Community,engine::NrRuntime::Ampere,engine::NrRuntime::NvidiaOriginal}){p.enhancementEnabled=enabled;before.nr=true;before.nrRuntime=runtime;before.nrTemporal=true;require(prefs.save(p,&before),"master and runtime save");ui::UiPreferenceStore restart(dir);require(restart.load().enhancementEnabled==enabled,"master state survives restart");auto restoredSettings=restart.startup({});require(restoredSettings.nr&&restoredSettings.nrRuntime==engine::currentNrRuntime(runtime)&&restoredSettings.nrTemporal,"bypassed effects, selected runtime (legacy migrated) and temporal NR survive restart");}for(bool enabled:{false,true})for(unsigned mode=0;mode<3;++mode)for(unsigned sync=0;sync<3;++sync)for(unsigned rate=0;rate<3;++rate){p.presentation={enabled,engine::PacingMode(mode),engine::DisplaySync(sync),engine::OutputRateMode(rate),rate==2?119.88:60.0};require(prefs.save(p,nullptr),"presentation atomic save");ui::UiPreferenceStore restart(dir);require(restart.load().presentation==p.presentation,"all presentation combinations and output caps survive restart");}auto path=dir/"ui-preferences.v1";