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++
fix: output stabiliser takes effect mid-play, node-mode stabiliser control, timing shown as 1.4.4's last-second mean
Veyra Goal Agent020fda2ee47c
diff --git a/qml/Veyra/NodePage.qml b/qml/Veyra/NodePage.qmlindex 73171422..ab2e8bae 100644--- a/qml/Veyra/NodePage.qml+++ b/qml/Veyra/NodePage.qml@@ -752,6 +752,29 @@ VPage {options: veyra.audioDevicesonPicked: id => veyra.setPreference("audioDevice", id)}+ // The list page's 输出稳定器 · 抗闪烁 (field request 2026-10-01: missing+ // in node mode). One global stage after the last NR, before SR and FG.+ NodeLabel { text: "输出稳定器 · 抗闪烁" }+ RowLayout {+ Layout.fillWidth: true; spacing: 6+ VSwitch {+ objectName: "node-out-stabiliser"+ checked: veyra.nrHoldStrength > 0+ onToggled: checked => veyra.nrHoldStrength = checked ? 0.8 : 0+ }+ VSlider {+ objectName: "node-out-hold-strength"+ Layout.fillWidth: true+ visible: veyra.nrHoldStrength > 0+ from: 0.1; to: 1.0; value: veyra.nrHoldStrength+ onMoved: value => veyra.nrHoldStrength = value+ }+ Text {+ visible: veyra.nrHoldStrength > 0+ text: Math.round(veyra.nrHoldStrength * 100) + "%"+ color: Theme.t2; font.family: Theme.fontMono; font.pixelSize: 10+ }+ }}}}@@ -967,7 +990,7 @@ VPage {}HoverHandler { id: segHover; cursorShape: Qt.PointingHandCursor }ToolTip.visible: segHover.hovered- ToolTip.text: modelData.label + ":" + (modelData.measured ? modelData.ms.toFixed(2) + " ms(GPU P95)" : "暂无本节点计时")+ ToolTip.text: modelData.label + ":" + (modelData.measured ? modelData.ms.toFixed(2) + " ms(GPU 最近一秒平均)" : "暂无本节点计时")TapHandler {gesturePolicy: TapHandler.WithinBoundsonTapped: root.focusNode(modelData.id)diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qmlindex 7fc6817b..36710479 100644--- a/qml/Veyra/ProPage.qml+++ b/qml/Veyra/ProPage.qml@@ -237,7 +237,7 @@ VPage {fraction: known ? veyra.chainTotalMs / veyra.stageBudgetMs : 0value: veyra.chainTotalMsKnown ? veyra.chainTotalMs.toFixed(1) + "ms" : "—"label: "处理耗时"- tip: "增强链总耗时 P95,环 = 占源帧预算" + (veyra.stageBudgetMs > 0 ? " " + veyra.stageBudgetMs.toFixed(1) + " ms" : "") + " 的比例"+ tip: "增强链总耗时(最近一秒平均,与 1.4.4 相同口径),环 = 占源帧预算" + (veyra.stageBudgetMs > 0 ? " " + veyra.stageBudgetMs.toFixed(1) + " ms" : "") + " 的比例"}PerfOrb {size: parent.size@@ -258,7 +258,7 @@ VPage {fraction: known ? veyra.chainTotalMs / veyra.stageBudgetMs : 0value: known ? Math.round(veyra.chainTotalMs / veyra.stageBudgetMs * 100) + "%" : "—"label: "负载预算"- tip: "增强链 GPU 耗时 P95 占一个源帧时间(" + veyra.stageBudgetMs.toFixed(1)+ tip: "增强链 GPU 耗时(最近一秒平均)占一个源帧时间(" + veyra.stageBudgetMs.toFixed(1)+ " ms)的比例;超过 100% 就跟不上源帧率。当前状态:" + veyra.runStatus}}@@ -720,7 +720,7 @@ VPage {spacing: 5RowLayout {Layout.fillWidth: true- VEyebrow { text: "GPU 阶段采样 P95"; Layout.fillWidth: true }+ VEyebrow { text: "GPU 阶段耗时 · 最近一秒平均"; Layout.fillWidth: true }Text {text: "预算 " + veyra.stageBudgetMs.toFixed(1) + " ms / 源帧"color: Theme.t3@@ -782,6 +782,9 @@ VPage {Text {Layout.preferredWidth: 48text: modelData.measured ? modelData.ms.toFixed(1) + " ms" : "未测量"+ HoverHandler { id: stageValueHover }+ ToolTip.visible: stageValueHover.hovered && modelData.measured+ ToolTip.text: "平均 " + modelData.ms.toFixed(2) + " ms · P95 " + (modelData.p95 || 0).toFixed(2) + " ms(最近一秒)"color: modelData.measured ? Theme.t1 : Theme.t3font.family: Theme.fontMonofont.pixelSize: 11diff --git a/scripts/ui-check/node-stabiliser.qml b/scripts/ui-check/node-stabiliser.qmlnew file mode 100644index 00000000..a05d2564--- /dev/null+++ b/scripts/ui-check/node-stabiliser.qml@@ -0,0 +1,15 @@++ // ---- 输出稳定器 from the node page's output card (node mode) ----------------------------+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }+ Timer {+ interval: 2000; running: true; repeat: true+ property int phase: 0+ onTriggered: {+ phase += 1+ if (phase === 1) veyra.openUrl("@VIDEO@")+ if (phase === 2) root.goPage("node")+ if (phase === 3) veyra.nrHoldStrength = 0.8+ if (phase === 5) veyra.logUi("uitest", "UITEST_SHOT node-stabiliser")+ if (phase === 6) { veyra.logUi("uitest", "UITEST_NOTE nodeMode=" + veyra.nodeMode + " hold=" + veyra.nrHoldStrength); veyra.logUi("uitest", "UITEST_DONE"); running = false }+ }+ }diff --git a/scripts/ui-check/perf-capture.qml b/scripts/ui-check/perf-capture.qmlnew file mode 100644index 00000000..2e59eebb--- /dev/null+++ b/scripts/ui-check/perf-capture.qml@@ -0,0 +1,21 @@++ // ---- performance run: capture 2560x1440 60 NV12, NR (1080p layer), NVIDIA flow, XeSS 2X ----+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }+ Timer {+ interval: 1000; running: true; repeat: true+ property int ticks: 0+ onTriggered: {+ ++ticks+ if (ticks === 2) dialogs.open("capture")+ if (ticks === 6) {+ const f = veyra.captureFormats.find(x => x.label.indexOf("2560 x 1440 @ 60") === 0 && x.label.indexOf("NV12") > 0)+ if (f) veyra.captureFormatKey = f.id+ veyra.logUi("uitest", "UITEST_NOTE format=" + (f ? f.label : "not found"))+ veyra.nrEnabled = true+ veyra.fgBackendName = "@FG@"+ veyra.fgEnabled = @FGON@+ veyra.startCaptureSession(); dialogs.close()+ }+ if (ticks === 66) { veyra.logUi("uitest", "UITEST_DONE"); running = false }+ }+ }diff --git a/src/engine/EffectChain.cpp b/src/engine/EffectChain.cppindex 89df9dae..6591f830 100644--- a/src/engine/EffectChain.cpp+++ b/src/engine/EffectChain.cpp@@ -620,6 +620,8 @@ bool requiresGraphRebuild(const EnhancementSettings& previous, const Enhancement};if (planOf(previous) != planOf(next)) return true;if (previous.lowLatency != next.lowLatency) return true;+ // The output stabiliser's pass exists only when it is on (EnhanceGraph::createNrHoldPass).+ if ((previous.nrHoldStrength > 0.0f) != (next.nrHoldStrength > 0.0f)) return true;if (previous.nrPolicy != next.nrPolicy) return true;if (previous.srTarget != next.srTarget) return true;if (previous.frameGenerationBackend != next.frameGenerationBackend) return true;diff --git a/src/pipeline/EnhanceGraph.cpp b/src/pipeline/EnhanceGraph.cppindex 8a26285c..6899a975 100644--- a/src/pipeline/EnhanceGraph.cpp+++ b/src/pipeline/EnhanceGraph.cpp@@ -2845,6 +2845,10 @@ bool EnhanceGraph::applySettings(const engine::EnhancementSettings& s){if(a.enabled!=b.enabled||a.lutName!=b.lutName||a.lutInputSpace!=b.lutInputSpace)return false;}if(s.videoHdr.enabled!=desc_.videoHdr.enabled)return false;+ // Output stabiliser: its pass is allocated at build time, so on/off rebuilds; strength and+ // tolerance are uniforms. Neither used to reach a running graph (field report+ // 2026-10-01: switching it on mid-play did nothing until something else rebuilt).+ if((s.nrHoldStrength>0.0f)!=(desc_.nrHoldStrength>0.0f))return false;// Switching the referenced .cube re-stages a descriptor, which needs the// queue drained: treat it as a rebuild (parameters stay live).if(s.color.lutNameString()!=desc_.color.lutNameString()||s.color.lutInputSpace!=desc_.color.lutInputSpace)return false;@@ -2860,6 +2864,7 @@ bool EnhanceGraph::applySettings(const engine::EnhancementSettings& s){if(nodeColorInstances_[i+1])nodeColorInstances_[i+1]->refresh(s.additionalColors[i]);}desc_.contentRate=s.content;desc_.model=s.model;desc_.residual=s.residual;desc_.protection=s.protection;desc_.settingsRevision=s.revision;+ desc_.nrHoldStrength=s.nrHoldStrength;desc_.nrHoldTolerance=s.nrHoldTolerance;desc_.nrLayersModel=std::move(nextNr.nrLayersModel);desc_.nrLayersResidual=std::move(nextNr.nrLayersResidual);desc_.nrLayersTemporal=std::move(nextNr.nrLayersTemporal);diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex 91a6619a..7479b184 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -993,12 +993,15 @@ QVariantList QmlPlayerBridge::stageTimings() const {const double budget = stageBudgetMs();for (const auto& r : rows) {const auto& sample = s.metrics.flow.gpuTiming[size_t(r.stage)];+ // The mean of the last second, as 1.4.4's dashboard showed; P95 rides along for the+ // tooltip. Showing P95 alone read as "slower than 1.4.4" for the same work.const bool measured = queuedFramesKnown() && sample.samples > 0 &&- sample.p95 && std::isfinite(*sample.p95) && *sample.p95 >= 0.0;- const double ms = measured ? *sample.p95 : 0.0;+ sample.mean && std::isfinite(*sample.mean) && *sample.mean >= 0.0;+ const double ms = measured ? *sample.mean : 0.0;QVariantMap item;item["label"] = QString::fromUtf8(r.label);item["ms"] = ms;+ item["p95"] = measured && sample.p95 ? *sample.p95 : 0.0;item["measured"] = measured;item["samples"] = measured ? QVariant::fromValue<qulonglong>(sample.samples) : QVariant::fromValue<qulonglong>(0);item["domain"] = QStringLiteral("GPU timestamp P95");@@ -1041,9 +1044,9 @@ QVariantMap QmlPlayerBridge::nodeTimings() const {QVariantMap item{{"state", state}, {"ms", 0.0}, {"samples", QVariant::fromValue<qulonglong>(0)}};if (stage) {const auto& sample = flow.gpuTiming[size_t(*stage)];- if (live && sample.samples > 0 && sample.p95 && std::isfinite(*sample.p95) && *sample.p95 >= 0.0) {+ if (live && sample.samples > 0 && sample.mean && std::isfinite(*sample.mean) && *sample.mean >= 0.0) {item["state"] = QStringLiteral("measured");- item["ms"] = *sample.p95;+ item["ms"] = *sample.mean;item["samples"] = QVariant::fromValue<qulonglong>(sample.samples);}}@@ -1104,12 +1107,13 @@ double QmlPlayerBridge::scheduleP95Ms() const { return impl_->snapshot.schedulindouble QmlPlayerBridge::chainTotalMs() const {// Engine merges same-frame measured intervals before aggregation. Never// sum unrelated percentiles. This excludes uninstrumented stages/nodes.- return chainTotalMsKnown() ? *impl_->snapshot.metrics.flow.enhancementProcessing.p95 : 0.0;+ // Mean of the last second, the same statistic as the stage rows (see stageTimings).+ return chainTotalMsKnown() ? *impl_->snapshot.metrics.flow.enhancementProcessing.mean : 0.0;}bool QmlPlayerBridge::chainTotalMsKnown() const {const auto& sample = impl_->snapshot.metrics.flow.enhancementProcessing;- return queuedFramesKnown() && sample.samples > 0 && sample.p95 &&- std::isfinite(*sample.p95) && *sample.p95 >= 0.0;+ return queuedFramesKnown() && sample.samples > 0 && sample.mean &&+ std::isfinite(*sample.mean) && *sample.mean >= 0.0;}@@ -1623,6 +1627,7 @@ void QmlPlayerBridge::openSourceUri(const std::wstring& uri, const std::wstring&impl_->resumeSession = 0;impl_->screenFillActive = false;const bool screen = uri.find(L"screen") != std::wstring::npos;+ veyra::log::info("capture-ui", "open uri " + QString::fromStdWString(uri).toStdString());openAfterCinema(screen ? tr("正在开始屏幕捕获…") : tr("正在打开采集设备 · %1").arg(utf8Of(label)), [this, uri] {if (impl_->preOpen) impl_->preOpen();impl_->engine.previewView({});