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(perf): parse actual software submission events in focus comparison

Veyra Goal Agent7db25711b7df
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index a5d0541a..e21cdbfc 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -8374,3 +8374,5 @@ d0984e0/build-r0-final-v3构建成功,但R0-obs-rhi-extent-v1第一轮GPU全
最终构建UI SHA06fc3703b0007df8467a7dd08e1e7acba25d21d539fb44ba42292d32e7b256e3,R0-obs-compat-final-v2实际六场景有视频及resize后50ms退出0,7退出/16合同(Quick39、D3D debug0)/4真实UI/5 worker/10原生470全帧与240编码输出/8页严格启动全通过。R0-focus-normal-v1的第一A运行在10秒申请激活后立即读Foreground仍为PID40068,夹具停止,不能作为前后台有效数据;本轮播放器/helper均已退出、原焦点恢复,原日志保留。GetForegroundWindow真实完成验证增加最多2秒观察,不改系统焦点锁定或用户设置,不以Qt变量伪造焦点;新对照仍需全部实际Qt active与Win32前台PID一致才接受。
R0-focus-normal-v2加2秒等待仍不能激活A。只读核验PID40068是06:32:59启动的Windows PickerHost(父svchost),不是本轮GDI helper,前述未核验身份推断已更正;未关闭该系统窗口。下一夹具记录API返回/error,临时对当前/前台/目标输入队列连接并在调用后立即解除,只BringWindowToTop本轮目标,不发键盘鼠标输入、不改全局焦点锁,不碰PickerHost配置或结束其进程。无实际焦点变化仍判夹具失败,不能用无效A/B数据称后台问题修复。
+
+R0-focus-normal-v3 A三次Win32激活真实成功(API/error和前台PID已记录),实际Qt active前/后台状态匹配,普通完整播放exit0/sourceSkipped0;随后解析器错用不存在的[pacing-submit]事件而无法计算间隔。实际产品格式为既有R0-normal使用的[submit] pts100ns/host100ns,修正解析并逐次保存focus-events;未降低必须有真实焦点和100个区间的断言,原失败数据保留。第一次真正完成激活后旧PickerHost没有可恢复的原窗口句柄,cleanup恢复调用false如实记录;未向它发关闭消息或修改配置。
diff --git a/scripts/perf/nr-r0-focus.py b/scripts/perf/nr-r0-focus.py
index 959dd8d1..b4208d4d 100644
--- a/scripts/perf/nr-r0-focus.py
+++ b/scripts/perf/nr-r0-focus.py
@@ -90,6 +90,7 @@ def run():
event={'position':position,'activeRequested':active,'targetPid':pid,'foregroundPid':pid_of(user.GetForegroundWindow()),'applied':ok}
event['activation']=focus_info
events.append(event);done.add(start)
+ (out/(name+'-focus-events.json')).write_text(json.dumps(events,ensure_ascii=False,indent=2),encoding='utf-8')
print('R0_FOCUS_ACTION',name,json.dumps(event),flush=True)
assert ok,'Foreground request failed; fixture cannot establish comparison'
actual='A' if mode=='A' else variant
@@ -99,7 +100,7 @@ def run():
samples=[json.loads(line.split('NR_PERF_SAMPLE ',1)[1]) for line in log.splitlines() if 'NR_PERF_SAMPLE ' in line]
submitted=[]
for line in log.splitlines():
- if '[pacing-submit]' in line and 'event=submitted' in line:
+ if '[submit]' in line:
submitted.append({k:int(v) for k,v in re.findall(r'(\w+)=(-?\d+)',line)})
phases={}
for phase,lo,hi,active in (('foreground-before',13,23,True),('background',28,38,False),('foreground-after',43,48,True)):