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++
Record 2.0.9 test package scope and probe explicit NR model hints
Veyra Goal Agent6f09e3a8be50
diff --git a/AGENTS.md b/AGENTS.mdindex ac32d912..0c759b41 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,5 +1,7 @@# Veyra 项目 Agent 执行规则+> **2026-10-17 2.0.9 本地测试包授权扩展**:用户要求移除 Lecram/旧 SF-v2,RTX20–50 默认新版 SF 310.9.16,增加默认开启的性能模型开关、NVIDIA 原版置灰,AMD保持,并构建2.0.9供实测后发布。允许在本轮隔离分支整合已完成的 NR2060、粉丝字幕/鼠标穿透、issues41–45 修复,完成模型契约验证、列表/节点/预设/会话/导出迁移、构建版本与NVIDIA/AMD本地打包的必要接点。此前本轮“无用户包”限制被本条覆盖;main/push/Release/关机仍未授权,旧分支/工作树/历史包/真实用户配置原样保留。候选DLL原件及原NVIDIA/AMD运行时保持身份,不修改专有二进制、不进源码Git;全E盘、测试≤300秒/构建≤900秒、不派Agent/造压、不提高UI33ms/250ms刷新。20/30/40实卡待用户验证。+> **2026-10-17 SF NR 310.9.16 本地替换授权**:用户提供桌面 nvngx_dlssnr.dll,要求开分支接入并明确先直接替换 SF-v2。按 docs/NR_SF_310916_PLAN_2026-10-17.md,从 main b571a44 在 codex/nr-sf-310916-20261017 隔离;存档82旧树/94分支/509脏文件与候选原件。允许新兼容槽原样复制、必要 NR 架构策略/标签/本地 staging 身份及定向构建回归,覆盖这些接点旧冻结/固定身份。候选 310.9.16.0、276162560 bytes、NotSigned、SHA256 CDFA6C1EC784867182164C7836F324F087B5C9F374D0C9FE46F54999FEABF3ED,已与作者 compat-fp16-310.9.16-cuda13.4.3 原始RAR解出的DLL完整SHA匹配。不得修改运行库/模型/驱动或真实配置,不派Agent/制造竞争负载,保留UI33ms/250ms与其它效果。产物全E盘,单测试≤300秒/构建≤900秒。本轮无main合并/push/Release/正式包/关机授权;本机5070结果不外推20/30/40实卡。> **2026-10-16 RTX2060 光流注册修复授权**:用户在 logs(19).zip 诊断后明确“补一下,补之前存档”。按 docs/NR2060_SYNC_PLAN_2026-10-16.md,从 main b571a44 在 E盘 codex/nr2060-sync-20261016 隔离修复 NVOF 资源注册同步、初始化/部分失败清理及 NR 未执行的界面状态和必要回归/翻译接点;这些范围覆盖旧冻结。先完成 checkpoint/pre-nr2060-sync-20261016、全引用 bundle verify、80旧树/92分支/509脏文件与日志备份。默认算法/模型/逐帧调度、33ms/250ms、GPU优先级/真实配置保持,不派Agent、不造压、不改驱动或专有运行库;产物全E盘,测试≤300秒/构建≤900秒。无新main合并/push/用户包/Release/关机授权,2060现场恢复必须实卡复测,不能用5070替代。diff --git a/CMakeLists.txt b/CMakeLists.txtindex d90973fd..604e4cd4 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -1173,6 +1173,11 @@ add_executable(veyra_sr_reconstruction_tests tests/integration/SrReconstructionTtarget_compile_features(veyra_nr_dynamic_size_experiment PRIVATE cxx_std_20)target_compile_options(veyra_nr_dynamic_size_experiment PRIVATE /utf-8)target_link_libraries(veyra_nr_dynamic_size_experiment PRIVATE veyra_ngx)++ add_executable(veyra_nr_model_preset_experiment tests/perf/NrModelPresetExperiment.cpp)+ target_compile_features(veyra_nr_model_preset_experiment PRIVATE cxx_std_20)+ target_compile_options(veyra_nr_model_preset_experiment PRIVATE /utf-8)+ target_link_libraries(veyra_nr_model_preset_experiment PRIVATE veyra_ngx)add_executable(veyra_nr_concurrent_create_experiment tests/perf/NrConcurrentCreateExperiment.cpp)target_compile_features(veyra_nr_concurrent_create_experiment PRIVATE cxx_std_20)target_compile_options(veyra_nr_concurrent_create_experiment PRIVATE /utf-8)diff --git a/docs/NR_SF_310916_PLAN_2026-10-17.md b/docs/NR_SF_310916_PLAN_2026-10-17.mdindex 167ec34a..b05a012e 100644--- a/docs/NR_SF_310916_PLAN_2026-10-17.md+++ b/docs/NR_SF_310916_PLAN_2026-10-17.md@@ -1,6 +1,6 @@# SF NR 310.9.16 本地接入-用户在 2026-10-17 提供桌面 nvngx_dlssnr.dll,授权先开分支适配,并明确先直接替换 SF-v2 测试。基线 main b571a44,分支 codex/nr-sf-310916-20261017;本轮不合 main、不推送、不发布、不重做用户正式包。+用户在 2026-10-17 提供桌面 nvngx_dlssnr.dll,授权先开分支适配,并明确先直接替换 SF-v2 测试。基线 main b571a44,分支 codex/nr-sf-310916-20261017。后续扩展为2.0.9本地测试包:移除新包中的Lecram/旧SF-v2,RTX20–50默认新版SF,性能模型开关默认开,NVIDIA原版置灰,AMD保持;整合已完成独立修复。main、推送、正式发布、关机均不在本轮授权范围。候选:276162560 bytes,310.9.16.0,NotSigned,SHA256 CDFA6C1EC784867182164C7836F324F087B5C9F374D0C9FE46F54999FEABF3ED。来源声明对照 RenoDX ShortFuse 17 日 00:07 的 compat-fp16-310.9.16-cuda13.4.3 公告。只复制用户给出的原件,不修改 DLL、签名、模型或驱动。此具名本地替换覆盖旧固定 SF-v2 身份限制,不扩大公开分发许可。@@ -12,4 +12,12 @@4. 必要时新建本轮 E 盘构建,运行 NR 运行库切换、参数/恢复及真实播放回归。所有单测试 <=300 秒、构建 <=900 秒,不造 GPU 竞争负载、不派 Agent。5. 记录明确来源/身份、实测和未测硬件边界。RTX5070 的结果不能代替 RTX20/30/40 验收,输出变化不能当作画质提升;性能只能描述本次相同条件下的 GPU 阶段。+## 2.0.9追加实施++追加前存档checkpoint/pre-nr-model-toggle-2.0.9-20261017。在本分支合入codex/nr2060-sync-20261016、codex/fan-subtitle-passthrough-20261016、codex/issues41-45-20261016,保留原分支。冲突逐项合并;HDR记忆与网络来源处理同时保留,翻译/记录合并不丢条目。++6. 先核实Hint.Render.Preset新旧模型枚举并用同一构建进行A/B实际推理;不能仅凭预设名称猜参数。+7. 性能开关作为NR模型参数贯穿共享编辑器、设置比较/重建、预设与会话编码、导出工作进程。只有SF使用,原版/AMD无效参数不触发重建;关闭NR的编辑仍不得造成播放卡顿。保留旧枚举解码,将旧Lecram/社区选择迁移至SF,显式原版/AMD选择保留。+8. 新NVIDIA包只有新版SF与NVIDIA原版NR;AMD运行组件沿用原件。独立去隔行模块附完整对应源码/许可/构建身份。版本2.0.9本地候选,验证构建输入、ZIP逐文件身份、冷启动与实际播放后给用户本地路径。历史包/源码树不删。+产物只在 E:/项目/Veyra/{archives,tmp,tests,logs,reports,build}/nr-sf-310916-20261017。保持 UI33ms/250ms、源时戳/队列/颜色/其它效果器不变;无像素回读或逐帧等待进入正常播放。diff --git a/tests/perf/NrExperimentalFixture.h b/tests/perf/NrExperimentalFixture.hindex a1ad9d80..1ff5b233 100644--- a/tests/perf/NrExperimentalFixture.h+++ b/tests/perf/NrExperimentalFixture.h@@ -80,11 +80,11 @@ struct Feature {for(auto key:{p::kWidth,p::kInputWidth,p::kOutputWidth,p::kOutputDotWidth,p::kStdWidth})b.setU32(key,w);for(auto key:{p::kHeight,p::kInputHeight,p::kOutputHeight,p::kOutputDotHeight,p::kStdHeight})b.setU32(key,h);}- bool create(gfx::CommandSlotRing& ring,uint32_t w,uint32_t h) {+ bool create(gfx::CommandSlotRing& ring,uint32_t w,uint32_t h,int32_t preset=0) {if(!params)return false;dimensions(w,h);ngx::ParameterBlock b(params);b.setU32(p::kUpscaling,0);b.setF32(p::kScale,1);b.setF32(p::kScalingRatio,1);b.setVoid(p::kComputeScalingRatioCallback,reinterpret_cast<void*>(&ngx::DlssNrRuntimeAdapter::scalingRatioCallback));- b.setI32(p::kHintRenderPreset,0);b.setI32(p::kPerfQualityValue,1);+ b.setI32(p::kHintRenderPreset,preset);b.setI32(p::kPerfQualityValue,1);b.setU32(p::kCreationNodeMask,1);b.setU32(p::kVisibilityNodeMask,1);Status s;uint32_t slot;auto* list=ring.acquireNext(slot,s);if(!list)return false;uint64_t r=0;uint32_t e=0;const auto start=nowMs();diff --git a/tests/perf/NrModelPresetExperiment.cpp b/tests/perf/NrModelPresetExperiment.cppnew file mode 100644index 00000000..e3bdadff--- /dev/null+++ b/tests/perf/NrModelPresetExperiment.cpp@@ -0,0 +1,49 @@+#include "NrExperimentalFixture.h"+#include "veyra/Log.h"+#include <d3d12sdklayers.h>+#include <algorithm>++// Test-only runtime contract probe. Readbacks/waits never enter playback.+// Compare explicit hints with the same input/resources after warmup; do not+// infer enum meaning from a preset name or from an unprocessed black image.+int wmain(int argc,wchar_t** argv) {+ using namespace nrperf;+ if(argc!=3)return 2;+ const std::filesystem::path out=argv[2];std::filesystem::create_directories(out);+ Logger::instance().openFile((out/L"engine.log").wstring());+ Session s;if(!s.init(argv[1]))return 2;+ bool pass=true;std::ofstream csv(out/L"presets.csv");+ csv<<"run,preset,medianEvaluateMs,changedPixels,nonBlackPixels\n";+ const int32_t presets[]={0,1,2,2,1};+ for(unsigned run=0;run<std::size(presets);++run){+ Feature f(s);if(!f.create(s.ring,1920,1080,presets[run])||+ !f.textures(s.ring,1920,1080,1920,1080))return 2;+ std::vector<double> times;+ for(unsigned frame=0;frame<30;++frame){+ if(!f.evaluate(s.ring,1920,1080,frame==0))return 2;+ if(frame>=10)times.push_back(f.lastGpuEvaluateMs);+ }+ auto pixels=f.read(s.ring);if(pixels.size()!=size_t(1920)*1080*4)return 2;+ uint64_t changed=0,nonBlack=0;+ for(size_t i=0;i<pixels.size();i+=4){+ changed+=pixels[i]!=17||pixels[i+1]!=23||pixels[i+2]!=29;+ nonBlack+=pixels[i]+pixels[i+1]+pixels[i+2]>15;+ }+ std::sort(times.begin(),times.end());const double median=times[times.size()/2];+ csv<<run<<','<<presets[run]<<','<<median<<','<<changed<<','<<nonBlack<<'\n';csv.flush();+ std::ofstream raw(out/(L"preset-"+std::to_wstring(run)+L".rgba"),std::ios::binary);+ raw.write(reinterpret_cast<const char*>(pixels.data()),std::streamsize(pixels.size()));+ std::printf("PRESET run=%u hint=%d medianGpuMs=%.6f changed=%llu nonBlack=%llu\n",+ run,presets[run],median,changed,nonBlack);+ pass=pass&&median>0&&changed>size_t(1920)*1080/2&&nonBlack>size_t(1920)*1080/2;+ }+ s.ring.drainQueue();Microsoft::WRL::ComPtr<ID3D12InfoQueue> debug;unsigned errors=0;+ if(!hrOK(s.device.device()->QueryInterface(IID_PPV_ARGS(&debug)),"Debug.Query"))return 2;+ for(UINT64 i=0;i<debug->GetNumStoredMessages();++i){SIZE_T n=0;debug->GetMessage(i,nullptr,&n);+ std::vector<uint8_t> data(n);auto* m=reinterpret_cast<D3D12_MESSAGE*>(data.data());+ if(!hrOK(debug->GetMessage(i,m,&n),"Debug.Read"))return 2;+ if(m->Severity<=D3D12_MESSAGE_SEVERITY_ERROR){++errors;std::printf("DEBUG_ERROR %s\n",m->pDescription);}}+ const auto removed=s.device.device()->GetDeviceRemovedReason();+ std::printf("RESULT pass=%d debugErrors=%u deviceRemoved=0x%08X\n",pass,errors,unsigned(removed));+ return pass&&errors==0&&SUCCEEDED(removed)?0:1;+}