Terminal engine: release GPU resources of hidden terminals

Abierto
#254 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Rust
Estrellas
3
Forks
1
Merge medio
9 h 51 min
PR fusionados (30 d)
310

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codeatlasdev/atlas

Todos los issues de codeatlasdev/atlas

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.