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++

Support user-provided SF NR 310.9.16 compatibility runtime

Veyra Goal Agent0c6cd70c86c5
diff --git a/AGENTS.md b/AGENTS.md
index 7403c935..d587dade 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,5 +1,7 @@
# Veyra 项目 Agent 执行规则
+> **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 PR44授权**:用户要求研究合并HDR显示页PR44。基于main8d8eb09,在codex/pr44-hdr-display-20261016保留PR44 head3ee17b6并按docs/PR44_HDR_DISPLAY_PLAN_2026-10-16.md适配HDR显示/曲线/记忆/元数据/低频GPU统计及必要shader/构建回归,覆盖这些接点旧冻结。正常播放不回读像素、只读GPU归约统计且面板隐藏无采样;不提高33ms/250ms频率。78旧树/509脏文件和上一轮issues分支保持;产物全E盘,测试≤300秒/构建≤900秒。不派Agent、不改专有运行库/模型/驱动/真实配置。检查通过允许PR44合main及普通GitHub同步;无Release/用户包/评论/代发/关机授权。
> **2026-10-15 2.0.8 正式发布授权**:用户实测当前两个2.0.8测试包正常,明确要求仅改外部文件名直接发布2.0.8,不重编译、不重打包。按docs/RELEASE_2.0.8_PLAN_2026-10-15.md,汇总Claude与Codex自2.0.7以来全部最终保留内容,重点为延迟链路、窗口/显示器捕获游戏模式、可变刷新、采集卡画面与手柄转发以及搭配第三方远程软件的电脑游戏使用方式;公开说明不叙述用户要求省略的旧显示同步设定。允许本地main文档合入、普通推送nrvideo/main及v2.0.8/v2.0.8-sources标签、GitHub正式Release,主下载区只放NVIDIA/AMD两包,源材料另放非latest归档并引用已有依赖/FFmpeg源。保留六群/赞助二维码各width220、Discord、Ko-fi、知识库。77旧树/509脏文件及五个原归档保护;所有产物E盘,不改产品/运行库/模型/配置,不派Agent、不代发、不关机。内部2.0.8-test及manifest标签原样保留并明示,实测/模拟/未验证边界如实说明。
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 74541b4c..5f080cc5 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -1,5 +1,27 @@
# Third-party dependencies
+## User-provided ShortFuse NR 310.9.16 (2026-10-17, local testing)
+
+The user supplied `nvngx_dlssnr.dll` and authorized replacement of the SF-v2
+compatibility slot in a separate local branch. It exactly matches the DLL in
+ShortFuse's RenoDX announcement, tag `compat-fp16-310.9.16-cuda13.4.3`:
+https://discord.com/channels/1408098019194310818/1543976771920330884/1560685677816057856
+
+Identity: 310.9.16.0, 276162560 bytes, SHA256
+`CDFA6C1EC784867182164C7836F324F087B5C9F374D0C9FE46F54999FEABF3ED`,
+Authenticode `NotSigned`. This is a community-modified NVIDIA NR runtime,
+not a validly NVIDIA-signed original, open-source model, or certification of
+all RTX hardware. ShortFuse describes SM75/86/89 compatibility kernels;
+Veyra preserves the actual architecture for this explicitly selected profile.
+Source-archive SHA256 is
+`623C9B12755B58E6F84C1FD131AA6C57F11565D8EF3F831665358CB6132976AB`.
+
+No DLL, CUDA kernel, model, SDK, or ReShade add-on enters source Git. Veyra
+copies the supplied DLL without modifying its disk bytes; existing NVIDIA
+licenses/notices are retained, and this local authorization grants no new
+public redistribution permission. See `docs/NR_SF_310916_PLAN_2026-10-17.md`
+and the corresponding report for measured conditions and untested hardware.
+
## Compressed Matroska subtitles (2026-10-09)
The subtitle candidate rebuilds the existing LGPL FFmpeg n9.0.1 with zlib
diff --git a/docs/NR_SF_310916_PLAN_2026-10-17.md b/docs/NR_SF_310916_PLAN_2026-10-17.md
new file mode 100644
index 00000000..167ec34a
--- /dev/null
+++ b/docs/NR_SF_310916_PLAN_2026-10-17.md
@@ -0,0 +1,15 @@
+# SF NR 310.9.16 本地接入
+
+用户在 2026-10-17 提供桌面 nvngx_dlssnr.dll,授权先开分支适配,并明确先直接替换 SF-v2 测试。基线 main b571a44,分支 codex/nr-sf-310916-20261017;本轮不合 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 身份限制,不扩大公开分发许可。
+
+开工存档 E:/项目/Veyra/archives/nr-sf-310916-20261017,含 82 工作树/94 分支/509 脏文件快照与备份、核验过的全引用 bundle、候选原件;checkpoint/pre-nr-sf-310916-20261017。其它工作树、已发布包和用户配置保持。
+
+1. 在私有测试 app 的 runtime/experimental/nr-ampere 槽位替换 SF-v2,保留旧文件;先用同一 EXE、同一 GTA6 4K 源、内部 1080p、同设置进行旧/新/新/旧短测。验证实际 DLL 路径、成功推理、输出图像、计时与错误。
+2. 新 DLL 带两个模型;不把换文件当成使用新模型的证据。若计时/画面或上游契约表明需要模型参数,仅在证据明确后作最小适配,保留回退。
+3. 检查现有 Ampere 架构兼容分支的版本策略:310.9.16 目前落在 unknown 路径。若确认为自带 FP16 兼容构建,限定到相应运行槽/已识别版本保留真实 GPU 架构,不扩改 SR/FG 或系统 NVAPI。
+4. 必要时新建本轮 E 盘构建,运行 NR 运行库切换、参数/恢复及真实播放回归。所有单测试 <=300 秒、构建 <=900 秒,不造 GPU 竞争负载、不派 Agent。
+5. 记录明确来源/身份、实测和未测硬件边界。RTX5070 的结果不能代替 RTX20/30/40 验收,输出变化不能当作画质提升;性能只能描述本次相同条件下的 GPU 阶段。
+
+产物只在 E:/项目/Veyra/{archives,tmp,tests,logs,reports,build}/nr-sf-310916-20261017。保持 UI33ms/250ms、源时戳/队列/颜色/其它效果器不变;无像素回读或逐帧等待进入正常播放。
diff --git a/include/veyra/engine/EnhancementSettings.h b/include/veyra/engine/EnhancementSettings.h
index ec411a5f..f1f77e0b 100644
--- a/include/veyra/engine/EnhancementSettings.h
+++ b/include/veyra/engine/EnhancementSettings.h
@@ -96,15 +96,15 @@ constexpr bool validNrRuntime(NrRuntime runtime) {
runtime == NrRuntime::Ampere || runtime == NrRuntime::NvidiaOriginal || runtime == NrRuntime::LmxxfAmd;
}
// Persisted value 1 selected the retired RTX40 DLL. Never load that DLL in
-// current builds; preserve 0 (Lecram) and 2 (SF-v2) as explicit user choices.
+// current builds; preserve 0 (Lecram) and 2 (SF compatible) as explicit user choices.
constexpr NrRuntime currentNrRuntime(NrRuntime runtime) {
return runtime == NrRuntime::Community ? NrRuntime::Ampere : runtime;
}
constexpr std::string_view nrRuntimeName(NrRuntime runtime) {
switch(runtime) {
case NrRuntime::Original:return "community-Lecram-RTX50";
- case NrRuntime::Community:return "community-SF-v2-RTX20-RTX50-legacy40";
- case NrRuntime::Ampere:return "community-SF-v2-RTX20-RTX50";
+ case NrRuntime::Community:return "community-SF-RTX20-RTX50-legacy40";
+ case NrRuntime::Ampere:return "community-SF-RTX20-RTX50";
case NrRuntime::NvidiaOriginal:return "NVIDIA-original-RTX50-310.8.0";
case NrRuntime::LmxxfAmd:return "lmxxf-AMD-RDNA4";
}
diff --git a/include/veyra/ngx/NrArchitecturePolicy.h b/include/veyra/ngx/NrArchitecturePolicy.h
index 72ad86b9..b728ad44 100644
--- a/include/veyra/ngx/NrArchitecturePolicy.h
+++ b/include/veyra/ngx/NrArchitecturePolicy.h
@@ -19,9 +19,15 @@ constexpr bool rewriteNrAmpereArchitecture(uint32_t& architecture, bool selected
// slot (NeuralScreen's 310.8.0.0). The ShortFuse "SF" family (310.8.2.x and the
// later Lecram 310.8.3.x) lifts the gate itself and picks an FP16 route from the
// real architecture, so reporting Blackwell there would select kernels Ampere
-// cannot run. Versions come from the loaded DLL's VS_FIXEDFILEINFO.
+// cannot run. The user-approved compat-fp16-310.9.16-cuda13.4.3 build also
+// supplies SM75/86/89 kernels and needs the real architecture. This policy is
+// used only for the explicitly selected compatible NR slot, never SR/FG.
+// Versions come from the loaded DLL's VS_FIXEDFILEINFO; unknown builds retain
+// the historical policy instead of treating all future versions as compatible.
constexpr bool nrRuntimeNeedsAmpereRewrite(uint32_t fileVersionMs, uint32_t fileVersionLs) {
const uint32_t major=fileVersionMs>>16, minor=fileVersionMs&0xFFFFu, build=fileVersionLs>>16;
- return !(major==310u&&minor==8u&&build>=2u);
+ const bool sfLegacy=major==310u&&minor==8u&&build>=2u;
+ const bool sf310916=fileVersionMs==((310u<<16)|9u)&&fileVersionLs==(16u<<16);
+ return !(sfLegacy||sf310916);
}
}
diff --git a/scripts/stage-ui-migration.ps1 b/scripts/stage-ui-migration.ps1
index 43964008..cbf09740 100644
--- a/scripts/stage-ui-migration.ps1
+++ b/scripts/stage-ui-migration.ps1
@@ -92,6 +92,18 @@ $nrSlots = @(
Sha = '6EB209E764F39872625DEBD6ABAF45E2BB6322F6F270F781F70C059AE30B3927'; Size = 165830144; Sig = 'NotSigned'
Class = 'user-approved-community-SF-v2-310.8.2-RTX20-RTX50-compatible-runtime'; Source = 'community SF-v2 310.8.2 (RankFTW/rhi-repo dlssnr-310.8.SF-v2)' }
) | Where-Object { $_.Given }
+# The 2026-10-17 user-provided compatibility build replaces the same saved
+# slot; keep SF-v2 accepted for older protected packages. This is publisher
+# staging audit only, never an application DLL-loading hash lock.
+$sf310916Hash = 'CDFA6C1EC784867182164C7836F324F087B5C9F374D0C9FE46F54999FEABF3ED'
+if ($NrAmpereRuntime -and (Get-FileHash -LiteralPath $NrAmpereRuntime -Algorithm SHA256).Hash -eq $sf310916Hash) {
+ $sfSlot = @($nrSlots | Where-Object { $_.Path -eq 'runtime/experimental/nr-ampere/nvngx_dlssnr.dll' })[0]
+ $sfSlot.Sha = $sf310916Hash
+ $sfSlot.Size = 276162560
+ $sfSlot.Sig = 'NotSigned'
+ $sfSlot.Class = 'user-approved-community-SF-compat-fp16-310.9.16-RTX20-RTX50-local-runtime'
+ $sfSlot.Source = 'ShortFuse compat-fp16-310.9.16-cuda13.4.3; https://discord.com/channels/1408098019194310818/1543976771920330884/1560685677816057856'
+}
if ($nrSlots) {
# A copied runtime keeps the release untouched while one slot is replaced.
$runtimeCopy = Join-Path $appPath 'runtime'
diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cpp
index 4e8c1d94..63b58a67 100644
--- a/src/ui/QmlPlayerBridge.cpp
+++ b/src/ui/QmlPlayerBridge.cpp
@@ -1149,7 +1149,7 @@ QVariantMap QmlPlayerBridge::effectAvailability(const QString& id) const {
QVariantList QmlPlayerBridge::nrRuntimeChoices() const {
QVariantList choices;
const auto caps = effectCapabilities();
- for (const auto& entry : std::initializer_list<std::pair<int, QString>>{{0, "RTX 50 · Lecram"}, {2, "RTX 20–50 · SF-v2"}, {3, tr("RTX 50 · NVIDIA 原版")}, {4, tr("RX 9000 · lmxxf(实验)")}}) {
+ for (const auto& entry : std::initializer_list<std::pair<int, QString>>{{0, "RTX 50 · Lecram"}, {2, "RTX 20–50 · SF"}, {3, tr("RTX 50 · NVIDIA 原版")}, {4, tr("RX 9000 · lmxxf(实验)")}}) {
const auto cap = caps.value("nr" + QString::number(entry.first)).toMap();
choices << QVariantMap{{"id", QString::number(entry.first)}, {"label", entry.second}, {"disabled", !cap.value("available").toBool()}, {"note", cap.value("reason")}};
}
diff --git a/tests/integration/NrRuntimeAssertionTests.cpp b/tests/integration/NrRuntimeAssertionTests.cpp
index 2a586bb2..0d5fd6f8 100644
--- a/tests/integration/NrRuntimeAssertionTests.cpp
+++ b/tests/integration/NrRuntimeAssertionTests.cpp
@@ -64,7 +64,8 @@ void auditNrArchitectureRewriteScope()
// Version policy: builds that lift the gate themselves must keep the real
// architecture, because reporting Blackwell makes them choose kernels Ampere
// cannot run. 310.8.0 / 310.8.1 (the NeuralScreen line) still need the rewrite;
-// 310.8.2+ and anything unknown do not.
+// 310.8.2+ and the known 310.9.16 compatibility build do not. Unknown builds
+// retain the historical rewrite policy.
void auditAmpereRewriteVersionPolicy()
{
using namespace veyra::ngx;
@@ -78,6 +79,7 @@ void auditAmpereRewriteVersionPolicy()
const auto [ms082, ls082] = version(310, 8, 2);
const auto [ms083, ls083] = version(310, 8, 3);
const auto [ms090, ls090] = version(310, 9, 0);
+ const auto [ms0916, ls0916] = version(310, 9, 16);
const auto [ms070, ls070] = version(310, 7, 0);
const auto [ms100, ls100] = version(311, 0, 0);
const auto [msZero, lsZero] = version(0, 0, 0);
@@ -89,12 +91,16 @@ void auditAmpereRewriteVersionPolicy()
check("310.8.1 needs ampere rewrite", nrRuntimeNeedsAmpereRewrite(ms081, ls081));
check("310.8.2 keeps real architecture", !nrRuntimeNeedsAmpereRewrite(ms082, ls082));
check("310.8.3 (Lecram) keeps real architecture", !nrRuntimeNeedsAmpereRewrite(ms083, ls083));
+ check("SF compat FP16 310.9.16 keeps real architecture", !nrRuntimeNeedsAmpereRewrite(ms0916, ls0916));
+ check("unknown 310.9.16 revision retains policy", nrRuntimeNeedsAmpereRewrite(ms0916, ls0916|1u));
+ const auto [ms0917, ls0917] = version(310, 9, 17);
+ check("unknown next 310.9 build retains policy", nrRuntimeNeedsAmpereRewrite(ms0917, ls0917));
// Everything else is deliberately conservative, including versions newer
// than the ones we have tested: an unrecognised build gets the rewrite
// rather than the benefit of the doubt. This is the documented policy in
// NrArchitecturePolicy.h ("unknown new versions default to rewrite"); the
- // trade-off is recorded in the WORKLOG as a known limitation, because a
- // future self-lifting build outside the 310.8 line would be mis-handled.
+ // The explicitly audited 310.9.16 compatibility build above is the only
+ // new-minor exemption. Future self-lifting builds still need review.
check("310.7 unverified build still rewrites", nrRuntimeNeedsAmpereRewrite(ms070, ls070));
check("310.9 unknown build still rewrites", nrRuntimeNeedsAmpereRewrite(ms090, ls090));
check("311.0 unknown build still rewrites", nrRuntimeNeedsAmpereRewrite(ms100, ls100));