github longbridge/gpui-fast v0.1.20

5 hours ago

Highlights

  • Upstream sync to Zed a36d485 (#199). Brings 25 Zed commits that touch GPUI, including upstream's retained layout nodes (zed#67222, zed#67223), CADisplayLink on macOS (zed#67486), the wgpu GL texture fallback (zed#67323) and resvg/usvg 0.49. GPUI Fast keeps its own retained layout (fast::layout); upstream's new entry points such as Window::request_keyed_measured_layout are served by it. Headless gpui_perf across 65 scenarios: median -1.53% instructions per frame, no scenario worse than +0.30%.
  • Toolchain: Rust 1.100.0, following Zed.
  • Packaging: support crates now use gpui-pre 0.3.15 (#202); wgpu is published as a caret requirement like gpui-pre, so both cores can share one lockfile (#183).

Upstream changes (Zed f126950 → a36d485)

  • gpui: Keep layout nodes between frames (zed#67222); keep measured layouts while their inputs are unchanged, adding Window::request_keyed_measured_layout (zed#67223)
  • gpui: Apply deferred content masks during prepaint (zed#67390)
  • gpui: Remove .unwrap() on every GPUI entity borrow (zed#67361)
  • gpui: Schedule chained animations by their own frame cap (zed#67371); fix a panic when an animation chain gets shorter (zed#67377)
  • gpui: Make frame and input latency telemetry consistent across platforms (zed#67387)
  • gpui: Fix hashing of signed zero in Pixels, RenderGlyphParams and DocumentColor (zed#67346)
  • gpui: Bump resvg and usvg to 0.49 to fix an SVG filter crash (zed#67423)
  • gpui: Expose the desktop font scaling factor on Linux (zed#66828)
  • gpui: Add BoundsTree test suite (zed#67443); fix unit tests building without test-support (zed#67376)
  • gpui_macos: Replace CAMetalDisplayLink with CADisplayLink (zed#67486)
  • gpui_wgpu: Fall back to textures on GL without shader storage (zed#67323); remove vendor-specific driver version queries (zed#67404)
  • gpui_windows: Avoid synchronous system font refresh on startup (zed#66001)
  • gpui_linux: Fix X11 file drop position with display scaling (zed#66866)
  • gpui_web: Fix keyboard occlusion and refocus on iOS (zed#67259)
  • sum_tree: Insert keyed items in place (zed#67332); build an empty tree in one pass when an edit fills it (zed#67374)
  • path: Find the first differing byte in RelPath::cmp with XOR (zed#67122)
  • Re-render spinner labels only as often as their glyph changes (zed#67261); skip the window-wide refresh after markdown parsing once painted (zed#67255)
  • Adopt trim_{prefix,suffix} (zed#67367); remove deprecated package.authors from manifests (zed#67435)

How GPUI Fast merged the overlapping pieces: fast::display_link_lifecycle is removed in favor of upstream's CADisplayLink start/stop, and fast/native_gl.rs in favor of upstream's GL fallback (upstream only lowers limits for GL adapters without vertex/fragment storage). Details are in #199.

Performance

  • fast: Reuse the scene for dynamic texture refreshes (#181)
  • fast: Lay a rebuilt view out again only when a measurement actually changed (part of #199)

Fixes

  • fast: Keep fonts with unreadable traits and stop panicking when no font resolves (#200)
  • fast: Keep a view built again on its own on the surface it was drawn on (#180)
  • fast: Click an accessibility node only where it is visible and hit (#189); roll back a11y nodes when a prepaint transaction fails (#184)
  • fast: Make a focus handle tracked twice one tab stop (#188)
  • fast: Clear hover and group_hover styles when the pointer leaves the window (#191)
  • fast: Include 'G' in number shaping compact units (#192)
  • fast: Use the browser's preferred canvas format for the web surface (#185)
  • macos: Don't dispatch the Enter that ends a dead-key composition (#187)
  • windows: Skip destroyed windows in the VSync redraw loop (#186); draw the first frame after an idle wake without waiting for VSync (#190); skip window teardown calls after WM_DESTROY (#198)
Contributors

@huacnlee @luan @obito-t @tikokuma @wangdiandao

What's Changed

What's Changed

  • fast: keep a view built again on its own on the surface it was drawn on by @luan in #180
  • fast: reuse the scene for dynamic texture refreshes by @tikokuma in #181
  • fast: Use the browser's preferred canvas format for the web surface by @huacnlee in #185
  • release: Publish wgpu as a caret requirement, like gpui-pre by @huacnlee in #183
  • fast: Click an accessibility node only where it is visible and hit by @huacnlee in #189
  • fast: Make a focus handle tracked twice one tab stop by @huacnlee in #188
  • fast: Clear hover and group_hover styles when the pointer leaves the window by @huacnlee in #191
  • windows: Skip destroyed windows in the VSync redraw loop by @huacnlee in #186
  • windows: Draw the first frame after an idle wake without waiting for VSync by @huacnlee in #190
  • macos: Don't dispatch the Enter that ends a dead-key composition by @huacnlee in #187
  • fast: Include 'G' in number shaping compact units by @wangdiandao in #192
  • gpui: Roll back a11y nodes when a prepaint transaction fails by @huacnlee in #184
  • windows: Skip window teardown calls after WM_DESTROY by @huacnlee in #198
  • fast: Keep fonts with unreadable traits and stop panicking when no font resolves by @obito-t in #200
  • chore: Sync GPUI upstream a36d485 by @huacnlee in #199
  • release: Align support snapshots with gpui-pre 0.3.15 by @huacnlee in #202

New Contributors

Full Changelog: v0.1.19...v0.1.20

Don't miss a new gpui-fast release

NewReleases is sending notifications on new releases.