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

fix(ui): confine detailed telemetry toggle to chart card

Veyra Goal Agent1684d9038f80
diff --git a/apps/veyra/ui/LiveStatusDashboard.h b/apps/veyra/ui/LiveStatusDashboard.h
index af54a6b3..b055605f 100644
--- a/apps/veyra/ui/LiveStatusDashboard.h
+++ b/apps/veyra/ui/LiveStatusDashboard.h
@@ -19,7 +19,7 @@ struct DashboardHistory {
else{low=0;if(++good>=8)overloaded=false;}
}
};
-inline void paintDashboard(HWND h,HDC dc,int w,int height,const engine::PlayerSnapshot& s,const DashboardHistory& history){
+inline void paintDashboard(HWND h,HDC dc,int w,int height,const engine::PlayerSnapshot& s,const DashboardHistory& history,bool advanced=false){
const auto& f=s.metrics.flow;const bool active=s.running&&!s.image&&s.transport==engine::TransportState::Playing;
auto text=[&](std::wstring str,int x,int y,int width,int ht,int size,COLORREF color){chromeText(dc,h,str,x,y,width,ht,size,color);};
auto card=[&](int x,int y,int width,int ht){
@@ -29,7 +29,7 @@ inline void paintDashboard(HWND h,HDC dc,int w,int height,const engine::PlayerSn
Gdiplus::SolidBrush bg(Gdiplus::Color(155,29,32,32));g.FillPath(&bg,&p);
Gdiplus::Pen edge(Gdiplus::Color(40,132,145,140),1);g.DrawPath(&edge,&p);
};
- text(L"实时处理状态",12,7,w-100,24,12,textColor);text(L"详情 +",w-65,7,55,24,10,secondary);
+ text(L"实时处理状态",12,7,w-100,24,12,textColor);
const int gap=6,left=10,cw=(w-20-gap*3)/4,top=38;
const diagnostics::GpuStage stages[]={diagnostics::GpuStage::Flow,diagnostics::GpuStage::Nr,diagnostics::GpuStage::Sr,diagnostics::GpuStage::FgBatch};
const wchar_t* names[]={L"光流延迟",L"NR延迟",L"超分延迟",L"帧生成延迟"};
@@ -41,7 +41,9 @@ inline void paintDashboard(HWND h,HDC dc,int w,int height,const engine::PlayerSn
}
const int chartTop=104,chartH=std::max(92,height-188),bottom=chartTop+chartH+8,bw=(w-26)/2;
card(10,chartTop,w-20,chartH);
- text(L"增强额外延迟",20,chartTop+8,w-135,20,10,secondary);
+ text(advanced?L"精细数据":L"增强额外延迟",20,chartTop+8,w-100,20,10,secondary);
+ text(advanced?L"◂":L"▸",w-38,chartTop+5,24,24,14,secondary);
+ if(!advanced){
const auto extra=active?f.cpuTiming[size_t(diagnostics::CpuStage::EnhancementDelayEstimate)].mean:std::optional<double>{};
text(extra?std::format(L"{:.1f}",*extra):L"—",w-103,chartTop+30,85,30,23,textColor);
text(L"ms · 总计估计",w-103,chartTop+62,85,18,9,secondary);
@@ -56,6 +58,7 @@ inline void paintDashboard(HWND h,HDC dc,int w,int height,const engine::PlayerSn
if(!v){prev.reset();continue;}Gdiplus::PointF p(x,float(dip(h,y1))-float(dip(h,y1-y0))*float(*v/peak));if(prev)g.DrawLine(&line,*prev,p);prev=p;}}
text(L"30秒前",x0,y1+3,65,16,8,secondary);text(L"现在",x1-28,y1+3,28,16,8,secondary);
}
+ }
card(10,bottom,bw,58);card(16+bw,bottom,bw,58);
text(L"待输出画面",20,bottom+6,bw-20,18,10,secondary);
const bool xess=s.applied.multiplier>1&&s.applied.frameGenerationBackend==engine::FrameGenerationBackend::XeSS;
diff --git a/apps/veyra/ui/LiveStatusPanel.h b/apps/veyra/ui/LiveStatusPanel.h
index 48bec8a9..22104a1e 100644
--- a/apps/veyra/ui/LiveStatusPanel.h
+++ b/apps/veyra/ui/LiveStatusPanel.h
@@ -14,29 +14,25 @@ inline LRESULT CALLBACK proc(HWND h,UINT message,WPARAM wp,LPARAM lp){
case WM_CREATE:SetTimer(h,1,250,nullptr);return 0;
case WM_TIMER:state->history.sample(state->engine->snapshot());if(IsWindowVisible(h))InvalidateRect(h,nullptr,FALSE);return 0;
case WM_SIZE:InvalidateRect(h,nullptr,FALSE);return 0;
- case WM_LBUTTONUP:if(GET_Y_LPARAM(lp)<dip(h,34)){state->advanced=!state->advanced;state->scroll=0;InvalidateRect(h,nullptr,FALSE);}return 0;
- case WM_MOUSEWHEEL:state->scroll=std::clamp(state->scroll-GET_WHEEL_DELTA_WPARAM(wp)/WHEEL_DELTA*50,0,state->maxScroll);InvalidateRect(h,nullptr,FALSE);return 0;
+ case WM_LBUTTONUP:if(GET_Y_LPARAM(lp)>=dip(h,109)&&GET_Y_LPARAM(lp)<dip(h,133)&&GET_X_LPARAM(lp)>=([&]{RECT r{};GetClientRect(h,&r);return r.right-dip(h,42);}())){state->advanced=!state->advanced;state->scroll=0;InvalidateRect(h,nullptr,FALSE);}return 0;
+ case WM_MOUSEWHEEL:{POINT at{GET_X_LPARAM(lp),GET_Y_LPARAM(lp)};ScreenToClient(h,&at);RECT r{};GetClientRect(h,&r);const int bottom=dip(h,104+std::max(92,MulDiv(r.bottom,96,layoutDpi(h))-188));if(!state->advanced||at.y<dip(h,136)||at.y>=bottom)return 0;}state->scroll=std::clamp(state->scroll-GET_WHEEL_DELTA_WPARAM(wp)/WHEEL_DELTA*50,0,state->maxScroll);InvalidateRect(h,nullptr,FALSE);return 0;
case WM_ERASEBKGND:return 1;
case WM_PAINT:{
PaintBuffer paint(h);fillSurface(paint.dc,paint.rect,h);
const int width=MulDiv(paint.rect.right,96,veyra::ui::layoutDpi(h)),height=MulDiv(paint.rect.bottom,96,veyra::ui::layoutDpi(h));
const auto s=state->engine->snapshot();const auto& f=s.metrics.flow;
- if(!state->advanced){paintDashboard(h,paint.dc,width,height,s,state->history);return 0;}
+ paintDashboard(h,paint.dc,width,height,s,state->history,state->advanced);
+ if(!state->advanced)return 0;
const bool playing=s.running&&!s.image&&s.transport==engine::TransportState::Playing;
const bool xess=s.applied.frameGenerationBackend==engine::FrameGenerationBackend::XeSS&&s.applied.multiplier>1;
auto write=[&](const std::wstring& value,int x,int y,int w,int ht,int size,COLORREF color){chromeText(paint.dc,h,value,x,y,w,ht,size,color);};
auto ms=[](std::optional<double> v){return v?std::format(L"{:.1f} ms",*v):std::wstring(L"未测");};
auto timing=[&](const diagnostics::TimingAggregate& a){return playing&&a.mean&&a.p95?(state->advanced?std::format(L"{:.1f} / {:.1f}",*a.mean,*a.p95):ms(a.mean)):std::wstring(L"未测");};
auto fps=[&](double value){return playing&&!f.rateWindowReady?std::wstring(L"采样中"):std::format(L"{:.1f} fps",value);};
- write(L"实时处理状态",12,8,width-24,24,13,textColor);
- write(state->advanced?L"收起详情 −":L"展开详情 +",width-96,8,84,24,10,secondary);
- const int half=(width-24)/2;
- write(xess?L"呈现提交 · XeSS SDK":L"实际呈现提交",12,36,half,20,10,secondary);
- write(L"增强额外延迟 · 估计",12+half,36,half,20,10,secondary);
- write(fps(xess?f.xessSdkSubmitFps:f.presentSubmitFps),12,57,half,28,18,textColor);
const auto& extra=f.cpuTiming[size_t(diagnostics::CpuStage::EnhancementDelayEstimate)];
- write(playing?ms(extra.mean):L"未测",12+half,57,half,28,18,textColor);
std::vector<std::pair<std::wstring,std::wstring>> rows;
+ rows.emplace_back(L"实际呈现",fps(xess?f.xessSdkSubmitFps:f.presentSubmitFps));
+ rows.emplace_back(L"增强额外延迟估计",playing?ms(extra.mean):L"未测");
rows.emplace_back(L"估计口径",s.capture?L"扣除基础显示开销":L"正常播放时序的额外落后");
rows.emplace_back(L"测量范围",L"稳态估计 · 不含屏幕扫描");
rows.emplace_back(L"请求目标(非实测)",s.nominalSourceFps>0?std::format(L"{:.1f} fps",s.nominalSourceFps*(s.captureHalfRate?.5:1)*s.applied.multiplier):L"未确定");
@@ -153,23 +149,23 @@ inline LRESULT CALLBACK proc(HWND h,UINT message,WPARAM wp,LPARAM lp){
return lines;
};
for(const auto& row:rows){
- const auto labels=split(row.first,width/2-14),values=split(row.second,width/2-12);
+ const auto labels=split(row.first,width/2-24),values=split(row.second,width/2-24);
for(size_t line=0;line<std::max(labels.size(),values.size());++line)wrapped.emplace_back(line<labels.size()?labels[line]:L"",line<values.size()?values[line]:L"");
}
SelectObject(paint.dc,oldFont);DeleteObject(rowFont);rows=std::move(wrapped);
- const int top=96,rowHeight=25,available=std::max(0,height-top-30)/rowHeight*rowHeight;
+ const int top=136,rowHeight=25,available=std::max(0,std::max(92,height-188)-40)/rowHeight*rowHeight;
state->maxScroll=std::max(0,int(rows.size())*rowHeight-available);state->scroll=std::clamp(state->scroll/rowHeight*rowHeight,0,state->maxScroll);
const int saved=SaveDC(paint.dc);IntersectClipRect(paint.dc,0,dip(h,top),paint.rect.right,dip(h,top+available));
for(size_t i=0;i<rows.size();++i){const int y=top+int(i)*rowHeight-state->scroll;
// glassText renders through its own DIB; a parent DC clip does not
// constrain that buffer. Never draw partial rows into fixed text.
if(y<top||y+rowHeight>top+available)continue;
- write(rows[i].first,12,y,width/2-14,rowHeight,11,secondary);
- write(rows[i].second,width/2,y,width/2-12,rowHeight,11,textColor);
+ write(rows[i].first,20,y,width/2-24,rowHeight,11,secondary);
+ write(rows[i].second,width/2,y,width/2-24,rowHeight,11,textColor);
}
RestoreDC(paint.dc,saved);
- if(state->maxScroll&&available>0){const int thumb=std::max(18,available*available/(int(rows.size())*rowHeight));const int y=top+(available-thumb)*state->scroll/state->maxScroll;RECT r{dip(h,width-4),dip(h,y),dip(h,width-2),dip(h,y+thumb)};FillRect(paint.dc,&r,panelBrush());}
- write(xess?L"估计截止SDK提交;内部显示排队未测":L"相对直接播放的估计;启动等待另计",12,height-28,width-24,24,9,secondary);
+ if(state->maxScroll&&available>0){const int thumb=std::max(18,available*available/(int(rows.size())*rowHeight));const int y=top+(available-thumb)*state->scroll/state->maxScroll;RECT r{dip(h,width-16),dip(h,y),dip(h,width-14),dip(h,y+thumb)};FillRect(paint.dc,&r,panelBrush());}
+
return 0;
}
case WM_NCDESTROY:KillTimer(h,1);delete state;SetWindowLongPtrW(h,GWLP_USERDATA,0);break;
diff --git a/docs/LIVE_STATUS_DASHBOARD_2026-09-12.md b/docs/LIVE_STATUS_DASHBOARD_2026-09-12.md
index b5ae4706..6b3130ff 100644
--- a/docs/LIVE_STATUS_DASHBOARD_2026-09-12.md
+++ b/docs/LIVE_STATUS_DASHBOARD_2026-09-12.md
@@ -8,3 +8,9 @@ FrameFlowMetrics.pendingOutputFrames 接实际呈现作业中尚未消费的有
构建logs/dashboard-final-build.log通过;中途scope guard初始化/文本替换两次编译错误修复,保留dashboard-build.log和dashboard-build2.log。UI脚本logs/dashboard-ui.log通过(模式切换/全屏/详情),overview截图实际查看布局完整。修复待机applying残留显示后最终构建通过。repair_contract 88checks0failures,logs/dashboard-contract.log。
用户4K视频原生NR+2X实际12秒smoke退出0,294原帧、292生成、failed=false。logs/dashboard-4k.log,稳态pendingFrames=1,额外延迟估计约0.4–0.5ms,absLatenessP95=0.81ms。仅本地RTX运行验证,未做PS5/采集卡实测和人为故障红灯注入。没有发布、push或二进制入Git;桌面PS5测试版仍指向已更新EXE。
+
+### 曲线卡片内切换精细面板
+
+用户指定只在曲线卡片区域切换。右上小三角切换精细数据/曲线;顶部四卡、底部队列与状态固定。精细列表按卡片高度裁切完整行,滚轮仅在卡片内容区生效;返回曲线保留历史。旧全局标题点击切换已取消。
+
+构建 logs/dashboard-inset-final-build.log 通过,UI脚本按DPI点击新位置、依次抓取overview/advanced/returned,logs/dashboard-inset-final-ui.log通过;实际查看advanced截图,顶部/底部固定且文字未溢出卡片。首次链接被运行中EXE占用,正常关闭后重建;测试脚本首轮坐标变量遗漏,补齐后重跑,上述最终结果为有效证据。未修改播放链路,不重复GPU性能测试;未发布。
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 6e239cf4..ea6390a2 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -1702,3 +1702,9 @@ FrameFlowMetrics.pendingOutputFrames 接实际呈现作业中尚未消费的有
构建logs/dashboard-final-build.log通过;中途scope guard初始化/文本替换两次编译错误修复,保留dashboard-build.log和dashboard-build2.log。UI脚本logs/dashboard-ui.log通过(模式切换/全屏/详情),overview截图实际查看布局完整。修复待机applying残留显示后最终构建通过。repair_contract 88checks0failures,logs/dashboard-contract.log。
用户4K视频原生NR+2X实际12秒smoke退出0,294原帧、292生成、failed=false。logs/dashboard-4k.log,稳态pendingFrames=1,额外延迟估计约0.4–0.5ms,absLatenessP95=0.81ms。仅本地RTX运行验证,未做PS5/采集卡实测和人为故障红灯注入。没有发布、push或二进制入Git;桌面PS5测试版仍指向已更新EXE。
+
+### 曲线卡片内切换精细面板
+
+用户指定只在曲线卡片区域切换。右上小三角切换精细数据/曲线;顶部四卡、底部队列与状态固定。精细列表按卡片高度裁切完整行,滚轮仅在卡片内容区生效;返回曲线保留历史。旧全局标题点击切换已取消。
+
+构建 logs/dashboard-inset-final-build.log 通过,UI脚本按DPI点击新位置、依次抓取overview/advanced/returned,logs/dashboard-inset-final-ui.log通过;实际查看advanced截图,顶部/底部固定且文字未溢出卡片。首次链接被运行中EXE占用,正常关闭后重建;测试脚本首轮坐标变量遗漏,补齐后重跑,上述最终结果为有效证据。未修改播放链路,不重复GPU性能测试;未发布。
diff --git a/scripts/remoteplay/test-ui.ps1 b/scripts/remoteplay/test-ui.ps1
index 8693d393..776a0e07 100644
--- a/scripts/remoteplay/test-ui.ps1
+++ b/scripts/remoteplay/test-ui.ps1
@@ -7,6 +7,7 @@ Add-Type -AssemblyName System.Drawing
Add-Type @'
using System;using System.Text;using System.Runtime.InteropServices;
public static class RpUi {
+ [DllImport("user32.dll")] public static extern uint GetDpiForWindow(IntPtr h);
public delegate bool EnumProc(IntPtr h,IntPtr p);
[DllImport("user32.dll")] public static extern bool EnumWindows(EnumProc cb,IntPtr p);
[DllImport("user32.dll")] public static extern bool EnumChildWindows(IntPtr h,EnumProc cb,IntPtr p);
@@ -88,8 +89,9 @@ try {
[RpUi]::ShowWindow($main,4)|Out-Null
[RpUi]::SetWindowPos($main,[IntPtr](-1),0,0,0,0,0x13)|Out-Null
Start-Sleep -Milliseconds 250
- foreach($view in @('overview','advanced')){
- if($view -eq 'advanced'){[RpUi]::PostMessage($live,0x202,[IntPtr]::Zero,[IntPtr](12*65536+20))|Out-Null;Start-Sleep -Milliseconds 100}
+ $liveRect=New-Object RpUi+Rect;[RpUi]::GetWindowRect($live,[ref]$liveRect)|Out-Null
+ foreach($view in @('overview','advanced','returned')){
+ if($view -ne 'overview'){[RpUi]::PostMessage($live,0x202,[IntPtr]::Zero,[IntPtr](([int](120*[RpUi]::GetDpiForWindow($live)/96))*65536+($liveRect.right-$liveRect.left-[int](25*[RpUi]::GetDpiForWindow($live)/96))))|Out-Null;Start-Sleep -Milliseconds 100}
$rect=New-Object RpUi+Rect;[RpUi]::GetWindowRect($live,[ref]$rect)|Out-Null
$bitmap=New-Object Drawing.Bitmap(($rect.right-$rect.left),($rect.bottom-$rect.top))
$graphics=[Drawing.Graphics]::FromImage($bitmap);$dc=$graphics.GetHdc()