Terminal engine: release GPU resources of hidden terminals

Đang mở
#254 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust

Hướng nghiên cứu

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.

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

Mô tả

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

Ngôn ngữ chính
Rust
Star
3
Fork
1
Merge trung bình
9 giờ 51 phút
Pull request đã merge (30 ngày)
310

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 codeatlasdev/atlas

Tất cả issue của codeatlasdev/atlas

Issue tương tự

Thêm issue về Rust

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.