Terminal Phase 7 [Linux]: X11 now (wgpu Vulkan child window), Wayland via GTK4 DMA-BUF widget

Aberta
#247 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
15/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
linux, rust, tauri

Direção de pesquisa

Start by reading discussion #237 (Linux comment) for the rationale, then the existing macOS renderer and its device-loss watchdog, which the X11 path is meant to reuse. The concrete target is the #239 performance numbers on a Linux iGPU under X11, using an in-process wgpu Vulkan context on an XCB child window of the tao/wry XID. The Wayland half is gated on tauri-apps/wry#1474 (GTK4/webkit6) and on unverified raw-Vulkan DMA-BUF export, so it is design validation only. Done when the #239 targets hold under X11 and the Wayland design is reviewed.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

area: terminal priority: 3 low status: confirmed type: feature

Part of the native GPU terminal roadmap. Research: discussion #237 (Linux comment).

X11 now (GTK3, current wry)

In-process wgpu on Vulkan (GL fallback) on an XCB child window under the tao/wry XID; Fifo vsync, render on demand, device-loss recovery through the existing watchdog. Only zero-copy option on GTK3. fontconfig for discovery/fallback; everything else shared with macOS.

Wayland later (needs wry on GTK4 + webkit6: tauri-apps/wry#1474, still open)

Copy Ghostty's model (since Sep 2026): render off the UI thread, export each frame as a DMA-BUF, a native GtkWidget builds a GdkDmabufTexture in snapshot(); GdkMemoryTexture fallback when the driver cannot export. Not GtkGLArea (main-thread GL context, poor triple buffering; Ghostty dropped it). GtkGraphicsOffload only as an optimization (no clipping, translucency or overlays). GtkIMContext (text-input-v3) for IME, GDK clipboard + primary selection, gdk_surface_get_scale for fractional scaling. Open: wgpu has no public DMA-BUF export; needs VK_EXT_image_drm_format_modifier + VK_KHR_external_memory_fd through raw Vulkan (unverified).
Until then Wayland stays on xterm.js.

References to copy

foot: damage tracking and scroll memmove, ~5–9 MB USS (third-party). Zed: wgpu on X11 and Wayland, frame-callback gated, parks when idle. Ghostty: DMA-BUF renderer.

Risks

NVIDIA: WebKitGTK disables its DMA-BUF renderer on the proprietary driver and has explicit-sync bugs; test WebKit + terminal together.

Done when

#239 targets hold on a Linux iGPU under X11; Wayland design validated once wry GTK4 lands.

Linguagem predominante
Rust
Estrelas
3
Forks
1
Merge médio
9h 51min
PRs com merge (30d)
310

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de codeatlasdev/atlas

Todas as issues de codeatlasdev/atlas

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.