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

Đang mở
#62 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, react, typescript
Lĩnh vực
desktop, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của A21-devs/Virtual-Machine-Manager

Tất cả issue của A21-devs/Virtual-Machine-Manager

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.