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(perf): archive exit repair and failing OBS GPU capture comparisons
Veyra Goal Agent92a181f14ca1
diff --git a/docs/PERF_R0_ACCEPTANCE_2026-10-05.md b/docs/PERF_R0_ACCEPTANCE_2026-10-05.mdindex f7df0e06..4aa430c5 100644--- a/docs/PERF_R0_ACCEPTANCE_2026-10-05.md+++ b/docs/PERF_R0_ACCEPTANCE_2026-10-05.md@@ -58,3 +58,11 @@ S4完整候选对基线增强区间下降3.52%;同一B的DIRECT增强19.299ms## OBS(尚待执行)OBS按官方32.1.2源码的portable配置及obs-websocket RPC1另写隔离驱动;只复制只读安装payload、临时认证服务,只选择本轮唯一标题的Veyra窗口,禁用桌面/麦克风输入和网络推流。仅待普通计时结束后执行正常录制、暂停恢复/缩放/全屏功能;未执行前无通过结论。++### 已执行与回归阻塞++实际OBS32.1.2启动:v1 API已连接但profile未ready,返回207;驱动按明确207有界重试,未降低画面断言。`R0-obs-capture-v3 compat`真实软件兼容模式六场景通过,实际NR、源码记录、六截图、MKV齐全;查看全屏及退回窗口原图确有M1视频。无网络推流、无个人音频输入,用户ini/json SHA未变,每轮临时服务停用、只退出本轮OBS/播放器。++GPU界面模式两次当前候选(v2/v4)均在fullscreen抓到Qt暗背景、没有视频,非通过;封存A两次(R0-obs-baseline-v1/v2)均通过且已查看真实全屏视频。关闭paused present复用仍失败;当前EXE配基线QML仍失败;封存退出修复前e8f0bd1也失败,排除本次退出修复。阶段存档B2d失败、核心复用B2a通过、暂停空闲B5c在resize失败。阶段对照指向5c呈现空闲改动,尚不能用阶段名字替代根因。++当前需先封存所有原始失败/对照、最小恢复5c暂停呈现的旧语义,再重跑两个OBS模式;残差NR复用单独保留待复核。不能为了结束任务把GPU模式黑屏忽略、用兼容模式通过替代两模式,或沿用0.011%暂停GPU收益声称最终仍有效。所有原始player/OBS日志、截图、录像、artifacts/cleanup在同名E盘目录,OBS用户配置均原字节保持。diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex c517f86c..2d29fb8d 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -8344,3 +8344,7 @@ R0合同14项+Qt Quick39项通过;真实Qt GPU/软件功能布局4/4、严格8`nr-r0-close.py B2d R0-close-rebuild-v1`请求FSR后200ms退出实际C0000005;封存A的`R0-close-baseline-v1 fsr3`同样失败。初始化在Qt HWND销毁后继续,CreateSwapChainForHwnd 80070005后清理崩溃。源码确认PresentSink非拥有旧队列未清空,交换链失败前未赋新队列,随后VideoPresenter释放旧队列;重建缺取消检查/停止后仍回滚。先存档本候选和完整失败证据,再最小修复queue生命周期/长初始化取消。没有压力/GPU竞争/设备移除;OBS真实采集仍待,候选尚不可交付。R0-candidate eb8b1a2已存档,bundle da0440b9229a8bcbc4c6a918d1cdeac38b3372ae4c8eff3af358744424dc3e61。退出修复候选只改PresentSink提前绑定当前queue/拒绝失效HWND/清空借用句柄与指针、VideoPresenter验证目标窗口、EngineController NGX返回后的stop和退出不回滚。其他呈现重建统一经过同一取消检查,保留仅交换链恢复不重建views的旧语义。新增实际D3D12 debug生命周期测试:合法打开→释放旧队列→已关闭窗口初始化失败→重复关闭→新窗口重开,三轮;不造GPU负载/设备故障。待构建及真实退出回归,不提前标通过。++退出修复04a0fc3构建v1因Agent填错未知target veyra_export_queue_worker失败,未编译产品;v2改真实veyra_export_workflow_tests,18步成功。新UI EXE c512b8782eb86f70c584a6c1bb87c918af648c0b3aee77cf04a2b0967a628464;R0-exit-contracts-v1 repair/真实PresentSink三轮failed-open/reopen重复清理2/2通过,debugErrors=0;R0-close-fixed-v1七个实际Qt退出(FSR/XeSS/VFG/SF-v2尺寸层数/停止)全exit0、六次真实长创建后取消,无泄漏/交换链错误。原before A/B崩溃日志与dmp不删。++OBS正常功能R0发现阻塞:v1 API207未ready修正有界重试;v3软件兼容六场景通过/截图已看/用户OBS配置未变。GPU界面v2/v4均全屏黑图;基线A两轮通过且全屏原图有真实视频。paused-present-off、基线QML、退出修复前EXE均不能消除;B2d阶段失败、B2a核心阶段通过、B5c暂停空闲阶段resize失败。非压力/性能测试,所有阶段同M1/单NR/源码截图与录像/原用户配置不变。先存档本失败候选,再恢复5c旧呈现语义;NR残差复用独立保留,暂停0.011%旧数据暂不作为最终保留收益。详PERF_R0_ACCEPTANCE及E:/项目/Veyra/logs/perf-nr-20261004/R0-obs-*。diff --git a/scripts/perf/nr-final-package.py b/scripts/perf/nr-final-package.pyindex e5531403..2a197f1d 100644--- a/scripts/perf/nr-final-package.py+++ b/scripts/perf/nr-final-package.py@@ -21,6 +21,8 @@ shutil.copytree(source,package,copy_function=matrix.copy_dependency,ignore=shutil.ignore_patterns('*.log','logs','user-data*','*.dmp','*tests.exe','qml-tests','QtTest','Qt6Test.dll','Qt6QuickTest.dll','qoffscreen.dll'))build=BASE/'build'/TASK/variantshutil.copy2(build/'veyra_qml_ui.exe',package/'veyra_qml_ui.exe')+tested=json.loads((BASE/'logs'/TASK/'R0-close-fixed-v1-summary/artifacts.json').read_text(encoding='utf-8'))+assert matrix.digest(package/'veyra_qml_ui.exe')==tested['veyra_qml_ui.exe'], 'Package executable differs from exit regression'shutil.copytree(ROOT/'qml',package/'qml',dirs_exist_ok=True)build_shaders=build/'shaders'if build_shaders.is_dir():shutil.copytree(build_shaders,package/'shaders',dirs_exist_ok=True)@@ -37,7 +39,7 @@ cache=(build/'CMakeCache.txt').read_text(encoding='utf-8')display=re.search(r'^VEYRA_DISPLAY_VERSION:STRING=(.+)$',cache,re.M).group(1)manifest=json.loads((package/'package-manifest.json').read_text(encoding='utf-8-sig'))manifest.update(candidate=label,displayVersion=display,baseCommit='8cdc612120cbf23ba116a33c3cb0a53e2043f718',- productCodeCommit='e8f0bd1082293c88a3ca1db851667162e4cef7a9',sourceArchiveCommit=head,worktreeDirty=False,+ productCodeCommit='04a0fc3e86f0fa200baa2581818c6e6bd9aff0ab',sourceArchiveCommit=head,worktreeDirty=False,releaseReady=False,localOnly=True,gpuPackage='NVIDIA',sourceZipSha256=matrix.digest(source_zip),validation='RTX5070/616.56 normal-load candidate; other GPUs, real consoles/capture and physical display latency unverified')manifest['correspondingSource']['application']='../'+source_zip.namediff --git a/scripts/perf/nr-r0-contracts.py b/scripts/perf/nr-r0-contracts.pyindex c75bf30d..20b93dca 100644--- a/scripts/perf/nr-r0-contracts.py+++ b/scripts/perf/nr-r0-contracts.py@@ -15,7 +15,9 @@ shutil.copy2(qt/'plugins/platforms/qoffscreen.dll',app/'platforms/qoffscreen.dll# Windows setting or unrelated process is changed.ctypes.windll.kernel32.SetErrorMode(0x0002)fixtures=BASE/'tests/playback-smoothness-20261004/fixtures';assert (fixtures/'tone.wav').is_file()-cases=[('repair','veyra_repair_contract_tests',[]),('xbox','veyra_xbox_tests',[]),('effect-chain','veyra_effect_chain_tests',[]),+cases=[('repair','veyra_repair_contract_tests',[]),+ ('present-sink','veyra_present_sink_lifecycle_tests',[str(BASE/'logs'/TASK/label/'present-sink')]),+ ('xbox','veyra_xbox_tests',[]),('effect-chain','veyra_effect_chain_tests',[]),('preset','veyra_repair_preset_tests',[str(BASE/'tests'/TASK/label/'presets.v1')]),('availability','veyra_effect_availability_tests',[]),('ui-contract','veyra_ui_contract_tests',[str(BASE/'tests'/TASK/label/'ui-contract')]),('vfg-settings','veyra_vfg_settings_tests',[str(BASE/'tests'/TASK/label/'vfg-settings')]),('auto-controller','veyra_nr_auto_controller_tests',[]),('i18n','veyra_ui_i18n_tests',[]),diff --git a/scripts/perf/nr-r0-obs.py b/scripts/perf/nr-r0-obs.pyindex 4af45ff5..ee3fe45b 100644--- a/scripts/perf/nr-r0-obs.py+++ b/scripts/perf/nr-r0-obs.py@@ -77,15 +77,20 @@ class ObsRpc:if a & 128: return json.loads(b''.join(chunks))def call(self, kind, data=None):- self.counter += 1- request_id = str(self.counter)- self.send({'op':6, 'd':{'requestId':request_id, 'requestType':kind, 'requestData':data or {}}})+ deadline = time.monotonic()+15while True:- response = self.receive()- if response['op'] == 7 and response['d']['requestId'] == request_id:- result = response['d']- assert result['requestStatus']['result'], (kind, result['requestStatus'])- return result.get('responseData', {})+ self.counter += 1+ request_id = str(self.counter)+ self.send({'op':6, 'd':{'requestId':request_id, 'requestType':kind, 'requestData':data or {}}})+ while True:+ response = self.receive()+ if response['op'] == 7 and response['d']['requestId'] == request_id:+ result = response['d']; break+ if result['requestStatus']['code'] == 207 and time.monotonic() < deadline:+ # Websocket can identify before the portable profile is ready.+ time.sleep(.25); continue+ assert result['requestStatus']['result'], (kind, result['requestStatus'])+ return result.get('responseData', {})def close_owned(process, expected):if process is None or process.poll() is not None: return@@ -112,6 +117,12 @@ def config_manifest():def run():variant, label = sys.argv[1:3]+ overrides = [arg.split('=',1)[1] for arg in sys.argv[3:] if arg.startswith('--milestone-exe=')]+ assert len(overrides) <= 1+ switches = {arg for arg in sys.argv[3:] if arg.startswith('--') and not arg.startswith('--milestone-exe=')}+ assert switches <= {'--baseline-qml','--paused-present-off','--pre-exit-exe'}+ modes = tuple(arg for arg in sys.argv[3:] if not arg.startswith('--')) or ('gpu','compat')+ assert len(set(modes)) == len(modes) and all(mode in ('gpu','compat') for mode in modes)assert label.replace('-', '').isalnum()matrix.assert_gpu_tests_idle()assert not any((p.info['name'] or '').lower() == 'obs64.exe' for p in psutil.process_iter(['name'])), 'Existing OBS process; do not disturb it'@@ -140,8 +151,17 @@ def run():ws_config.write_text(json.dumps(settings), encoding='utf-8')app = test/'veyra-app'shutil.copytree(BASE/'test-packages'/TASK/'Veyra-2.0.3-perf-baseline-A-NVIDIA-win64-portable', app, copy_function=matrix.copy_dependency)- shutil.copy2(BASE/'build'/TASK/variant/'veyra_qml_ui.exe', app/'veyra_qml_ui.exe')- shutil.copytree(ROOT/'qml', app/'qml', dirs_exist_ok=True)+ executable = BASE/'build'/TASK/variant/'veyra_qml_ui.exe'+ if '--pre-exit-exe' in switches:+ executable = BASE/'tests'/TASK/'app-B2d-R0-normal-v1/veyra_qml_ui.exe'+ assert matrix.digest(executable) == '8c2276d68d15c2e4466befcf367439b7efc42c68defd5ef93182398c9e8d8a03'+ if overrides:+ assert '--pre-exit-exe' not in switches+ executable = Path(overrides[0]).resolve()+ assert executable.is_relative_to((BASE/'tests'/TASK).resolve()) and executable.name == 'veyra_qml_ui.exe' and executable.is_file()+ shutil.copy2(executable, app/'veyra_qml_ui.exe')+ baseline_qml = variant == 'A' or '--baseline-qml' in switches+ if not baseline_qml: shutil.copytree(ROOT/'qml', app/'qml', dirs_exist_ok=True)shutil.copy2(ROOT/'scripts/perf/nr-r0-obs.qml', app/'qml/Veyra/ObsProbe.qml')actions = test/'actions.json'main = app/'qml/Veyra/Main.qml'@@ -151,10 +171,13 @@ def run():user_config_before = config_manifest()identity = {'playerPayload':payload,'obsExeSha256':matrix.digest(portable/'bin/64bit/obs64.exe'),'installedObsExeSha256':matrix.digest(installed/'bin/64bit/obs64.exe'),'userConfigBefore':user_config_before,- 'sourceSha256':matrix.digest(matrix.SOURCES['M1']),'gpuCompetition':False,'recordingPurpose':'Game capture compatibility, not timing or pressure'}+ 'sourceSha256':matrix.digest(matrix.SOURCES['M1']),'gpuCompetition':False,'baselineQml':baseline_qml,+ 'pausedPresentReuseDisabled':'--paused-present-off' in switches,'executableSource':str(executable),+ 'recordingPurpose':'Game capture compatibility, not timing or pressure'}(logs/'artifacts.json').write_text(json.dumps(identity,ensure_ascii=False,indent=2),encoding='utf-8')env = {k:v for k,v in os.environ.items() if not k.upper().startswith(('VEYRA_','QT_','QSG_','OBS_'))}env.update(TEMP=str(tmp),TMP=str(tmp))+ if '--paused-present-off' in switches: env['VEYRA_TEST_DISABLE_PAUSED_PRESENT_REUSE']='1'obs, player, rpc = None,None,Nonerows = []try:@@ -178,7 +201,7 @@ def run():rpc.call('SetRecordDirectory', {'recordDirectory':str(test/'recordings')})rpc.call('CreateScene',{'sceneName':'VeyraR0'})rpc.call('SetCurrentProgramScene',{'sceneName':'VeyraR0'})- for mode in ('gpu','compat'):+ for mode in modes:title = f'Veyra R0 OBS {label} {mode}'command = {'sequence':0,'action':'start','title':title,'media':str(matrix.SOURCES['M1']).replace('\\','/')}def action(value):@@ -192,8 +215,17 @@ def run():if mode == 'compat': args.append('--obs-game-capture')with (logs/(mode+'-console.log')).open('xb') as console:player = subprocess.Popen(args,cwd=app,env=player_env,stdout=console,stderr=subprocess.STDOUT)- time.sleep(7)- assert player.poll() is None+ deadline = time.monotonic()+35+ while True:+ assert player.poll() is None, 'Owned player exited before NR playback'+ log_file = logs/(mode+'-player.log')+ samples = [line.split('OBS_UI_SAMPLE ',1)[1] for line in log_file.read_text(encoding='utf-8',errors='replace').splitlines()+ if 'OBS_UI_SAMPLE ' in line] if log_file.exists() else []+ if samples:+ latest = json.loads(samples[-1])+ if latest['nr'] and latest['position'] > 1 and not latest['paused'] and not latest['failed']: break+ assert time.monotonic() < deadline, 'Actual enhanced playback did not become ready'+ time.sleep(.25)input_name = 'VeyraOwned-'+moderpc.call('CreateInput',{'sceneName':'VeyraR0','inputName':input_name,'inputKind':'game_capture','inputSettings':{'capture_mode':'window','capture_cursor':False,'capture_overlays':True,'allow_transparency':False},'sceneItemEnabled':True})items = rpc.call('GetInputPropertiesListPropertyItems',{'inputName':input_name,'propertyName':'window'})['propertyItems']