Skip to content

Windows 桌面缩放、预览传输、深度推理与大场景导出优化 - #194

Draft
REDrighthand05 wants to merge 2 commits into
product/echo-scenefrom
perf/windows-resize-preview-depth
Draft

REDrighthand05 wants to merge 2 commits into
product/echo-scenefrom
perf/windows-resize-preview-depth

Conversation

@REDrighthand05

@REDrighthand05 REDrighthand05 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

关联 #74 的桌面预览使用体验。窗口调整时复用纹理和帧缓冲,保留实时粒子位置和速度,多个 resize 事件按显示帧合并;状态轮询只传未收到的新预览,隐藏时不传图片。保留无参数 poll 和原有 get_preview_frame。固定 batch=1 的 ONNX 模型直接走单帧;批调用退回单帧时复用已经预处理的张量。流式深度阶段报告会话 provider 顺序和输入批维度;这不是逐节点 GPU 利用率。

本地通过 tests/test_web_bridge.py、tests/test_depth_dispatch.py、node --check web_ui/app.js。Windows 回归任务运行实际页面的 Edge WebGL 窗口尺寸变换、桥接测试和推理调度测试。Edge 测试使用软件 WebGL,无法代替实体显卡或安装版原生窗口体验。没有重建质量、显卡耗时或 CUDA 吞吐提升结论。

最终提交 bee4a50 另将场景导出改成分块写入、完成后原子替换。24 MiB + 1 字节点云样本,本地 tracemalloc 峰值 192.08 → 2.82 MiB,新旧完整 HTML 的 SHA-256 一致。带两个可选网格缓冲、跨块边界、导出失败保留旧文件均有回归覆盖。

Windows 测试记录:真实 pywebview/WebView2 原生窗口使用产品的最大化、还原和最小化处理函数,核对 Win32 窗口状态;最大化/还原 10 轮后再最小化并恢复,文档身份不变。另以 Edge 测试 WebGL 资源复用与尺寸通知合并。托管环境不度量消费级显卡帧时间、安装包手感或整段重建性能。

@REDrighthand05 REDrighthand05 changed the title 桌面缩放复用 WebGL 资源,减少预览传图和深度推理重复工作 Windows 桌面缩放、预览传输、深度推理与大场景导出优化 Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant