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

remove FRUC frame generation backend

Veyra Goal Agentda5c1b42dd96
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1015204d..efb963e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,17 +85,10 @@ add_library(veyra_ngx STATIC
src/ngx/DlssSrBackend.cpp
src/ngx/VideoSrBackend.cpp
src/ngx/DlssFgBackend.cpp
- src/ngx/FrucBackend.cpp
)
veyra_apply_warnings(veyra_ngx)
target_compile_features(veyra_ngx PUBLIC cxx_std_20)
target_link_libraries(veyra_ngx PUBLIC veyra_base veyra_gfx d3d11)
- add_executable(veyra_fruc_worker src/ngx/FrucWorker.cpp)
- veyra_apply_warnings(veyra_fruc_worker)
- target_compile_features(veyra_fruc_worker PRIVATE cxx_std_20)
- target_link_libraries(veyra_fruc_worker PRIVATE veyra_base d3d11 dxgi)
- target_include_directories(veyra_fruc_worker PRIVATE "${VEYRA_NVOF_SDK_ROOT}/NvOFFRUC/Interface" "${VEYRA_NVOF_SDK_ROOT}/NvOFFRUC/NvOFFRUCSample/cudart_header")
- add_dependencies(veyra_ngx veyra_fruc_worker)
target_include_directories(veyra_ngx PUBLIC
"${VEYRA_DLSS_SDK_ROOT}/include")
# NVIDIA ships the static core shim as MT-Release; the _dbg variants match
@@ -487,11 +480,6 @@ if(VEYRA_FFMPEG_ROOT AND EXISTS "${VEYRA_FFMPEG_ROOT}/include/libavformat/avform
target_include_directories(veyra_repair_parameter_tests PRIVATE ${FFMPEG_INCLUDE_DIRS})
target_compile_definitions(veyra_repair_parameter_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN VEYRA_PROJECT_ROOT="${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(veyra_repair_parameter_tests PRIVATE veyra_pipeline veyra_sinks veyra_nvof)
- add_executable(veyra_fruc_tests tests/integration/FrucTests.cpp)
- target_include_directories(veyra_fruc_tests PRIVATE ${FFMPEG_INCLUDE_DIRS})
- target_compile_features(veyra_fruc_tests PRIVATE cxx_std_20)
- target_compile_definitions(veyra_fruc_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN VEYRA_PROJECT_ROOT="${CMAKE_CURRENT_SOURCE_DIR}")
- target_link_libraries(veyra_fruc_tests PRIVATE veyra_pipeline veyra_sinks veyra_nvof)
add_executable(veyra_repair_fg_tests tests/integration/RepairFgTests.cpp)
add_executable(veyra_motion_validation_tests tests/integration/MotionValidationTests.cpp)
add_executable(veyra_depth_response_tests tests/integration/DepthResponseTests.cpp)
diff --git a/README.md b/README.md
index 9b2db7ac..cf9ae371 100644
--- a/README.md
+++ b/README.md
@@ -4,14 +4,14 @@ Windows 本地视频播放器与画面增强工作台。它把视频播放、采
Veyra is a native Windows video player and image-enhancement workspace. It combines local playback, capture-card preview, image enhancement, and video export in one application. Daily mode is built for watching; Professional mode exposes enhancement, frame generation, comparison, diagnostics, and export tools.
-> 这是 `0.0.1` 的早期实验版本。便携包包含经哈希和签名校验的 Runtime Pack,让兼容 RTX 环境可直接启用对应增强;其中 NR、FRUC 和 DLSSG 属于社区实验运行时,不代表 NVIDIA 官方合作、认证或支持。This is an early experimental build. The portable package includes a hash- and signature-verified Runtime Pack so compatible RTX systems can enable its available enhancements directly. NR, FRUC, and DLSSG are community-experimental runtimes and do not imply NVIDIA endorsement, certification, or support.
+> 这是 `0.0.1` 的早期实验版本。便携包包含经哈希和签名校验的 Runtime Pack,让兼容 RTX 环境可直接启用对应增强;NR 和 DLSSG 属于社区实验运行时,不代表 NVIDIA 官方合作、认证或支持。This is an early experimental build. The portable package includes a hash- and signature-verified Runtime Pack. NR and DLSSG are community-experimental runtimes and do not imply NVIDIA endorsement, certification, or support.
## 功能 / Features
- 默认日常模式:大画面、底部播放控制、打开媒体、采集卡、音量、字幕和全屏。
- 专业模式:带展开动画的参数工作台;同一播放会话不中断。
- H.264 / HEVC 视频、PNG / JPEG 图片、DirectShow / UVC 采集设备。
-- 可选 DLSS SR、RTX Video SR、实验性 NVIDIA NR、NVOF 运动置信度,以及 DLSS / FRUC 补帧后端。
+- 可选 DLSS SR、RTX Video SR、实验性 NVIDIA NR、NVOF 运动置信度,以及 DLSS / XeSS 补帧后端。
- 实验性 Intel XeSS 显示补帧 2X,以及 AMD FidelityFX 光流运动估算;XeSS 当前只用于预览。
- 原图与增强结果的即时对比、分屏拖动、专业模式内的画面缩放和性能诊断。
- PNG / JPEG 图片导出,D3D12 NVENC H.264 / HEVC 视频导出。
@@ -20,7 +20,7 @@ Veyra is a native Windows video player and image-enhancement workspace. It combi
- Daily mode by default: a large picture area with playback, media opening, capture, volume, subtitles, and fullscreen controls.
- Professional mode: an expanding settings workspace without interrupting the current session.
- H.264 / HEVC video, PNG / JPEG images, and DirectShow / UVC capture devices.
-- Optional DLSS SR, RTX Video SR, experimental NVIDIA NR, NVOF motion confidence, plus DLSS and FRUC frame-generation backends.
+- Optional DLSS SR, RTX Video SR, experimental NVIDIA NR, NVOF motion confidence, plus DLSS and XeSS frame-generation backends.
- Experimental Intel XeSS 2X display frame generation and AMD FidelityFX optical-flow estimation; XeSS is currently preview-only.
- Same-frame comparison, split view, preview zoom in Professional mode, and performance diagnostics.
- PNG / JPEG image export and D3D12 NVENC H.264 / HEVC video export.
@@ -42,7 +42,7 @@ Veyra is a native Windows video player and image-enhancement workspace. It combi
3. In Daily mode, choose Open Video / Image or Capture, then play, pause, adjust volume, or enter fullscreen.
4. Select Switch to Professional Mode to expand the complete workspace. This is where enhancement, super resolution, frame generation, presets, comparison, and export are configured.
-The package includes a version-pinned Runtime Pack in `runtime_local/nvidia`. The release builder generates `release-runtime-manifest.json` and verifies DLL hashes and signatures; NR and FRUC also validate their pinned identities at startup. If driver, hardware, or initialization compatibility fails, Veyra disables only the affected enhancement while the player, capture, and export paths remain available. Do not replace these DLLs or copy files from games, driver caches, or unknown sources.
+The package includes a version-pinned Runtime Pack in `runtime_local/nvidia`. The release builder generates `release-runtime-manifest.json` and verifies DLL hashes and signatures; NR also validates its pinned identity at startup. If driver, hardware, or initialization compatibility fails, Veyra disables only the affected enhancement while the player, capture, and export paths remain available. Do not replace these DLLs or copy files from games, driver caches, or unknown sources.
### 从源码构建 / Build from source
@@ -101,9 +101,9 @@ Video / image / capture card
当前修复以最新用户要求、`AGENTS.md`、对应 `docs` 修复方案和 `docs/WORKLOG.md` 为准。早期 `loop/` 状态、控制哈希与 Phase 队列已归档,不再作为开发前置门禁。Current work follows the latest task, `AGENTS.md`, its repair plan and `docs/WORKLOG.md`; the legacy Loop state and control-hash gates are historical only.
-当前修复进度:[后端、帧率、链路延迟与音画同步实施记录](docs/CONTINUATION_REPAIR_IMPLEMENTATION_2026-09-10.md)。开发版已加入集中实时产出统计、XeSS切换修正、受控采集音频同步及FRUC重置后错图修复;高倍率FRUC的性能、AMD NR本体和实体采集验收仍未完成。这里的开发改动尚未更新已发布的0.0.1用户包。
+当前修复进度:[后端、帧率、链路延迟与音画同步实施记录](docs/CONTINUATION_REPAIR_IMPLEMENTATION_2026-09-10.md)。开发版已加入集中实时产出统计、XeSS切换修正及受控采集音频同步;FRUC 已从产品移除,AMD NR 本体和实体采集验收仍未完成。这里的开发改动尚未更新已发布的0.0.1用户包。
-Current development progress is recorded in the linked implementation log. Changes include completed-output telemetry, corrected XeSS switching, controlled capture-audio synchronization, and FRUC reset correctness. High-multiplier FRUC performance, AMD NR integration, and physical capture acceptance remain unfinished. These changes have not been published as an update to the 0.0.1 package.
+Current development progress is recorded in the linked implementation log. Changes include completed-output telemetry, corrected XeSS switching, and controlled capture-audio synchronization. FRUC has been removed from the product; AMD NR integration and physical capture acceptance remain unfinished. These changes have not been published as an update to the 0.0.1 package.
| Path | Purpose |
| --- | --- |
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index b8b64874..58949ffa 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -22,6 +22,6 @@ Source: https://github.com/lucide-icons/lucide/tree/a537cb6eb323b885f4c60baf3cec
User-provided official SDK from https://developer.nvidia.com/rtx-video-sdk/getting-started, kept under ignored third_party_local/nvidia/RTX_Video_SDK_1.1.0. Its NVIDIA RTX SDK license remains applicable. VideoSrBackend is independently authored against the documented VSR parameter ABI; no SDK sample implementation or proprietary header is copied into the repository. Local nvngx_vsr.dll remains excluded from Git. Under the user-authorized 2026-09-09 Release Runtime Pack policy, its pinned signed release copy may be included only as a Release asset alongside the applicable SDK license and manifest; it is never committed to source control.
-## NVIDIA FRUC local adapter
+## NVIDIA FRUC
-Local Optical Flow SDK5.0.7 NvOFFRUC interface and CUDA declarations are consumed from ignored third_party_local, under the NVIDIA SDK terms. FrucBackend/FrucWorker are independently authored code; no sample or competitor implementation is copied. The locally provided signed NvOFFRUC.dll is never committed to Git. Under the user-authorized 2026-09-09 Release Runtime Pack policy, only its pinned signed release copy may be included as an experimental Release asset with a manifest and the applicable license. Veyra relies on the user-installed NVIDIA driver for nvcuda.dll; it does not copy that driver DLL. The build-produced veyra_fruc_worker.exe is Veyra code, not a renamed proprietary binary. FRUC SDK guide: https://docs.nvidia.com/video-technologies/optical-flow-sdk/nvfruc-programming-guide/index.html . These additions do not grant NVIDIA runtime distribution rights.
+FRUC was evaluated during development and has been removed from the product. No FRUC runtime, worker, SDK headers, or binaries are built or packaged.
diff --git a/apps/veyra/SettingsWindow.cpp b/apps/veyra/SettingsWindow.cpp
index 3dd463c8..fe51d69c 100644
--- a/apps/veyra/SettingsWindow.cpp
+++ b/apps/veyra/SettingsWindow.cpp
@@ -150,7 +150,7 @@ case WM_CREATE:{window=h;font=makeFont(h);items.clear();displayedBackendWarning.
button(L"还原默认",211,-1,12,86);
add(L"STATIC",L"补帧与运动估算",1103,0,1,12,12,-1,30);
add(L"STATIC",L"补帧方式",1111,0,1,12,50,-1,24);
- combo(208,1,78,{L"DLSS 帧生成",L"NVIDIA FRUC · 视频补帧",L"Intel XeSS · 实验显示补帧 2X"});
+ combo(208,1,78,{L"DLSS 帧生成",L"Intel XeSS · 实验显示补帧 2X"});
add(L"STATIC",L"补帧倍率",1112,0,1,12,122,-1,24);
combo(202,1,150,{L"关闭补帧",L"2X · 一张中间帧",L"3X · 两张中间帧",L"4X · 三张中间帧"});
add(L"STATIC",L"运动估算",1113,0,1,12,194,-1,24);
@@ -160,7 +160,6 @@ case WM_CREATE:{window=h;font=makeFont(h);items.clear();displayedBackendWarning.
add(L"STATIC",L"内容节奏",1114,0,1,12,354,-1,24);
combo(205,1,382,{L"采用源时间戳",L"自动识别内容节奏",L"识别30fps内容节奏",L"识别50fps内容节奏",L"识别60fps内容节奏",L"采集60→30fps处理(PS5 30帧)"});
add(L"STATIC",L"AMD FidelityFX 为运动估算;不是 AMD NR。XeSS 为实验预览 2X,不支持导出。",1110,0,1,12,426,-1,72);
- add(L"STATIC",L"FRUC倍率越高,耗时越多。光流档位用于NR/DLSS;FRUC内部自动控制。补帧需等待下一张源帧,倍率不等于实测显示帧率。",1104,0,1,12,506,-1,88);
add(L"STATIC",L"采集音频同步",1115,0,1,12,608,-1,26);
combo(216,1,644,{L"自动同步 · 软件估算",L"手动声音偏移",L"关闭补偿"});
add(L"STATIC",L"声音偏移 ms",1116,0,1,12,692,160,28);
@@ -207,7 +206,7 @@ case WM_COMMAND:{const int id=LOWORD(wp);if(!populating&&((id>=202&&id<=205||id=
case WM_HSCROLL:{int id=GetDlgCtrlID(reinterpret_cast<HWND>(lp));if(id>=600&&id<612){int index=id-600;float v=float(SendMessageW(reinterpret_cast<HWND>(lp),TBM_GETPOS,0,0))/(index>=4&&index<=6?1:100);if(index==3&&v<0)v=-1;std::wostringstream o;o<<std::setprecision(4)<<v;putText(100+index,o.str().c_str());}return 0;}
case WM_TIMER:{auto s=controller->snapshot();syncProtection(enhancementEnabled?s.desired.protection:configuredSettings.protection);if(enhancementEnabled&&!dirty&&displayedSettings!=s.desired)populate(s.desired);check(200,enhancementEnabled&&s.desired.nr?BST_CHECKED:BST_UNCHECKED);check(201,enhancementEnabled&&s.desired.sr?BST_CHECKED:BST_UNCHECKED);std::wostringstream o;if(!s.running&&!s.frames&&s.transport!=engine::TransportState::Opening)o<<L"未打开媒体 · 设置待启用\n";else{
o<<L"期望版本 "<<s.desired.revision<<L" / 已应用 "<<s.applied.revision<<(s.applying?L" · 应用中":L"");
- const wchar_t* backend=s.applied.frameGenerationBackend==engine::FrameGenerationBackend::XeSS?L"XeSS":s.applied.frameGenerationBackend==engine::FrameGenerationBackend::Fruc?L"FRUC":L"DLSS";
+ const wchar_t* backend=s.applied.frameGenerationBackend==engine::FrameGenerationBackend::XeSS?L"XeSS":L"DLSS";
o<<L"\n"<<backend<<L" · "<<(s.applied.multiplier<=1?L"补帧关闭":s.fgActive?L"补帧运行":L"等待有效补帧");
if(!s.backendWarning.empty())message(s.backendWarning);
else if(!displayedBackendWarning.empty())message(L"设置已应用");
diff --git a/apps/veyra/TelemetryWindow.cpp b/apps/veyra/TelemetryWindow.cpp
index 00a030c2..f3d7a661 100644
--- a/apps/veyra/TelemetryWindow.cpp
+++ b/apps/veyra/TelemetryWindow.cpp
@@ -20,7 +20,7 @@ void refresh(){auto s=engine->snapshot();const wchar_t* names[]={L"上传/颜色
o<<L"\r\n最近一秒链路统计:均值 / P95 ms,n为样本数\r\n";
for(size_t i=0;i<f.gpuTiming.size();++i){const auto& a=f.gpuTiming[i];o<<names[i]<<L":"<<value(a.mean)<<L" / "<<value(a.p95)<<L" n="<<a.samples<<L"\r\n";}
o<<L"\r\n当前统计窗口:会话 "<<f.latest.sessionId<<L" / 设置 "<<f.latest.frame.settingsRevision<<L" / epoch "<<f.latest.frame.epoch
- <<L"\r\nDLSS/FRUC 有效生成 "<<value(f.validGeneratedFps)<<L" fps / Present 提交 "<<value(f.presentSubmitFps)<<L" fps"
+ <<L"\r\n有效生成 "<<value(f.validGeneratedFps)<<L" fps / Present 提交 "<<value(f.presentSubmitFps)<<L" fps"
<<L"\r\n实际源帧完成 "<<value(f.sourceCompletedFps)<<L" fps / 总处理产出 "<<value(f.outputCompletedFps)<<L" fps"
<<L"\r\nXeSS SDK送呈现 "<<value(f.xessSdkSubmitFps)<<L" fps(不能与处理产出混加)"
<<L"\r\n软件首尾延迟均值 "<<value(f.softwareLatencyMs)<<L" / P95 "<<value(f.softwareLatencyP95Ms)<<L" ms;有效样本 "<<f.latencySamples
diff --git a/apps/veyra/ui/LiveStatusPanel.h b/apps/veyra/ui/LiveStatusPanel.h
index 79a67fa8..04e20e17 100644
--- a/apps/veyra/ui/LiveStatusPanel.h
+++ b/apps/veyra/ui/LiveStatusPanel.h
@@ -62,7 +62,7 @@ inline LRESULT CALLBACK proc(HWND h,UINT message,WPARAM wp,LPARAM lp){
const wchar_t* resetNames[]={L"排空",L"销毁资源",L"创建资源",L"首帧预热提交",L"首帧完成观测"};
for(size_t i=0;i<r.stageMs.size();++i)rows.emplace_back(resetNames[i],ms(r.stageMs[i]));
}
- rows.emplace_back(L"补帧方式",s.applied.multiplier<=1?L"关闭":std::format(L"{} {}X",xess?L"XeSS":s.applied.frameGenerationBackend==engine::FrameGenerationBackend::Fruc?L"FRUC":L"DLSS",s.applied.multiplier));
+ rows.emplace_back(L"补帧方式",s.applied.multiplier<=1?L"关闭":std::format(L"{} {}X",xess?L"XeSS":L"DLSS",s.applied.multiplier));
rows.emplace_back(L"NR内部尺寸",s.applied.nr?std::format(L"{} x {}",s.metrics.resolution.nr.width,s.metrics.resolution.nr.height):L"关闭");
rows.emplace_back(L"音频同步",s.audioAvailable?(s.capture?(s.captureAudio.running?L"软件估算同步":L"等待视频锚点"):(s.audioEndpointRecovering?L"音频设备恢复中 · 时间线保持":s.audioRebuffering?L"视频过载 · 同步缓冲":L"音频主时钟")):L"无音频");
if(!s.capture&&s.audioAvailable){
diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.md
index 754ef5d8..a3f06604 100644
--- a/docs/USER_GUIDE.md
+++ b/docs/USER_GUIDE.md
@@ -77,4 +77,4 @@ PS5固定30fps、采集卡只能60fps:设备保持60fps,进入专业模式
## 2026-09-09 当前交接
-最新交接见 [HANDOFF_2026-09-10.md](HANDOFF_2026-09-10.md)。RTX Video SR已接入共享管线;专业模式补帧页可切换DLSS或NVIDIA FRUC,选择关闭/2X/3X/4X,均实时应用;详见[FRUC接入记录](FRUC_INTEGRATION_2026-09-09.md)。FRUC更高倍率开销更高,SDK可能退回原帧;重置后像素和重建卡顿仍有已知问题。播放器时间戳支持到1000fps,实际吞吐取决于尺寸/处理链/硬件;已测256×144无增强约999fps,不是4K千帧保证。NR表盘只表示NR阶段GPU耗时,不是采集到屏幕总延迟;当前已按设置revision隔离统计。USB3Video实卡曾测1080p60与4K18;设备未公开1440p格式,不人为伪造模式。
+最新交接见 [HANDOFF_2026-09-10.md](HANDOFF_2026-09-10.md)。RTX Video SR已接入共享管线;专业模式补帧页可切换DLSS或XeSS。FRUC 已从产品移除。播放器时间戳支持到1000fps,实际吞吐取决于尺寸/处理链/硬件;已测256×144无增强约999fps,不是4K千帧保证。NR表盘只表示NR阶段GPU耗时,不是采集到屏幕总延迟;当前已按设置revision隔离统计。USB3Video实卡曾测1080p60与4K18;设备未公开1440p格式,不人为伪造模式。
diff --git a/include/veyra/engine/EnhancementSettings.h b/include/veyra/engine/EnhancementSettings.h
index 17ec985e..cf109a97 100644
--- a/include/veyra/engine/EnhancementSettings.h
+++ b/include/veyra/engine/EnhancementSettings.h
@@ -6,7 +6,7 @@
#include <string_view>
#include "veyra/pipeline/ResolutionPlan.h"
namespace veyra::engine {
-enum class FrameGenerationBackend { Dlss, Fruc, XeSS };
+enum class FrameGenerationBackend { Dlss, XeSS, Fruc = Dlss };
enum class FlowQuality { Performance, Balanced, Quality };
enum class OpticalFlowBackend { Nvidia, AmdFidelityFx };
enum class ContentRate { Transport, Auto, Fps30, Fps50, Fps60, Capture60To30 };
@@ -14,7 +14,6 @@ enum class AudioSyncMode { Automatic, Manual, Off };
constexpr std::string_view frameGenerationBackendName(FrameGenerationBackend backend) {
switch(backend) {
case FrameGenerationBackend::Dlss: return "DLSS";
- case FrameGenerationBackend::Fruc: return "FRUC";
case FrameGenerationBackend::XeSS: return "XeSS";
}
return "unknown";
diff --git a/include/veyra/engine/LiveFgAdmission.h b/include/veyra/engine/LiveFgAdmission.h
index 25803673..03fd0c1f 100644
--- a/include/veyra/engine/LiveFgAdmission.h
+++ b/include/veyra/engine/LiveFgAdmission.h
@@ -5,7 +5,7 @@
#include <optional>
namespace veyra::engine {
-// A pair is indivisible: NGX MFG indices and FRUC instances share history.
+// A pair is indivisible: NGX MFG indices share history.
// Admit while at least its last generated timestamp can still be useful.
inline bool admitLiveFg(int64_t now, int64_t lastDeadline, double elapsedMs,
std::optional<double> completionP95Ms, double presentP95Ms) {
diff --git a/include/veyra/pipeline/EnhanceGraph.h b/include/veyra/pipeline/EnhanceGraph.h
index 7f20ca45..b2ec1b62 100644
--- a/include/veyra/pipeline/EnhanceGraph.h
+++ b/include/veyra/pipeline/EnhanceGraph.h
@@ -45,7 +45,6 @@ class NgxCoreHost;
class DlssSrBackend;
class VideoSrBackend;
class DlssFgBackend;
-class FrucBackend;
class DlssNrRuntimeAdapter;
class NvOfSession;
}
@@ -283,8 +282,6 @@ private:
std::unique_ptr<guidance::AmdOpticalFlow> amdOf_;
std::unique_ptr<ngx::VideoSrBackend> videoSrBackend_;
std::unique_ptr<ngx::DlssFgBackend> fgBackend_;
- std::unique_ptr<ngx::FrucBackend> frucBackend_;
- std::array<bool,6> frucRepeated_{};
NVSDK_NGX_Parameter* ngxParams_ = nullptr;
NVSDK_NGX_Handle* nrHandle_ = nullptr;
uint64_t nrResult_ = 0;
diff --git a/scripts/package-portable.ps1 b/scripts/package-portable.ps1
index 93ec15e6..48f86fcb 100644
--- a/scripts/package-portable.ps1
+++ b/scripts/package-portable.ps1
@@ -13,7 +13,7 @@ $archive = $stage + '.zip'
$runtimeStage = Join-Path $stage 'runtime_local/nvidia'
$licensesStage = Join-Path $stage 'licenses'
-$applicationFiles = @('veyra.exe', 'veyra_fruc_worker.exe', 'avcodec-63.dll', 'avformat-63.dll', 'avutil-61.dll', 'swresample-7.dll', 'swscale-10.dll')
+$applicationFiles = @('veyra.exe', 'avcodec-63.dll', 'avformat-63.dll', 'avutil-61.dll', 'swresample-7.dll', 'swscale-10.dll')
foreach ($file in $applicationFiles) {
if (-not (Test-Path -LiteralPath (Join-Path $bin $file))) { throw "Missing Release file: $file" }
}
@@ -24,10 +24,6 @@ $runtimeFiles = @(
@{ Name = 'nvngx_dlssg.dll'; Source = (Join-Path $resolvedRoot 'runtime_local/nvidia/nvngx_dlssg.dll'); Sha256 = '135EAF0733C1E37381A8C28ABCF7A862404A54132B81787C04E35D09EFC5E36F'; Classification = 'community-experimental-runtime'; Experimental = $true },
@{ Name = 'nvngx_dlssnr.dll'; Source = (Join-Path $resolvedRoot 'runtime_local/nvidia/nvngx_dlssnr.dll'); Sha256 = 'E16BCF15E16E13F527491CDF7845B2FE6521A738D8F7C9C721866A8496E1FC8E'; Classification = 'community-experimental-runtime'; Experimental = $true },
@{ Name = 'nvngx_vsr.dll'; Source = (Join-Path $resolvedRoot 'runtime_local/nvidia/nvngx_vsr.dll'); Sha256 = 'C3D88EEA5FF7A548EDEFA66414CF6E77464D0947277C904F324DD23ABF58A1ED'; Classification = 'official-rtx-video-sdk-runtime'; Experimental = $false },
- @{ Name = 'NvOFFRUC.dll'; Source = (Join-Path $resolvedRoot 'third_party_local/nvidia/Optical_Flow_SDK_5.0.7/NvOFFRUC/NvOFFRUCSample/bin/win64/NvOFFRUC.dll'); Sha256 = '5A0B6701D30709E25E7E5B92CA46B18AAB1459160CECD4F629872369D85C8B0A'; Classification = 'community-experimental-runtime'; Experimental = $true },
- # Direct PE import of NvOFFRUC.dll. Keep the pinned dependency beside it;
- # do not assume a CUDA Toolkit or a globally installed cudart on user PCs.
- @{ Name = 'cudart64_110.dll'; Source = (Join-Path $resolvedRoot 'third_party_local/nvidia/Optical_Flow_SDK_5.0.7/NvOFFRUC/NvOFFRUCSample/bin/win64/cudart64_110.dll'); Sha256 = 'EDC35E7D0FA3F257BBEDFA7888911080C5696ACDD40B6187B6DD0173F20759AD'; Classification = 'cuda-runtime-dependency'; Experimental = $false }
)
foreach ($item in $runtimeFiles) {
if (-not (Test-Path -LiteralPath $item.Source)) { throw "Missing approved runtime: $($item.Name)" }
diff --git a/src/engine/EngineController.cpp b/src/engine/EngineController.cpp
index 31267d7c..47249356 100644
--- a/src/engine/EngineController.cpp
+++ b/src/engine/EngineController.cpp
@@ -135,7 +135,7 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options){
if(!graph.initialize(gd)||!presenter.open(ctx,window,graph)||!graph.createViews()){status(L"增强初始化失败,请核对本地运行时",true);break;}
if(!nvidiaAdapter&&(options.nr||options.sr||(options.fg&&!xessFg))){
veyra::log::warn("capability",std::format("non-NVIDIA adapter disabled requested features: nr={} sr={} fgBackend={} flowBackend={}",options.nr,options.sr,frameGenerationBackendName(options.settings.frameGenerationBackend),opticalFlowBackendName(options.settings.opticalFlowBackend)));
- status(L"当前非 NVIDIA 适配器:NR、NVIDIA 超分与 DLSS/FRUC 已禁用;可使用 XeSS 预览和 AMD 光流",false);
+ status(L"当前非 NVIDIA 适配器:NR、NVIDIA 超分与 DLSS 已禁用;可使用 XeSS 预览和 AMD 光流",false);
}
if(graph.xessEnabled()&&!presenter.xessActive())status(L"XeSS 未启用:运行时或设备不兼容;当前为普通呈现",false);
{
diff --git a/src/engine/PresetStore.cpp b/src/engine/PresetStore.cpp
index 5010661e..058b69aa 100644
--- a/src/engine/PresetStore.cpp
+++ b/src/engine/PresetStore.cpp
@@ -24,7 +24,10 @@ bool PresetStore::parse(const std::string& data,std::vector<UserPreset>& out,std
if(version>=2){int enabled;if(!(in>>enabled>>s.protection.featherPixels)||enabled<0||enabled>1)return false;s.protection.enabled=enabled!=0;
for(auto& q:s.protection.regions)if(!(in>>q.left>>q.top>>q.right>>q.bottom))return false;}
if(version>=3&&!(in>>s.videoSrQuality))return false;
- if(version>=4){int backend;if(!(in>>backend)||backend<0||backend>(version>=6?2:1))return false;s.frameGenerationBackend=static_cast<FrameGenerationBackend>(backend);}
+ if(version>=4){int backend;if(!(in>>backend)||backend<0||backend>(version>=6?2:1))return false;
+ // Version 4-5 used value 1 for FRUC; preserve its intent as DLSS after removal.
+ if(version<6 && backend==1) backend=0;
+ s.frameGenerationBackend=static_cast<FrameGenerationBackend>(backend);}
if(version>=5){uint32_t target;if(!(in>>target))return false;s.srTarget=static_cast<pipeline::SrTarget>(target);}
if(version>=6){int backend,half;if(!(in>>backend>>half)||half<0||half>1)return false;s.opticalFlowBackend=static_cast<OpticalFlowBackend>(backend);s.amdFlowHalfResolution=half!=0;}
if(version>=7){int sync;if(!(in>>sync>>s.audioOffsetMs))return false;s.audioSync=static_cast<AudioSyncMode>(sync);}
diff --git a/src/engine/VideoExportJob.cpp b/src/engine/VideoExportJob.cpp
index 069fded6..7c59c3ba 100644
--- a/src/engine/VideoExportJob.cpp
+++ b/src/engine/VideoExportJob.cpp
@@ -22,7 +22,7 @@ namespace { std::string utf8(const std::wstring& s){const int n=WideCharToMultiB
bool exportVideo(const std::wstring& input,const std::wstring& output,PlayerOptions options,bool hevc,std::atomic<bool>& cancel,const std::function<void(double,const std::wstring&)>& progress,unsigned maxFrames,const std::function<bool()>& frameBoundary,const std::function<void(const ExportCounts&)>& counts){
if(std::filesystem::exists(output)||std::filesystem::exists(output+L".partial")){progress(0,L"目标或partial文件已存在,请使用其他名称");return false;}
if(options.fg&&options.settings.frameGenerationBackend==FrameGenerationBackend::XeSS){
- progress(0,L"XeSS 帧生成目前仅支持预览;导出请选择 DLSS、FRUC 或关闭补帧");
+ progress(0,L"XeSS 帧生成目前仅支持预览;导出请选择 DLSS 或关闭补帧");
veyra::log::warn("export","XeSS FG export rejected: public XeSS swapchain API has no encoder texture output contract");
return false;
}
diff --git a/src/pipeline/EnhanceGraph.cpp b/src/pipeline/EnhanceGraph.cpp
index 61625cf2..e2a3d1b6 100644
--- a/src/pipeline/EnhanceGraph.cpp
+++ b/src/pipeline/EnhanceGraph.cpp
@@ -20,7 +20,6 @@
#include "veyra/gfx/CommandSlotRing.h"
#include "veyra/gfx/D3D12DeviceContext.h"
#include "veyra/ngx/DlssFgBackend.h"
-#include "veyra/ngx/FrucBackend.h"
#include "veyra/ngx/DlssNrParameters.h"
#include "veyra/ngx/DlssNrRuntimeAdapter.h"
#include "veyra/ngx/DlssSrBackend.h"
@@ -380,13 +379,6 @@ bool EnhanceGraph::initNgxFeatures()
fgCaps.available, fgCaps.multiFrameCountMax));
}
- if(!desc_.stillImage&&desc_.frameGenerationBackend==engine::FrameGenerationBackend::Fruc){
- if(desc_.enableFg){
- frucBackend_=std::make_unique<ngx::FrucBackend>();
- if(!frucBackend_->initialize(context_,workW_,workH_,std::max(2u,desc_.fgMultiplier)))return false;
- }
- fgCapsAvailable_=true;fgMultiFrameMax_=3;
- }
if(nrEnabled_){
nrAdapter_ = std::make_unique<ngx::DlssNrRuntimeAdapter>();
if (!nrAdapter_->load(desc_.runtimeAbsPath.c_str(), st) ||
@@ -874,7 +866,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
// Guidance from original source-space color before SR/NR. Queue waits are GPU-side.
bool haveFlow = false;
- const bool runMotion = nvofStandalone_ || xessEnabled() || (fgEnabled_&&!frucBackend_) || (srEnabled_ && !desc_.videoSrQuality);
+ const bool runMotion = nvofStandalone_ || xessEnabled() || fgEnabled_ || (srEnabled_ && !desc_.videoSrQuality);
if (runMotion && (amdOf_ || (nvof_ && nvof_->initialized()))) {
const float dims[8] = {uintBits(nvofW_),uintBits(nvofH_),uintBits(nvofW_),uintBits(nvofH_),0,0,0,0};
if (prevValid_) {
@@ -1116,7 +1108,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
motionPreviousSource_[parity]=previousSource_;
}
previousSource_=sourceFrameId;
- const bool fgBackendAvailable=fgEnabled_&&(frucBackend_||(fgBackend_&&fgBackend_->created()));
+ const bool fgBackendAvailable=fgEnabled_&&(fgBackend_&&fgBackend_->created());
out.fgCandidates=fgBackendAvailable?desc_.fgMultiplier-1:0;
const bool runFg=fgBackendAvailable&&(!admitFg||admitFg(out.batch));
const bool resetFg=reset||!prevValid_||fgHistorySkipped_;
@@ -1127,27 +1119,6 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Frame
if(!runFg)gpuTimer_.submitted(ring_.lastSignaledValue());
out.videoFenceValue = ring_.lastSignaledValue();
- if(runFg&&frucBackend_){
- // Reseeding changes the next FRUC call, not resource ownership. Its
- // input fence follows previous output copies on the same direct queue.
- if(resetFg&&realFrameIndex_>0&&!frucBackend_->reset())return false;
- auto* flist=ring_.acquireNext(slot,st);if(!flist)return false;
- gpuTimer_.mark(flist,GpuStage::FgBatch);
- frucBackend_->recordInput(flist,videoFrame_[parity].Get(),parity);
- if(!ring_.submitAndSignal(slot))return false;
- std::array<bool,3> repeats{};
- if(!frucBackend_->execute(parity,!resetFg?prevPtsMs_:ptsMs,ptsMs,repeats))return false;
- out.fgEvaluated=desc_.fgMultiplier-1;
- flist=ring_.acquireNext(slot,st);if(!flist)return false;
- for(uint32_t sub=1;sub<desc_.fgMultiplier;++sub){const unsigned generatedSlot=parity+(sub-1)*2;frucBackend_->recordOutput(flist,genFrame_[generatedSlot].Get(),sub);frucRepeated_[generatedSlot]=repeats[sub-1];}
- gpuTimer_.mark(flist,GpuStage::FgBatch,true);gpuTimer_.resolve(flist);
- if(!ring_.submitAndSignal(slot))return false;gpuTimer_.submitted(ring_.lastSignaledValue());
- out.genFenceValue=ring_.lastSignaledValue();out.genSlot=parity;out.hasGenerated=!resetFg;
- if(out.hasGenerated)for(uint32_t sub=1;sub<desc_.fgMultiplier;++sub){const unsigned generatedSlot=parity+(sub-1)*2;++metrics_.fgSubmittedCandidates;
- BatchFrame f;f.identity=out.batch.identity;f.kind=FrameKind::Generated;f.validity=GenerationValidity::Pending;f.subframe=sub;f.pts100ns=FrameBatch::interpolate(out.batch.a100ns,out.batch.b100ns,sub,desc_.fgMultiplier);
- f.lease=std::make_shared<FrameLease>();f.lease->texture=genFrame_[generatedSlot];f.lease->slot=generatedSlot;f.lease->readyFence=out.genFenceValue;generatedLeases_[generatedSlot]=f.lease;out.batch.append(std::move(f));}
- }
-
// FG reads enhanced SDR color, not the pre-NR guidance input.
if (runFg && fgBackend_ && fgBackend_->created()) {
for(uint32_t sub=1;sub<desc_.fgMultiplier;++sub){
@@ -1226,15 +1197,11 @@ bool EnhanceGraph::resolveGeneration(FrameOutputs& out)
for(uint32_t i=0;i<out.batch.count;++i){
auto& frame=out.batch.frames[i];if(frame.kind!=FrameKind::Generated)continue;
if(frame.validity!=GenerationValidity::Pending){anyValid|=frame.validity==GenerationValidity::Valid;continue;}
- uint32_t disabled=frucRepeated_[frame.lease->slot];
- if(!frucBackend_){
- void* data=nullptr;D3D12_RANGE range{0,4};
- HRESULT hr=fgDisableReadback_[frame.lease->slot]->Map(0,&range,&data);
- if(FAILED(hr)){frame.validity=GenerationValidity::Failed;out.hasGenerated=false;veyra::log::error("fg-status",std::format("Map hr=0x{:X}",unsigned(hr)));return true;}
- disabled=*static_cast<uint8_t*>(data);
- D3D12_RANGE written{0,0};fgDisableReadback_[frame.lease->slot]->Unmap(0,&written);
- }
- const bool rejected=disabled||out.contentDuplicate;
+ void* data=nullptr;D3D12_RANGE range{0,4};
+ HRESULT hr=fgDisableReadback_[frame.lease->slot]->Map(0,&range,&data);
+ if(FAILED(hr)){frame.validity=GenerationValidity::Failed;out.hasGenerated=false;veyra::log::error("fg-status",std::format("Map hr=0x{:X}",unsigned(hr)));return true;}
+ const bool rejected=*static_cast<uint8_t*>(data)||out.contentDuplicate;
+ D3D12_RANGE written{0,0};fgDisableReadback_[frame.lease->slot]->Unmap(0,&written);
frame.validity=rejected?GenerationValidity::Disabled:GenerationValidity::Valid;
anyValid|=!rejected;if(rejected)++metrics_.fgDisabledFrames;else ++metrics_.fgGeneratedFrames;
if(veyra::log::verboseFrameLogs())veyra::log::info("fg-status",std::format("batch={} frame={} epoch={} revision={} subframe={} fence={} disable={} valid={}",out.batch.batchId,out.realFrameIndex,out.batch.identity.epoch,out.batch.identity.settingsRevision,frame.subframe,frame.lease->readyFence,disabled,!rejected));
@@ -1248,10 +1215,10 @@ bool EnhanceGraph::applySettings(const engine::EnhancementSettings& s){
// reject unrelated live settings in that degraded, playable state.
if(s.nr&&desc_.enableNr&&!nrHandle_)return false;
if(s.opticalFlowBackend!=desc_.opticalFlowBackend||s.amdFlowHalfResolution!=desc_.amdFlowHalfResolution)return false;
- // DLSS and FRUC allocate multiplier-specific feature/output resources;
+ // DLSS allocates multiplier-specific feature/output resources.
// XeSS has a fixed 2X proxy swapchain contract. Settings callers must
// rebuild instead of accepting a change that cannot take effect in place.
- if(std::max(2u,s.multiplier)!=desc_.fgMultiplier||(s.frameGenerationBackend==engine::FrameGenerationBackend::Fruc&&s.multiplier>1&&!frucBackend_)||s.frameGenerationBackend!=desc_.frameGenerationBackend||s.videoSrQuality!=desc_.videoSrQuality||!s.validate().empty()||(s.multiplier>1&&s.frameGenerationBackend!=engine::FrameGenerationBackend::XeSS&&(!fgCapsAvailable_||s.multiplier-1>uint32_t(fgMultiFrameMax_))))return false;
+ if(std::max(2u,s.multiplier)!=desc_.fgMultiplier||s.frameGenerationBackend!=desc_.frameGenerationBackend||s.videoSrQuality!=desc_.videoSrQuality||!s.validate().empty()||(s.multiplier>1&&s.frameGenerationBackend!=engine::FrameGenerationBackend::XeSS&&(!fgCapsAvailable_||s.multiplier-1>uint32_t(fgMultiFrameMax_))))return false;
desc_.contentRate=s.content;desc_.model=s.model;desc_.residual=s.residual;desc_.protection=s.protection;desc_.settingsRevision=s.revision;
desc_.fgMultiplier=std::max(2u,s.multiplier);desc_.enableNvofStandalone=s.nr&&!desc_.stillImage;nvofStandalone_=desc_.enableNvofStandalone;
setNrEnabled(s.nr);setFgEnabled(s.multiplier>1&&s.frameGenerationBackend!=engine::FrameGenerationBackend::XeSS);
@@ -1272,7 +1239,7 @@ ID3D12Fence* EnhanceGraph::contextFence()const{return context_.fence();}
uint32_t EnhanceGraph::actualFlowPerf()const{return nvof_?nvof_->caps().actualPerfLevel:0;}
bool EnhanceGraph::fgCreated() const
{
- return frucBackend_ || (fgBackend_ && fgBackend_->created());
+ return fgBackend_ && fgBackend_->created();
}
uint64_t EnhanceGraph::lastNvofSignal() const
@@ -1317,7 +1284,6 @@ void EnhanceGraph::shutdown()
(void)nrAdapter_->snippetReleaseFeature(nrHandle_, rr, rs);
nrHandle_ = nullptr;
}
- frucBackend_.reset();
amdOf_.reset();
for(auto& motion:presentMotion_)motion.Reset();
if (fgBackend_) fgBackend_->release();