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

Default both RTX SR passes to medium and show red low-latency warnings only for Boost

Veyra Goal Agentb143ebff2bdf
diff --git a/docs/REBUILD_2.1.3_DEFAULTS_2026-11-06.md b/docs/REBUILD_2.1.3_DEFAULTS_2026-11-06.md
new file mode 100644
index 00000000..70e68b99
--- /dev/null
+++ b/docs/REBUILD_2.1.3_DEFAULTS_2026-11-06.md
@@ -0,0 +1,20 @@
+# 2.1.3 默认档位与低延迟提示重构建
+
+用户要求:超分默认中档;英伟达低延迟警告改红色,仅“开+增强”显示;删除上一轮构建产物,重建2.1.3。
+
+## 改动
+
+- `kDefaultVideoSrQuality=2`,列表/节点、基础/第二次超分统一中档。从DLSS/FSR切入RTX版本没有既有档位时使用该默认(标准2、高码率17、流媒体21),已有档位和保存设置不迁移覆盖。
+- NvidiaLowLatencyEditor共用组件按选择显示警告,Boost用Theme.err红字,Off/On无警告。非NVIDIA的硬件不可用说明保持普通说明色。
+- 不改变低延迟驱动调用、模型或运行库;版本仍2.1.3。本轮不push/Release。
+
+## 清理与路径
+
+上一轮`codex-build-2.1.3-20261106`的包、ZIP、验收解压副本和测试二进制按受控清单逐文件SHA核对后删除;未列入清单的个人配置/日志和修改文件保留。共享构建缓存、依赖、旧正式版和源代码工作树不删。
+清理脚本/实际清单在`reports/codex-rebuild-2.1.3-20261106/cleanup-old.ps1`与CLEANUP-PLAN/CLEANUP.json。不使用跨Shell删除或递归到连接目标。
+
+复用`build/claude-screen-recording-20261022`,新task为`codex-rebuild-2.1.3-20261106`;test-packages/tests/logs/tmp/verify/reports全部按新task隔离,旧interactive配置保留在原位。
+
+## 验证
+
+构建主程序、AMD worker及相关QML/设置/预设/合同目标;更新原UI合同和低延迟交互用例,验证新默认与显式保存值的恢复。新包逐文件SHA/CRC和独立解压最小PATH启动/播放。实际命令、失败与通过、交付身份以WORKLOG和新task FINAL.json为准,本计划不作为通过证明。
diff --git a/docs/TEST_NOTES_2.1.3.md b/docs/TEST_NOTES_2.1.3.md
index b9956a87..19975dac 100644
--- a/docs/TEST_NOTES_2.1.3.md
+++ b/docs/TEST_NOTES_2.1.3.md
@@ -2,6 +2,7 @@
## 本次更新(相对2.1.2)
+- RTX视频超分基础和第二次超分默认使用“中”;从DLSS/FSR首次切入RTX各版本时也从中档开始,已保存的档位和预设保留。
- NR增强变化量、画面调控手动设置,各自可选择网状或列表。变化四轴搭配总量滑条,手动画面调控保留全部九项;数值、撤销、默认及原参数保存共用。
- 修复软件绘制下弹出菜单文字来回跳1像素;保留原动画风格,GPU绘制不变。
- 修复全屏进度条拖动被取消。
@@ -9,7 +10,7 @@
- RTX30 VFG实验兼容;RTX40/50保留原生路径。
- RX7000 NR多GPU身份匹配与HIP设备选择修复,补齐worker诊断。
- RTX视频超分分为标准、高码率、流媒体;档位低/中/高/超高,流媒体提供中/超高。双重超分第二次可以独立选版本和档位,兼容超采样。
-- 英伟达低延迟增强档增加高负载掉帧提示。
+- 英伟达低延迟仅在选择“开+增强”时显示红色高负载警告,“关”和“开”时隐藏。
## 使用
diff --git a/include/veyra/engine/EffectChain.h b/include/veyra/engine/EffectChain.h
index fce4e931..b5c183d9 100644
--- a/include/veyra/engine/EffectChain.h
+++ b/include/veyra/engine/EffectChain.h
@@ -216,7 +216,7 @@ struct ChainGlobalSettings {
pipeline::SrOutput srOutput = pipeline::SrOutput::Target; // EnhancementSettings::srOutput
bool dualSrEnabled = false;
pipeline::SrTarget dualSrTarget = pipeline::SrTarget::Uhd4K;
- uint32_t dualSrQuality = 4;
+ uint32_t dualSrQuality = kDefaultVideoSrQuality;
FrameGenerationBackend fgBackend = FrameGenerationBackend::Dlss;
uint32_t vfgQuality=1;
FlowQuality flow = FlowQuality::Balanced;
diff --git a/include/veyra/engine/EnhancementSettings.h b/include/veyra/engine/EnhancementSettings.h
index b732bc24..94e210f7 100644
--- a/include/veyra/engine/EnhancementSettings.h
+++ b/include/veyra/engine/EnhancementSettings.h
@@ -72,9 +72,9 @@ inline size_t exportBitrateIndex(uint32_t mbps){for(size_t i=0;i<kExportBitrateC
// videoSrQuality values: 0 = DLSS SR, 1..4 = RTX video SR quality steps,
// 5 = AMD FSR upscaling (vendor neutral; verified on an NVIDIA adapter).
inline constexpr uint32_t kVideoSrFsr=5;
-// Fresh SR selections use RTX Video SR high; explicit saved selections retain
+// Fresh SR selections use RTX Video SR medium; explicit saved selections retain
// their numeric IDs. The UI seeds FSR separately on AMD/Intel adapters.
-inline constexpr uint32_t kDefaultVideoSrQuality=4;
+inline constexpr uint32_t kDefaultVideoSrQuality=2;
// RTX Video SR comes in three model families, each chosen by tier (1 low,
// 2 medium, 3 high, 4 ultra). Stored values keep the SDK numbers:
// - standard 1..4: RTX Video SDK through NGX, trained on compressed video;
@@ -372,7 +372,7 @@ struct EnhancementSettings {
pipeline::SrOutput srOutput=pipeline::SrOutput::Target;
bool dualSrEnabled=false;
pipeline::SrTarget dualSrTarget=pipeline::SrTarget::Uhd4K;
- uint32_t dualSrQuality=4; // any RTX Video SR value, independent of the base family
+ uint32_t dualSrQuality=kDefaultVideoSrQuality; // any RTX Video SR value, independent of the base family
uint32_t multiplier=1;
FrameGenerationBackend frameGenerationBackend=FrameGenerationBackend::Dlss;
// NvVFX Mode: Low=0, Medium=1 (default), High=2; mixed tiers 3-5, see vfgPrimaryMode().
diff --git a/include/veyra/pipeline/EnhanceGraph.h b/include/veyra/pipeline/EnhanceGraph.h
index c792017e..82b6867a 100644
--- a/include/veyra/pipeline/EnhanceGraph.h
+++ b/include/veyra/pipeline/EnhanceGraph.h
@@ -130,7 +130,7 @@ struct EnhanceGraphDesc {
// writes before the output fit. Zero: SR reads the source and writes the work extent.
uint32_t srInputWidth=0,srInputHeight=0,srOutputWidth=0,srOutputHeight=0;
bool dualSr=false;
- uint32_t firstSrWidth=0,firstSrHeight=0,dualSrQuality=4;
+ uint32_t firstSrWidth=0,firstSrHeight=0,dualSrQuality=engine::kDefaultVideoSrQuality;
uint32_t fgMultiplier=2;
engine::FrameGenerationBackend frameGenerationBackend=engine::FrameGenerationBackend::Dlss;
uint32_t vfgQuality=1;
diff --git a/qml/Veyra/NvidiaLowLatencyEditor.qml b/qml/Veyra/NvidiaLowLatencyEditor.qml
index ed7f1313..0c3201a9 100644
--- a/qml/Veyra/NvidiaLowLatencyEditor.qml
+++ b/qml/Veyra/NvidiaLowLatencyEditor.qml
@@ -4,6 +4,7 @@ ColumnLayout {
id: root
property string namePrefix: "list"
readonly property bool available: veyra.nvidiaLowLatencyAvailable === true
+ readonly property bool boostWarning: available && veyra.nvidiaLowLatency === 2
Layout.fillWidth: true
spacing: 4
VRow {
@@ -12,7 +13,8 @@ ColumnLayout {
hintBelow: true
// 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 显卡")
+ hint: !root.available ? qsTr("需要 NVIDIA 显卡") : root.boostWarning ? qsTr("减少处理排队。高负载时建议选「开」而不是「开+增强」:增强有概率导致掉帧,还会提高 GPU 频率、增加功耗。") : ""
+ hintColor: root.boostWarning ? Theme.err : Theme.t3
VSeg {
objectName: root.namePrefix+"-nvidia-low-latency"
enabled: root.available
diff --git a/scripts/acceptance/package-2.1.3.py b/scripts/acceptance/package-2.1.3.py
index 827195ba..034daf2b 100644
--- a/scripts/acceptance/package-2.1.3.py
+++ b/scripts/acceptance/package-2.1.3.py
@@ -7,7 +7,7 @@ from pathlib import Path
import argparse,hashlib,importlib.util,json,os,re,shutil,stat,subprocess,time,zipfile
import pefile
-R=Path(__file__).resolve().parents[2];B=Path('E:/项目/Veyra');T='codex-build-2.1.3-20261106';V='2.1.3'
+R=Path(__file__).resolve().parents[2];B=Path('E:/项目/Veyra');T='codex-rebuild-2.1.3-20261106';V='2.1.3'
D=B/'build/claude-screen-recording-20261022';O=B/'test-packages'/T;REPORT=B/'reports'/T
DONOR=B/'releases/codex-release-2.1.2-20261102';DEP=B/'deps/amd-rdna3-nr-20261029'
NVAPI=B/'build/rdna3-nvapi-luid-20261103/zluda_nvapi.dll'
diff --git a/src/ui/bridge/Enhancement.cpp b/src/ui/bridge/Enhancement.cpp
index 80ea9b8f..bfdf7e08 100644
--- a/src/ui/bridge/Enhancement.cpp
+++ b/src/ui/bridge/Enhancement.cpp
@@ -82,12 +82,12 @@ int QmlPlayerBridge::srTierOf(int quality) const {
return quality>=0&&engine::rtxVideoSr(unsigned(quality))?int(engine::videoSrTier(unsigned(quality))):0;
}
// The stored quality for an algorithm at a tier. Coming from DLSS SR or FSR
-// there is no tier yet, so an RTX family starts at ultra.
+// there is no tier yet, so an RTX family starts at the default medium tier.
int QmlPlayerBridge::srQualityFor(const QString& algorithm,int tier) const {
const auto family=algorithm==QLatin1String("rtx")?std::optional(engine::VideoSrFamily::Standard):
algorithm==QLatin1String("rtx-hb")?std::optional(engine::VideoSrFamily::HighBitrate):
algorithm==QLatin1String("rtx-st")?std::optional(engine::VideoSrFamily::Streaming):std::nullopt;
- if(family)return int(engine::videoSrQualityFor(*family,tier>=1&&tier<=4?unsigned(tier):4u));
+ if(family)return int(engine::videoSrQualityFor(*family,tier>=1&&tier<=4?unsigned(tier):engine::kDefaultVideoSrQuality));
bool ok=false;const int value=algorithm.toInt(&ok);
return ok&&value>=0&&engine::validVideoSrQuality(unsigned(value))?value:-1;
}
diff --git a/tests/qml/quick/tst_nvidia_low_latency.qml b/tests/qml/quick/tst_nvidia_low_latency.qml
index d5303f90..4fbe9c11 100644
--- a/tests/qml/quick/tst_nvidia_low_latency.qml
+++ b/tests/qml/quick/tst_nvidia_low_latency.qml
@@ -12,7 +12,7 @@ Item {
TestCase {
name: "NvidiaLowLatencyHint"
when: windowShown
- function init(){veyra.nvidiaLowLatencyAvailable=true;veyra.nvidiaLowLatency=1}
+ function init(){veyra.nvidiaLowLatencyAvailable=true;veyra.nvidiaLowLatency=2}
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){
@@ -34,13 +34,24 @@ Item {
verify(row.hintBelow)
const text=shownText(row,row.hint)
verify(text!==null,"hint text visible")
+ compare(text.color,Theme.err,"boost warning is red")
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_off_and_on_hide_warning(){
+ const row=control("test-nvidia-low-latency-row")
+ const warning=row.hint
+ for(const mode of [0,1,2,1,0]){
+ veyra.nvidiaLowLatency=mode
+ compare(row.hint,mode===2?warning:"")
+ compare(shownText(row,warning)!==null,mode===2,"warning follows the actual selection")
+ }
+ }
function test_unavailable_keeps_its_own_hint(){
veyra.nvidiaLowLatencyAvailable=false
const row=control("test-nvidia-low-latency-row")
compare(row.hint,"需要 NVIDIA 显卡")
+ compare(row.hintColor,Theme.t3,"unavailable hardware hint is not a boost warning")
compare(control("test-nvidia-low-latency").enabled,false)
}
}
diff --git a/tests/unit/UiContractTests.cpp b/tests/unit/UiContractTests.cpp
index 37e06207..48689bf9 100644
--- a/tests/unit/UiContractTests.cpp
+++ b/tests/unit/UiContractTests.cpp
@@ -138,7 +138,8 @@ int wmain(int argc,wchar_t** argv){try{
{
engine::EnhancementSettings fresh;
engine::ChainGlobalSettings globals;
- require(fresh.videoSrQuality==4&&globals.videoSrQuality==4,"fresh List and Node SR selections use RTX Video SR high");
+ require(fresh.videoSrQuality==2&&globals.videoSrQuality==2&&fresh.dualSrQuality==2&&globals.dualSrQuality==2,
+ "fresh List and Node SR selections use medium for both RTX Video SR passes");
require(!fresh.sr&&!fresh.nr&&fresh.multiplier==1,"changing the SR model does not enable enhancement");
}
// Manual turns compose with metadata, including an already-oriented DAR.