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

Offen
#62 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
electron, react, typescript
Bereich
desktop, performance

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
0
Ø Merge
2 Min.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus A21-devs/Virtual-Machine-Manager

Alle Issues in A21-devs/Virtual-Machine-Manager

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.