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++
Clarify NVIDIA low latency boost behavior under load
Veyra Goal Agent3593e52061b8
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex b9f3664b..29161226 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -473,3 +473,44 @@ PID61528,用户直接运行2.1.2 NVIDIA包;不激活窗口、不启动额外## 2026-11-02 GitHub交流群更新到8群用户明确授权:7群已满,替换为8群原图。当前README双语、支持区、2.1.2更新说明与2.1.2/源码两个Release正文同步;有效期仍11月9日前,赞助图与双码各220布局保持。只改图片及当前入口,不重写发布标签或打包资产。执行git diff --check,推送后匿名读取当前文档/新图,对比用户原图SHA256,并核对两Release正文和所有资产id/摘要保持;具体结果及原正文保全见reports/codex-group8-qr-20261102/FINAL.json与before.json。文档更新不运行产品构建/测试。++## 2026-11-02 英伟达低延迟“开+增强”高负载提示(Claude)++用户:“那算了,加个提示好了,建议高负载的情况下开而不是开+增强,增强有概率导致掉帧”。++**依据**:现场 RTX 5090 日志(4K60 采集+NR+DLSS FG/VFG,见 `E:/项目/Veyra/reports/claude-ll-boost-field-20261103/FINDINGS.md`)。+- 增强档下,驱动在每个源帧读取前的 Reflex Sleep 平均 4–18 ms,最长 27 ms;补帧比应有的少 8–21%。+- “开”档的 Sleep 约 0.003 ms。两档 GPU 耗时相同。++**分支**:+- 分支 `claude/ll-boost-hint-20261102`,独立工作树 `E:/项目/Veyra/worktrees/ll-boost-hint-20261102`,基于 main `fedd7fc`。+- 共用施工树当时在 Codex 的 `codex/vfg-ampere-20261102`,Codex 进程在运行,所以没有切换或改动那棵树,也没有动它的构建目录。++**改动**:+- `qml/Veyra/NvidiaLowLatencyEditor.qml`:+ - 提示改为“减少处理排队。高负载时建议选「开」而不是「开+增强」:增强有概率导致掉帧,还会提高 GPU 频率、增加功耗。”+ - 该行加 objectName,供测试使用。+- `i18n/catalog.json`:更新同一条目的 zh / zh-TW / en / ja,条目位置不变;格式按 `json.dumps(indent=1)` 校验后写回。+- `tests/qml/QuickSmokeTests.cpp`:模拟 `veyra` 补 4 个属性(默认值与之前未定义时等价);注册 NvidiaLowLatencyEditor。+- 新增 `tests/qml/quick/tst_nvidia_low_latency.qml`,3 项:+ - 提示引用真实的选项文字。+ - 提示显示在选项下方。+ - 不可用时仍显示“需要 NVIDIA 显卡”。+- `tests/unit/UiLanguageTests.cpp`:新提示的英文译文须精确匹配。++**命令与结果**:+- `py -3.11 -X utf8 -B -I scripts/acceptance/build-recording-handoff.py --task claude-ll-boost-hint-20261102 --root <本工作树> --label 2.1.2 veyra_qml_quick_tests veyra_ui_i18n_tests`+ - 新构建目录 `build/claude-ll-boost-hint-20261102`,46.6 秒通过。+- `tmp/claude-ll-boost-hint-20261102/run_tests.py`+ - QtQuick 137/0/1(35.9 秒,含新增 3 项)。+ - i18n 0 失败。+- 离屏渲染 `reports/claude-ll-boost-hint-20261102/hint-render.png`:+ - 第一次中文全是方块:离屏平台没有中文字体。加 `QT_QPA_FONTDIR=C:/Windows/Fonts` 后正常。+ - 第二次选中高亮还没到位就截图了,等 600 ms 后重渲。++**空间**:新增工作树约 90 MB,构建目录约 47 MB。++**未做**:+- 没有构建主程序,也没有在真实界面里看。+- 没有改低延迟或驱动的行为本身。+- 未提交、未合 main、未 push。diff --git a/i18n/catalog.json b/i18n/catalog.jsonindex 4e064f13..d5c24ce5 100644--- a/i18n/catalog.json+++ b/i18n/catalog.json@@ -4272,11 +4272,11 @@"ja": "処理の待ち行列を減らす"},{- "zh": "减少处理排队;增强档提高 GPU 频率,可能增加功耗。",+ "zh": "减少处理排队。高负载时建议选「开」而不是「开+增强」:增强有概率导致掉帧,还会提高 GPU 频率、增加功耗。","src": "qml/NvidiaLowLatencyEditor.qml",- "zh-TW": "減少處理排隊;增強模式提高 GPU 時脈,可能增加功耗。",- "en": "Reduce processing queue depth. Boost requests higher GPU clocks and may increase power use.",- "ja": "処理の待ち行列を減らします。ブーストは GPU クロックを上げ、消費電力が増える場合があります。"+ "zh-TW": "減少處理排隊。高負載時建議選「開」而不是「開+增強」:增強有機率導致掉幀,還會提高 GPU 時脈、增加功耗。",+ "en": "Reduce processing queue depth. Under heavy load, choose On rather than On + Boost: Boost can drop frames, and it raises GPU clocks and power use.",+ "ja": "処理の待ち行列を減らします。高負荷時は「オン+ブースト」ではなく「オン」を推奨します。ブーストはフレーム落ちを起こすことがあり、GPU クロックと消費電力も上がります。"},{"zh": "减少暗部被进一步压黑,保留提亮细节",diff --git a/qml/Veyra/NvidiaLowLatencyEditor.qml b/qml/Veyra/NvidiaLowLatencyEditor.qmlindex 36bcd5eb..ed7f1313 100644--- a/qml/Veyra/NvidiaLowLatencyEditor.qml+++ b/qml/Veyra/NvidiaLowLatencyEditor.qml@@ -7,9 +7,12 @@ ColumnLayout {Layout.fillWidth: truespacing: 4VRow {+ objectName: root.namePrefix+"-nvidia-low-latency-row"label: qsTr("英伟达低延迟")hintBelow: true- hint: root.available ? qsTr("减少处理排队;增强档提高 GPU 频率,可能增加功耗。") : qsTr("需要 NVIDIA 显卡")+ // Field 2026-11-02 (RTX 5090, NR + VFG): Boost made the driver hold the+ // per-source Sleep 4-18 ms and 8-21% of generated frames missed their slot.+ hint: root.available ? qsTr("减少处理排队。高负载时建议选「开」而不是「开+增强」:增强有概率导致掉帧,还会提高 GPU 频率、增加功耗。") : qsTr("需要 NVIDIA 显卡")VSeg {objectName: root.namePrefix+"-nvidia-low-latency"enabled: root.availablediff --git a/tests/qml/QuickSmokeTests.cpp b/tests/qml/QuickSmokeTests.cppindex f1406381..7144ffd3 100644--- a/tests/qml/QuickSmokeTests.cpp+++ b/tests/qml/QuickSmokeTests.cpp@@ -62,6 +62,11 @@ QtObject {property real duration: 100property bool hasSource: trueproperty bool isCapture: false+ // Off by default, as before these existed: only the low latency test turns them on.+ property bool nvidiaLowLatencyAvailable: false+ property int nvidiaLowLatency: 0+ property bool running: false+ property string presentationStatus: ""signal settingsChanged()signal chainChanged()signal snapshotChanged()@@ -82,6 +87,8 @@ QtObject {QStringLiteral("qml/Veyra/ProPage.qml"))), "VeyraTest", 1, 0, "ProPage");qmlRegisterType(QUrl::fromLocalFile(QDir(QCoreApplication::applicationDirPath()).filePath(QStringLiteral("qml/Veyra/ExportPage.qml"))), "VeyraTest", 1, 0, "ExportPage");+ qmlRegisterType(QUrl::fromLocalFile(QDir(QCoreApplication::applicationDirPath()).filePath(+ QStringLiteral("qml/Veyra/NvidiaLowLatencyEditor.qml"))), "VeyraTest", 1, 0, "NvidiaLowLatencyEditor");}};diff --git a/tests/qml/quick/tst_nvidia_low_latency.qml b/tests/qml/quick/tst_nvidia_low_latency.qmlnew file mode 100644index 00000000..d5303f90--- /dev/null+++ b/tests/qml/quick/tst_nvidia_low_latency.qml@@ -0,0 +1,47 @@+// NVIDIA low latency choice and its hint. UI only: no driver call is made.+// Field 2026-11-02: On + Boost dropped generated frames under heavy load, so+// the hint recommends On there.+import QtQuick+import QtTest+import Veyra+import VeyraTest 1.0+Item {+ id: root+ width: 640; height: 240+ NvidiaLowLatencyEditor { id: editor; x: 10; y: 10; width: 560; namePrefix: "test" }+ TestCase {+ name: "NvidiaLowLatencyHint"+ when: windowShown+ function init(){veyra.nvidiaLowLatencyAvailable=true;veyra.nvidiaLowLatency=1}+ function cleanup(){veyra.nvidiaLowLatencyAvailable=false;veyra.nvidiaLowLatency=0}+ function control(name){const child=findChild(editor,name);verify(child!==null,name);return child}+ function shownText(item,text){+ if(item.text===text&&item.visible&&item.height>0)return item+ for(let i=0;i<item.children.length;++i){const found=shownText(item.children[i],text);if(found)return found}+ return null+ }+ function test_hint_recommends_on_under_heavy_load(){+ const row=control("test-nvidia-low-latency-row")+ verify(row.hint.indexOf("高负载时建议选「开」而不是「开+增强」")>=0,row.hint)+ verify(row.hint.indexOf("掉帧")>=0,row.hint)+ // The hint quotes the labels the choice really shows.+ const labels=control("test-nvidia-low-latency").options.map(o=>o.label)+ compare(labels.length,3)+ verify(row.hint.indexOf("「"+labels[1]+"」")>=0&&row.hint.indexOf("「"+labels[2]+"」")>=0,row.hint)+ }+ function test_hint_is_shown_below_the_choice(){+ const row=control("test-nvidia-low-latency-row")+ verify(row.hintBelow)+ const text=shownText(row,row.hint)+ verify(text!==null,"hint text visible")+ const choice=control("test-nvidia-low-latency")+ verify(text.mapToItem(row,0,0).y>=choice.mapToItem(row,0,0).y+choice.height,"hint sits below the choice")+ }+ function test_unavailable_keeps_its_own_hint(){+ veyra.nvidiaLowLatencyAvailable=false+ const row=control("test-nvidia-low-latency-row")+ compare(row.hint,"需要 NVIDIA 显卡")+ compare(control("test-nvidia-low-latency").enabled,false)+ }+ }+}diff --git a/tests/unit/UiLanguageTests.cpp b/tests/unit/UiLanguageTests.cppindex f8404d46..aaaeb3db 100644--- a/tests/unit/UiLanguageTests.cpp+++ b/tests/unit/UiLanguageTests.cpp@@ -40,6 +40,10 @@ int main(int argc, char** argv) {expect(i18n::text(QStringLiteral("英伟达低延迟不可用,当前使用低排队(详见日志) · 输出上限:关闭 · 垂直同步:屏幕队列 1 帧,读帧前等待刷新 · 显示同步:垂直同步")),QStringLiteral("NVIDIA Low Latency unavailable; using low queue depth (see the log) · Output cap: off · VSync: 1-frame display queue, waits for refresh before reading a frame · Display sync: VSync"),"presentation fallback status pieces");+ // The NVIDIA low latency hint names the option labels; the catalog key must match the QML text exactly.+ expect(QCoreApplication::translate("Any", "减少处理排队。高负载时建议选「开」而不是「开+增强」:增强有概率导致掉帧,还会提高 GPU 频率、增加功耗。"),+ QStringLiteral("Reduce processing queue depth. Under heavy load, choose On rather than On + Boost: Boost can drop frames, and it raises GPU clocks and power use."),+ "NVIDIA low latency heavy-load hint");// Unknown text and paths come back unchanged.expect(i18n::text(QStringLiteral("D:/视频/我的片子.mkv")), QStringLiteral("D:/视频/我的片子.mkv"), "path untouched");