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(capture): release Qt resize hold after first native present and verify close boundary
Veyra Goal Agent62cd49b0b30f
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 2a34083e..22723646 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -8360,3 +8360,5 @@ R0-obs-candidate 92a181f/bundle708e4834c19078b50d33203ea0963255f3c1425fe9edae414R0-obs-resize-verified-v2严格复测GPU全屏仍失败(视频crop标准差1.22/1.22/1.70),250ms候选不可靠;cleanup全部true。封存A同一新夹具R0-obs-baseline-verified-v3全屏有实际视频(30.64/28.59/22.59),普通窗口旧限制保留。拒绝250ms方案并封存,然后明确恢复9a30cf8的VideoPresenter/header生产字节。OBS源码的全局选择发生在hook_present的RealPresent之前;下个最小实验仅在native resize恢复绘制后用一次公开DXGI_PRESENT_TEST探测(不输出帧)提前登记本交换链,记录HRESULT,不修改OBS/DLL、不计入成功呈现帧。未验证不能称修复。81301c5/build-r0-capture-prime-v1构建成功,但R0-obs-capture-prime-v1全屏仍为空白,TEST HRESULT=0不能当作抓取成功,严格crop仍1.22/1.22/1.70。真实resize占约22ms,期间Qt可能先选入OBS全局状态,事后TEST无法覆盖已选Qt链。拒绝此实验并回退。下一候选在Qt公开beforeFrameBegin/afterFrameEnd接点维护每窗口独立帧锁;native只在实际OBS注入且要resize时对全部Qt帧锁try_lock,忙则保留旧buffer下一帧再试,取得后覆盖resize和首次真实Present。没有native等待/固定sleep/额外GPU帧/运行库patch;软件UI不用锁,正常未注入不加锁。对主窗口及全屏控制窗一并处理,防止另一个Qt链在resize期间重选。需真实采集、正常resize、退出及CPU/GPU调度回归后才决定。++cc7f5a3/build-r0-capture-gate-v1构建5步成功。R0-obs-capture-gate-v1 GPU全屏严格视频区域有真实图(已看原图),compat六阶段全部有真实视频,cleanup全部true。GPU窗口阶段仍为封存A也存在的限制,不作6/6视频通过。主/全屏控制两个Qt帧锁实际登记且resize日志qtWindows=2;仅实际OBS期间Qt帧锁,native不阻塞try_lock并在首次Present之后立即释放。下一最终构建还将实际OBS录制期间resize后50ms关闭作为退出边界;当前一轮不能替代重复与全回归。diff --git a/scripts/perf/nr-r0-obs.py b/scripts/perf/nr-r0-obs.pyindex 7bd70331..415e3fd2 100644--- a/scripts/perf/nr-r0-obs.py+++ b/scripts/perf/nr-r0-obs.py@@ -262,16 +262,17 @@ def run():shots.append(observation)(logs/(mode+'-observations.json')).write_text(json.dumps(shots,ensure_ascii=False,indent=2),encoding='utf-8')assert not required or video_available, ('Capture lacks real picture',mode,stage,variation)+ action('exit-resize'); player.wait(timeout=12)stopped = rpc.call('StopRecord')clip = Path(stopped['outputPath'])assert clip.resolve().is_relative_to((test/'recordings').resolve()) and clip.stat().st_size > 10000stats = rpc.call('GetStats')rpc.call('RemoveInput',{'inputName':input_name})- action('quit'); player.wait(timeout=12)text = (logs/(mode+'-player.log')).read_text(encoding='utf-8',errors='replace')assert player.returncode == 0 and 'OBS_UI_PASS' in textassert not any(value in text for value in ('OBS_UI_FAIL','[ERROR]','[FATAL]','ReferenceError:','TypeError:'))- row = {'mode':mode,'command':args,'recording':str(clip),'recordingSha256':matrix.digest(clip),'shots':shots,'obsStats':stats,'passed':True}+ row = {'mode':mode,'command':args,'recording':str(clip),'recordingSha256':matrix.digest(clip),'shots':shots,'obsStats':stats,+ 'exitDuringResize':True,'playerExitCode':player.returncode,'passed':True}rows.append(row); (logs/'completed.json').write_text(json.dumps(rows,ensure_ascii=False,indent=2),encoding='utf-8')print('R0_OBS_CAPTURE_PASS',mode,sum(shot['requiredVideoCapture'] for shot in shots),'supported video stages;',len(shots),'observed stages',flush=True)diff --git a/scripts/perf/nr-r0-obs.qml b/scripts/perf/nr-r0-obs.qmlindex 5fc3ee36..ed7192e2 100644--- a/scripts/perf/nr-r0-obs.qml+++ b/scripts/perf/nr-r0-obs.qml@@ -5,6 +5,7 @@ Item {property string commandFile: ""property int sequence: -1property bool configured: false+ Timer { id: exitResize; interval: 50; onTriggered: { console.log("OBS_UI_PASS"); Qt.quit() } }function require(ok, why) { if (!ok) { console.log("OBS_UI_FAIL", why); Qt.exit(3) } }Timer {interval: 500; running: true; repeat: true@@ -34,6 +35,7 @@ Item {if (c.action === "resize") { probe.appWindow.width = 1000; probe.appWindow.height = 700 }if (c.action === "fullscreen" && !probe.appWindow.fullscreen) probe.appWindow.toggleFullscreen()if (c.action === "windowed" && probe.appWindow.fullscreen) probe.appWindow.toggleFullscreen()+ if (c.action === "exit-resize") { probe.appWindow.width = 1100; probe.appWindow.height = 750; exitResize.start() }if (c.action === "quit") { console.log("OBS_UI_PASS"); Qt.quit() }console.log("OBS_UI_ACTION", c.action, probe.sequence)}diff --git a/src/engine/VideoPresenter.cpp b/src/engine/VideoPresenter.cppindex 09942bba..077f6fa0 100644--- a/src/engine/VideoPresenter.cpp+++ b/src/engine/VideoPresenter.cpp@@ -283,6 +283,7 @@ bool VideoPresenter::present(gfx::D3D12DeviceContext& ctx,gfx::CommandSlotRing&const auto dxgiStart=std::chrono::steady_clock::now();reflex_.mark(reflexFrame_,3);reflex_.mark(reflexFrame_,4);const bool presented=sink_.present(st);+ captureResizeHold.reset(); // release Qt immediately after the native Presentreflex_.mark(reflexFrame_,5);reflexFrame_=0;const auto presentEnd=std::chrono::steady_clock::now();const auto ms=[](auto d){return std::chrono::duration<double,std::milli>(d).count();};