Repository navigation
Windows 桌面缩放、预览传输、深度推理与大场景导出优化 - #194
Draft
REDrighthand05 wants to merge 2 commits into
Draft
REDrighthand05 wants to merge 2 commits into
REDrighthand05 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 #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 资源复用与尺寸通知合并。托管环境不度量消费级显卡帧时间、安装包手感或整段重建性能。