Terminal engine: release GPU resources of hidden terminals

Aperta
#254 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start in term/render_loop.rs at the branch that stops drawing hidden terminals, and trace who owns the surface, instance buffers and glyph atlas for a parked terminal. Then find the watchdog rebuild path that already recreates a Renderer, since showing a terminal must hook into it without a visible flash. Read discussion #237 and run the #239 measurement harness to get a baseline with 20 terminals (1 visible) before changing anything; done means before/after GPU and RSS numbers plus a flicker sweep on show across macOS, Windows and Linux.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: terminal priority: 1 high status: confirmed type: feature

Research: discussion #237 (Linux/engine comment). Applies to macOS, Windows and Linux (shared atlas-term). Measure with the #239 harness before and after.

Problem (read in code)

term/render_loop.rs already stops drawing hidden terminals, but each terminal keeps its own surface, buffers and glyph atlas while parked.

Change

Drop surface, instance buffers and atlas when a terminal is hidden for a while; rebuild on show (the watchdog rebuild path already recreates a Renderer).

Evidence

Ghostty 1.4: 1 visible + 20 hidden tabs, GPU memory ~385 → ~18 MiB, rebuild under 1 ms [vendor, macOS].

Done when

GPU/RSS with 20 agent terminals (1 visible) measured on #239 before and after; no visible flash on show (flicker sweep).

Lingua principale
Rust
Stelle
3
Fork
1
Merge medio
9h 51m
PR unite (30g)
310

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codeatlasdev/atlas

Tutte le issue di codeatlasdev/atlas

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.