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

Skip native-size RTX Video SR for uncompressed capture

Veyra Goal Agentd06ed048cfa7
diff --git a/AGENTS.md b/AGENTS.md
index b5126557..ec69a84c 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
# Veyra 项目 Agent 执行规则
-> **2026-10-15 现场修复(Claude)**:用户提交 veyra-qml(56).log(卡顿、未响应后条栏图标消失,重连采集后恢复)与 logs(18).zip(2.0.7 打开采集卡闪退),要求排查修复、汇报后关机。存档 `checkpoint/pre-claude-field-20261015`(main 7571919)与 E 盘 `archives/claude-field-20261015`,分支 `claude/field-20261015`。只改采集格式列表缓存/桥接属性/枚举去重、界面设备重建后图标重绘、采集卡 GPU 失败后自动重连一次、收尾补写 DRED 及三个默认不生效的测试开关(`VEYRA_TEST_CAPTURE_EXTRA_RATES`、`VEYRA_TEST_UI_DEVICE_REMOVE`、`VEYRA_TEST_GPU_FAILURE`)。不改默认 GPU 优先级/NR 版本、运行库、模型、驱动、用户配置;无 merge/push/Release、无子 Agent。长时间变卡与 GPU 卡死根因未定,不宣称已修复。用户追加:帧率菜单默认只列常用帧率(±0.15% 含 59.94 类),帧率多的卡出现“显示全部可用帧率”开关(偏好 captureShowAllFrameRates,默认关)。详见 docs/FIELD_FIXES_2026-10-15.md。
+> **2026-10-15 现场修复(Claude)**:用户提交 veyra-qml(56).log(卡顿、未响应后条栏图标消失,重连采集后恢复)与 logs(18).zip(2.0.7 打开采集卡闪退),要求排查修复、汇报后关机。存档 `checkpoint/pre-claude-field-20261015`(main 7571919)与 E 盘 `archives/claude-field-20261015`,分支 `claude/field-20261015`。只改采集格式列表缓存/桥接属性/枚举去重、界面设备重建后图标重绘、采集卡 GPU 失败后自动重连一次、收尾补写 DRED 及三个默认不生效的测试开关(`VEYRA_TEST_CAPTURE_EXTRA_RATES`、`VEYRA_TEST_UI_DEVICE_REMOVE`、`VEYRA_TEST_GPU_FAILURE`)。不改默认 GPU 优先级/NR 版本、运行库、模型、驱动、用户配置;无 merge/push/Release、无子 Agent。长时间变卡与 GPU 卡死根因未定,不宣称已修复。用户追加:帧率菜单默认只列常用帧率(±0.15% 含 59.94 类),帧率多的卡出现“显示全部可用帧率”开关(偏好 captureShowAllFrameRates,默认关)。用户追加(5090 日志 44/57):原尺寸 RTX Video SR 只给压缩视频,屏幕捕获与无压缩采集格式在原尺寸不跑超分(回到 2.0.6)。详见 docs/FIELD_FIXES_2026-10-15.md。
> **2026-10-13 2.0.7正式发布授权**:用户明确直接采用已验2.0.7-test-r2两个包发布GitHub、六群原图替换、README/Release加知识库、完整说明2.0.6以来变化。按docs/RELEASE_2.0.7_PLAN_2026-10-13.md,只改发布文档/图片和外部文件名,ZIP/EXE/运行组件逐字节保持。允许本地main合入、普通push nrvideo/main与两个标签、主v2.0.7两资产及独立非latest源码归档;保留原赞助/Discord/Ko-fi/width220。69旧树/509脏文件、旧包和旧Release保护,全产物E盘;无子Agent/代发/关机。不伪称包内test标识被去掉,不把混合模型取舍或合成误差包装成普遍画质/提速,也不宣称NV显存/BMD/HDR现场已根治。
diff --git a/docs/FIELD_FIXES_2026-10-15.md b/docs/FIELD_FIXES_2026-10-15.md
index 587f4e34..12eeeabc 100644
--- a/docs/FIELD_FIXES_2026-10-15.md
+++ b/docs/FIELD_FIXES_2026-10-15.md
@@ -70,6 +70,15 @@
- 代码:`CaptureFormatSelection.h`(`captureCommonFrameRate`、`captureVisibleFrameRates`、`captureDefaultFrameRate`)、桥接 `captureHiddenFrameRates`、`DialogHost.qml` 开关行、四语翻译。
- 验证:单元测试新增 1–120 fps + 59.94 的卡(短列表 8 行 120/100/60/59.94/50/30/25/24、隐藏 113、显示全部 121)、选中的非常用帧率保留、同一 60 fps 两个间隔只列一行、无常用帧率的分辨率全列且不出开关、换分辨率落到 24 而不是 1 fps,全部通过。T911 原样:1080p 7 个帧率(240.004、120、60、59.94、50、30、29.97)全是常用,不出开关,行为不变(`logs/claude-field-20261015/rates-t911-095201`)。模拟每项多报 1–160 fps:1080p 短列表 11 行(240.004 到 24),开关显示隐藏 153 个,打开后 164 行(`rates-160-sorted-095436`、`rates-menu-095540`);英文界面开关行不溢出(`rates-en-095732`)。回归:`logs/claude-field-20261015/unit-rates-final-095820` 全部通过(qml_quick 68/0)。
+## 追加(用户 2026-10-15):5090 用户 2.0.7 开销变大——原尺寸 RTX Video SR 只给压缩视频
+
+用户提交 veyra-qml(44).log(10-08,2.0.6)与 veyra-qml(57).log(10-14/15,2.0.7),反馈“相同参数功耗、负载变高”,并自己指出:“之前2.0.6 4K画面开启4K超分 这个超分是不会启用的,而2.0.7 4k画面开启超分也会启动”。
+
+- 证据(RTX 5090,美乐威 4K59.94 P010,同样 NR + 补帧):2.0.6 4K→4K 时超分不运行(graph sr=0);2.0.7 运行 RTX Video SR 4K→4K 质量 4,超分每帧 p95 约 8.7 ms,NR p95 也从约 4.5 ms 升到约 8.5 ms,合计超出 16.7 ms 帧预算。
+- 来源:108cbaa(10-10 “native video SR”)让 RTX Video SR 1–4 档在原尺寸也执行“压缩伪影修复”,修的是“4K 片源选 4K 超分开关无区别”;对无压缩采集没有伪影可修,只增加开销。
+- 用户选择“只给压缩视频”:`StageRequest::uncompressedSource`(屏幕捕获,或采集卡所选格式不是压缩格式)时不做原尺寸修复,回到 2.0.6;视频文件、PS5/PC/Xbox 串流、MJPEG/H.264 采集照旧。放大(1080p→4K 等)、DLSS/FSR 规则不变。`CaptureCardSource::compressedVideo()` 提供所选格式是否压缩。专业/节点页超分说明改为“原尺寸时修复视频文件和串流的压缩伪影,无压缩的采集卡格式在原尺寸不运行”,四语翻译。
+- 验证:effect_chain 新增四项(压缩 4K 仍修复、无压缩 4K→4K 跳过、无压缩 1080p 仍放大到 4K、DLSS 原尺寸仍跳过)通过;回归全部通过(`logs/claude-field-20261015/unit-nativesr-102817`,qml_quick 68/0)。T911 实卡 4K60:NV12 开超分(4K、质量 4)graph sr=0、超分耗时 0(`nativesr-nv12-102948`);MJPEG 开超分 sr=1、原尺寸修复照旧(本机 5070 约 30 ms/帧,`nativesr-mjpg-103019`)。
+
## 测试包(基于 2.0.7 r2,只替换 veyra_qml_ui.exe、DialogHost.qml、VIcon.qml,不含任何用户设置)
- 目录 `E:/项目/Veyra/test-packages/claude-field-20261015/`(DELIVERY.json,打包脚本 `tmp/claude-field-20261015/package.py`,源码 d2239c6)。
- 覆盖补丁 `Veyra-2.0.7-test-field-patch.zip`(8120432 字节,SHA256 `fa715aad4a4da09247798ef021c74e6227a4091714b7af3df19ef02def3367c1`):解压到原 2.0.7 文件夹覆盖,NVIDIA/AMD 包通用(两包的 2.0.7 exe 相同),原设置保留。
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 40932c05..58dadf2c 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -9361,3 +9361,9 @@ v2.0.7 ID 410800361,published_at 2026-10-12T16:24:59Z,latest/非草稿/非
- 常用帧率 24/25/30/50/60/100/120/144/165/240,±0.15% 内算同一帧率(含 59.94、60.00024、240.004);默认短列表、同帧率一行、选中帧率保留、无常用帧率时全列,按帧率从高到低;有隐藏时出现开关(偏好 captureShowAllFrameRates,默认关);换分辨率默认落到第一个常用帧率。
- 验证:新增单元测试通过;T911 原样不变(1080p 7 个常用帧率、无开关);模拟 1–160 fps 时 1080p 11 行、隐藏 153、全部 164;英文布局正常;回归 6 组 + qml_quick 68/0 通过(logs/claude-field-20261015/unit-rates-final-095820)。详见 docs/FIELD_FIXES_2026-10-15.md。
- 测试包 r2:E:/项目/Veyra/test-packages/claude-field-20261015-r2(补丁 cd74c3442d94bd10…,NVIDIA 09db90a8cbed1a58…,AMD fd637493121e8bed…),冷启动通过。
+
+## 2026-10-15 5090 开销变大:原尺寸 RTX Video SR 只给压缩视频(Claude,用户追加)
+
+- 日志 44(2.0.6)/57(2.0.7):同为美乐威 4K P010 + NR + 补帧,2.0.7 多跑 RTX Video SR 4K→4K(质量 4,p95 约 8.7 ms/帧),NR 也变慢,超出 60 fps 预算。来源 108cbaa 的原尺寸修复。
+- 用户选“只给压缩视频”:屏幕捕获和无压缩采集格式在原尺寸不跑超分(回到 2.0.6);文件、串流、MJPEG/H.264 采集照旧;放大与 DLSS/FSR 规则不变;超分说明文字与翻译更新。
+- 验证:effect_chain 新增 4 项通过,回归全部通过;T911 4K60 NV12 开超分 sr=0、耗时 0,MJPEG 开超分 sr=1。详见 docs/FIELD_FIXES_2026-10-15.md。
diff --git a/i18n/catalog.json b/i18n/catalog.json
index d926f6db..5d1057fc 100644
--- a/i18n/catalog.json
+++ b/i18n/catalog.json
@@ -15744,6 +15744,13 @@
"zh-TW": "預設只列常用幀率:24、25、30、50、60、100、120、144、165、240(含 59.94 這類非整數幀率)。這張卡另外回報了 %1 個幀率",
"en": "Only common frame rates are listed by default: 24, 25, 30, 50, 60, 100, 120, 144, 165, 240 (including non-integer rates such as 59.94). This card reports %1 more",
"ja": "既定では一般的なフレームレートのみ表示します:24、25、30、50、60、100、120、144、165、240(59.94 などの非整数レートを含む)。このカードはほかに %1 個のフレームレートを報告しています"
+ },
+ {
+ "zh": "放大时重建细节;原尺寸时修复视频文件和串流的压缩伪影,无压缩的采集卡格式在原尺寸不运行。效果取决于片源。",
+ "src": "qml/Veyra/ProPage.qml",
+ "zh-TW": "放大時重建細節;原尺寸時修復影片檔案和串流的壓縮瑕疵,無壓縮的擷取卡格式在原尺寸不執行。效果取決於片源。",
+ "en": "Reconstructs detail when upscaling; at native size it reduces compression artifacts in video files and streams, and does not run for uncompressed capture-card formats. Results depend on the source.",
+ "ja": "拡大時は細部を再構成し、元の解像度では動画ファイルとストリームの圧縮ノイズを軽減します。非圧縮のキャプチャーカード形式では元の解像度で実行しません。効果はソースにより異なります。"
}
]
}
diff --git a/include/veyra/engine/GraphDescription.h b/include/veyra/engine/GraphDescription.h
index f7a07f11..86d7e9b5 100644
--- a/include/veyra/engine/GraphDescription.h
+++ b/include/veyra/engine/GraphDescription.h
@@ -45,6 +45,8 @@ struct StageRequest {
bool exportJob=false; // native NVIDIA NR, bounded AMD NR, no present-sink FG/NR-first order
bool nvidiaAdapter=true;
bool amdNr=false; // AMD adapter: NR runs on the lmxxf runtime (no NGX)
+ // Raw capture-card or screen frames: nothing compressed for native-size RTX Video SR to repair.
+ bool uncompressedSource=false;
const ChainRuntimeOrder* nodeOrder=nullptr; // paired with this settings transaction
};
@@ -94,8 +96,10 @@ inline pipeline::ResolutionPlan describeStages(const StageRequest& request,const
desc.nrWidth=plan.nr.width;desc.nrHeight=plan.nr.height;
desc.flowWidth=plan.flow.width;desc.flowHeight=plan.flow.height;
// RTX Video SR can restore compressed video at its original resolution.
- // ResolutionPlan::srApplied describes enlargement, not SDK execution.
- const bool nativeVideoRestore=request.sr&&!request.stillImage&&request.nvidiaAdapter&&
+ // ResolutionPlan::srApplied describes enlargement, not SDK execution. Raw capture has
+ // no compression artifacts: there a source already at the target skips SR as in 2.0.6
+ // (5090 field log 57: 4K->4K VSR cost ~8.7 ms a frame and pushed 60 fps over budget).
+ const bool nativeVideoRestore=request.sr&&!request.stillImage&&!request.uncompressedSource&&request.nvidiaAdapter&&
settings.videoSrQuality>=1&&settings.videoSrQuality<=4;
desc.enableSr=(plan.srApplied||nativeVideoRestore)&&(request.nvidiaAdapter||settings.videoSrQuality==kVideoSrFsr);
desc.enableNr=request.nr&&(request.nvidiaAdapter||request.amdNr)&&(!settings.nrLayerCount||settings.activeNrLayerCount()>0);
diff --git a/include/veyra/source/CaptureCardSource.h b/include/veyra/source/CaptureCardSource.h
index c5557748..72e2db50 100644
--- a/include/veyra/source/CaptureCardSource.h
+++ b/include/veyra/source/CaptureCardSource.h
@@ -69,6 +69,8 @@ public:
sink::CaptureAudioState audioState()const;
const SourceInfo& info()const override;
const std::wstring& errorMessage()const{return error_;}
+ // The selected media type is compressed (MJPEG, H.264, ...) and decoded by Veyra.
+ bool compressedVideo()const;
SourceReadStatus read(pipeline::FramePacket&,const AVFrame**)override;
SourceReadStatus tryRead(pipeline::FramePacket&,const AVFrame**);
// Auto-reset event signalled after each delivered sample; lets the graph
diff --git a/qml/Veyra/NodePage.qml b/qml/Veyra/NodePage.qml
index 9db73aaf..d8af3d58 100644
--- a/qml/Veyra/NodePage.qml
+++ b/qml/Veyra/NodePage.qml
@@ -1443,7 +1443,7 @@ VPage {
VRow {
label: qsTr("目标尺寸")
hint: veyra.videoSrQuality >= 1 && veyra.videoSrQuality <= 4
- ? qsTr("放大时重建细节;原尺寸时修复压缩伪影。效果取决于片源。")
+ ? qsTr("放大时重建细节;原尺寸时修复视频文件和串流的压缩伪影,无压缩的采集卡格式在原尺寸不运行。效果取决于片源。")
: qsTr("目标须大于片源尺寸;已达到目标时不执行超分。")
VSeg {
options: [{ id: "1", label: "2K" }, { id: "2", label: "4K" }, { id: "4", label: "5K" }, { id: "5", label: "6K" }, { id: "6", label: "7K" }, { id: "3", label: "8K" }]
diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qml
index 084df410..d5a74fb2 100644
--- a/qml/Veyra/ProPage.qml
+++ b/qml/Veyra/ProPage.qml
@@ -1328,7 +1328,7 @@ VPage {
VRow {
label: qsTr("目标尺寸")
hint: veyra.videoSrQuality >= 1 && veyra.videoSrQuality <= 4
- ? qsTr("放大时重建细节;原尺寸时修复压缩伪影。效果取决于片源。")
+ ? qsTr("放大时重建细节;原尺寸时修复视频文件和串流的压缩伪影,无压缩的采集卡格式在原尺寸不运行。效果取决于片源。")
: qsTr("目标须大于片源尺寸;已达到目标时不执行超分。")
VSeg {
options: [
diff --git a/src/engine/EngineController.cpp b/src/engine/EngineController.cpp
index 7497e9b9..7cf677c0 100644
--- a/src/engine/EngineController.cpp
+++ b/src/engine/EngineController.cpp
@@ -598,6 +598,7 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
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;r.amdNr=amdNrAdapter;
+ r.uncompressedSource=isScreen||(physicalCapture&&!captureSource.compressedVideo());
r.nodeOrder=o.nodeOrder?&*o.nodeOrder:nullptr;return r;
};
describeStages(stageRequest(options),options.snapshot(),gd);
diff --git a/src/source/CaptureCardSource.cpp b/src/source/CaptureCardSource.cpp
index 9a1f6fab..003c4c08 100644
--- a/src/source/CaptureCardSource.cpp
+++ b/src/source/CaptureCardSource.cpp
@@ -905,6 +905,7 @@ void CaptureCardSource::videoReset(bool resetAudio){if(p_->wasapi)p_->wasapi->vi
void CaptureCardSource::setAudioSync(unsigned mode,int offset){if(p_->wasapi)p_->wasapi->setSync(mode,offset);else if(p_->audioSession)p_->audioSession->setSync(mode,offset);}
sink::CaptureAudioState CaptureCardSource::audioState()const{auto state=p_->wasapi?p_->wasapi->snapshot():p_->audioSession?p_->audioSession->snapshot():sink::CaptureAudioState{};if(!p_->audioError.empty())state.error=p_->audioError;return state;}
bool CaptureCardSource::open(const SourceOpenDesc& desc){return configure(desc)&&start();}
+bool CaptureCardSource::compressedVideo()const{return p_->compressedPath;}
bool CaptureCardSource::configureDeckLink(const SourceOpenDesc& desc){
auto& p=*p_;CaptureSelection selection;if(!parseCapturePath(desc.path,selection))return false;
const auto formats=formatsByPath(selection.videoPath);
diff --git a/tests/unit/EffectChainTests.cpp b/tests/unit/EffectChainTests.cpp
index 6c7f988a..037d8d81 100644
--- a/tests/unit/EffectChainTests.cpp
+++ b/tests/unit/EffectChainTests.cpp
@@ -1039,6 +1039,22 @@ __declspec(noinline) void testInactiveEffectEdits(){
resolveHdrTuning(next.hdrCurve,next.hdrMetadata,curve,resolved);
check(resolved.maxCllNits==600&&!metadata.sameActiveVideoParameters(next),"display peak remains active for enabled metadata even with the pixel curve off");
}
+// 2.0.7 runs RTX Video SR at native size to repair compression artifacts. Raw capture has
+// none, so a raw source already at the target skips SR as 2.0.6 did (5090 field log 57).
+static void testNativeVideoSrPolicy(){
+ EnhancementSettings s;s.nr=false;s.sr=true;s.multiplier=1;s.videoSrQuality=4;s.srTarget=veyra::pipeline::SrTarget::Uhd4K;
+ StageRequest request;request.sr=true;request.width=3840;request.height=2160;
+ veyra::pipeline::EnhanceGraphDesc d;
+ describeStages(request,s,d);
+ check(d.enableSr,"native-size RTX Video SR still repairs a compressed 4K source");
+ request.uncompressedSource=true;describeStages(request,s,d);
+ check(!d.enableSr,"raw 4K capture at a 4K target skips SR as in 2.0.6");
+ request.width=1920;request.height=1080;describeStages(request,s,d);
+ check(d.enableSr,"raw 1080p capture still upscales to the 4K target");
+ request.uncompressedSource=false;request.width=3840;request.height=2160;s.videoSrQuality=0;describeStages(request,s,d);
+ check(!d.enableSr,"DLSS SR keeps skipping a source already at the target");
+}
+
int main() {
{
using namespace veyra;using namespace veyra::engine;
@@ -1107,6 +1123,7 @@ int main() {
testNodeSplitNrDescription();
testNodePreSrProtectionDescription();
testNodeInterNrProtectionDescription();
+ testNativeVideoSrPolicy();
std::printf(failures ? "effect chain: %d FAILURES\n" : "effect chain: all checks passed\n", failures);
return failures ? 1 : 0;
}