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

test: initialize COM for low-chain full-frame PNG evidence

Veyra Goal Agentec49179ebebb
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index ed2166ee..36b5d230 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -8280,3 +8280,6 @@ native nr-queue-migration.py B2d B3c-migration-v1九组通过,1278完整输出
# 2026-10-05 4a低分辨率链候选构建
before cefbaec / checkpoint/perf-nr-4a-low-chain-before-20261004。按固定SAOG27c5df9/GPL3拓扑移植,明确保留每层五项残差控制,仅2/3层同尺寸非时域SDR列表图,L0一次降采样、LN-L0一次全尺寸叠回/保护;fresh-list、NVOF单位、单层及其他拓扑保持。默认关闭且只测试ENV入口,源码/THIRD_PARTY_NOTICES注明来源及改动,方案PERF_4A_LOW_CHAIN_2026-10-05。build-low-chain-v1/v2通过(UI+native),E:/项目/Veyra/logs/perf-nr-20261004;将执行10组合各off/on共800全图及独立控制/回退验证,再普通Qt计时。没有创建竞争/显存压力,未标画质或性能通过。
+# 2026-10-05 4a native图像导出fixture修正
+
+B4a-native-v1首组单NR关闭候选已求值、CSV输出一张有效完整SHA且debug0,但PNG保存失败(completed0);测试main未初始化COM,WIC factory需要CoInitializeEx。修正仅fixture初始化/RAII析构与HRESULT记录,不改产品;保留E:/项目/Veyra/logs/perf-nr-20261004/B4a-native-v1-single-off原证据,下一轮使用新标签。不能把该PNG fixture错误解释为NR失效。
diff --git a/tests/perf/NrLowChainExperiment.cpp b/tests/perf/NrLowChainExperiment.cpp
index 7314833a..9271ee2e 100644
--- a/tests/perf/NrLowChainExperiment.cpp
+++ b/tests/perf/NrLowChainExperiment.cpp
@@ -7,6 +7,7 @@
#include <d3d12sdklayers.h>
#include <fstream>
#include <iostream>
+#include <objbase.h>
int wmain(int argc,wchar_t** argv){
using namespace veyra;if(argc!=4)return 2;const std::wstring group=argv[3];
@@ -16,6 +17,8 @@ int wmain(int argc,wchar_t** argv){
if(group!=L"2"&&!sr&&!single&&!triple&&!mixed&&!temporal&&!protectedGroup&&!edits)return 2;
const unsigned layers=single?1:triple?3:2;
const std::filesystem::path out=argv[2];std::filesystem::create_directories(out);Logger::instance().openFile((out/L"engine.log").wstring());
+ const HRESULT com=CoInitializeEx(nullptr,COINIT_MULTITHREADED);log::info("low-chain-test",std::format("COM init hr=0x{:X}",unsigned(com)));if(FAILED(com))return 2;
+ struct Apartment {~Apartment(){CoUninitialize();}} apartment;
Microsoft::WRL::ComPtr<ID3D12Debug> layer;if(FAILED(D3D12GetDebugInterface(IID_PPV_ARGS(&layer))))return 2;layer->EnableDebugLayer();
engine::EffectChain chain;chain.nodeCount=layers;
for(unsigned i=0;i<layers;++i){chain.nodes[i].type=engine::EffectType::NrEnhance;chain.nodes[i].enabled=true;