Live preview: pause while the Summary tab isn't the one showing

未关闭
#62 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
electron, react, typescript

调研方向

Start with the Summary tab's 2-second live preview refresh and the IPC call that returns the base64 PNG from the main process, and follow how QEMU's screenshot is captured. Check whether the installed QEMU supports a smaller screenshot format, or whether the image should be downscaled before sending. Done means the payload shrinks, or the refresh is skipped when a hash of the PNG bytes is unchanged, so an idle desktop doesn't re-render.

由索引模型根据 Issue 内容生成。

描述

performance ui

The live preview (#56) refreshes every 2 s while the app is focused. It only runs while the Summary tab is mounted, which is good, but QEMU still encodes a full-size PNG (a 1920x1080 guest is 1-3 MB) every 2 s, and it's base64'd and sent over IPC.

Two cheap improvements:

  • ask QEMU for a smaller image if the QEMU version supports it, or downscale in the main process before sending
  • skip the refresh when the screen hasn't changed (compare a hash of the bytes), so React doesn't swap the image every 2 s for an idle desktop
主要语言
TypeScript
星标
3
派生
0
平均合并
2 分钟
30 天内合并 PR
35

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

A21-devs/Virtual-Machine-Manager 的其他 Issue

查看 A21-devs/Virtual-Machine-Manager 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。