Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Zed 5 min read Case study mediumAdept

Zed for Windows: What's Taking So Long?!

Porting the Zed editor to Windows required a new DirectX 11 rendering backend with HLSL shaders, replacing Vulkan so it runs on nearly all Windows machines including VMs and uses less memory. Switching glyph rasterization from Direct2D to DirectWrite made RenderDoc debugging possible and fixed glyph clipping bugs. High VRAM usage from path MSAA was solved by drawing all paths into a single render-target-sized MSAA texture, which also improved rendering on every platform; whole-scene MSAA was rejected because it hurt Intel GPUs. Windows-specific auto-update via a helper binary and server-side minidump symbolication round out the work, with key bindings, SSH, WSL and WASM extension path handling still pending.

Assumes: GPU rendering pipeline basicsantialiasing concepts

Related posts

  • Linux when?

    Zed mediumAdept

    Zed's Linux port works by implementing GPUI's platform-agnostic `Platform` and `PlatformWindow` traits for Linux. Three months after open-sourcing, Zed compiles and runs usably on Linux. The hard parts were the fragmentation of the Linux desktop (distributions, packaging, X11 vs Wayland, desktop environments, audio servers) and replacing the Metal renderer. Community contributor kvark solved rendering with Blade, a Vulkan-based GPU abstraction, and other contributors added Wayland support, file dialogs and input fixes behind a shared `LinuxClient` trait.

  • Leveraging Rust and the GPU to render user interfaces at 120 FPS

    Zed hardMaster

    Zed's GPUI framework hits 120 FPS by rendering the editor UI like a video game: rather than a general-purpose 2D vector renderer (Pathfinder proved too slow), it uses dedicated GPU shaders for a small set of primitives such as rectangles, shadows, text, icons and images, all described as data on the CPU and drawn with instanced rendering. Rounded rectangles come from a signed distance function evaluated in a Metal fragment shader. Drop shadows follow Evan Wallace's approximation, which pairs a closed-form erf-based Gaussian convolution on one axis with a few samples along the other. Text uses OS shaping via CoreText, with a per-frame cache of text-font pairs so only changed text gets reshaped.

  • Figma rendering: Powered by WebGPU

    Figma mediumAdept

    Figma migrated its C++ renderer from WebGL to WebGPU while keeping WebGL as a fallback, first refactoring its graphics interface to pass draw-call state explicitly and to batch uniform uploads into a single buffer per submit to avoid performance regressions. Legacy WebGL 1 GLSL shaders are kept and automatically translated to WGSL via a custom shader processor plus naga, and Dawn is used for both the Emscripten/Wasm build and native server-side builds. Because WebGPU only supports asynchronous readback and can fail mid-session on Windows, Figma built a dynamic fallback that swaps backends to WebGL at runtime and blocklists devices by fallback rate. Benchmarks across Windows, Mac and ChromeOS showed gains on some device classes and neutral results elsewhere with no regressions, and compute shaders, MSAA and RenderBundles are next.

  • Progress Report: Linux 6.16

    Asahi Linux mediumAdept

    Asahi Linux's graphics stack is now fully upstream: DRM Native Context GPU paravirtualisation has been merged into virglrenderer and ships with Mesa 25.2, so the Mesa fork and the Flatpak runtime extension are being retired. Mesa 25.2 also adds VK_EXT_map_memory_placed, which lets AArch64 WINE use WoW64 with FEX to run 32-bit x86 Windows games directly without the muvm 4K-page micro VM. That removes the paravirtualised GPU, network and filesystem layers, the X11 and PipeWire proxying, and the XWayland requirement. Games that hard-code 4K pages still need muvm. Kernel upstreaming has pushed the downstream patch count below 1000, with SPMI, SMC, audio and GPU devicetree work landing in 6.16 and 6.17.

  • Zed Weekly: #22

    Zed easyNovice

    Zed team members report weekly progress: GPUI is being rewritten with a ported Metal renderer that uses plane-split for primitive draw ordering, multi-threaded entity access, and a MainThread<T: Context> wrapper so native UI APIs are only called from the main thread. Channels are being reworked to separate chat-style communication from DAG-structured project notes, with unread indicators, notifications, public channels and deep links on the way. Julia split markdown parsing from rendering for completion documentation, avoiding flicker when grammars load late and speeding up rendering. Other work covers Vue LSP and tree-sitter support, CPU and memory telemetry, and a fix for a follow-loop bug in collaboration.

The quest for software engineering knowledge.

Look:
Layout: