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++
ui(vfg): explain why VFG cannot hold the requested multiplier
Veyra Goal Agent95248cc5b312
diff --git a/i18n/catalog.json b/i18n/catalog.jsonindex d0a43788..22656bd0 100644--- a/i18n/catalog.json+++ b/i18n/catalog.json@@ -15065,6 +15065,20 @@"zh-TW": "輸入尺寸切換呈現排空失敗","en": "Could not drain presentation for the input size change.","ja": "入力サイズ変更時に描画処理を完了できませんでした。"+ },+ {+ "zh": "VFG 每张约 %1 ms,当前负载约可稳定 %2X",+ "src": "src/ui/QmlPlayerBridge.cpp",+ "zh-TW": "VFG 每張約 %1 ms,目前負載約可穩定 %2X",+ "en": "VFG takes about %1 ms per frame; about %2X holds at the current load",+ "ja": "VFG は 1 枚あたり約 %1 ms、現在の負荷で安定するのは約 %2X"+ },+ {+ "zh": "屏幕 %1 Hz 最多显示约 %2X",+ "src": "src/ui/QmlPlayerBridge.cpp",+ "zh-TW": "螢幕 %1 Hz 最多顯示約 %2X",+ "en": "A %1 Hz display shows at most about %2X",+ "ja": "%1 Hz の画面で表示できるのは最大約 %2X"}]}diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex ff2f9408..d7ce88b7 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -6280,6 +6280,26 @@ void QmlPlayerBridge::updateRunStatus() {else detail << tr("未补帧");if (s.applied.multiplier > 1 && impl_->compareMode != 0) detail << tr("补帧暂停");else if (s.applied.multiplier > 1 && (s.fgBudgetLimited || s.xessGenerationSuppressed)) detail << tr("调度降档");+ // Why VFG cannot hold the requested multiplier. One VFG interpolation+ // costs about the same at any resolution, so what fits follows from its+ // measured cost, the rest of the chain and the source interval; the+ // display refresh caps what can be shown. A hint only: no setting changes.+ if (s.applied.multiplier > 1 && s.applied.frameGenerationBackend == engine::FrameGenerationBackend::Vfg && i.compareMode == 0) {+ const double source = s.nominalSourceFps * (s.captureHalfRate ? 0.5 : 1.0);+ const auto perRun = f.gpuTiming[size_t(diagnostics::GpuStage::Fg1)].p95;+ const auto batch = f.gpuTiming[size_t(diagnostics::GpuStage::FgBatch)].p95;+ const auto whole = f.enhancementProcessing.p95;+ if (s.fgBudgetLimited && source > 1 && perRun && *perRun > 0 && batch && whole) {+ const double base = std::max(0.0, *whole - *batch);+ const int fits = std::clamp(1 + int(std::floor((1000.0 / source - base) / *perRun)), 1, int(s.applied.multiplier));+ if (fits < int(s.applied.multiplier)) detail << tr("VFG 每张约 %1 ms,当前负载约可稳定 %2X").arg(*perRun, 0, 'f', 1).arg(fits);+ }+ double refresh = 0;+ for (auto* window : QGuiApplication::topLevelWindows())+ if (window->isVisible() && window->screen()) { refresh = window->screen()->refreshRate(); break; }+ if (refresh > 1 && source > 1 && source * s.applied.multiplier > refresh * 1.02)+ detail << tr("屏幕 %1 Hz 最多显示约 %2X").arg(refresh, 0, 'f', 0).arg(std::max(1, int(refresh / source)));+ }if (s.nominalSourceFps > 0.01) detail << tr("源 %1 fps").arg(s.nominalSourceFps, 0, 'f', 2);const auto autoState=nrAutoStatus();if(!autoState.isEmpty())detail<<autoState;}