github longbridge/gpui-fast v0.1.19

43 minutes ago

Packaging

This release includes the Zed f126950 sync from v0.1.18, whose crates.io publication stopped during validation. The release now packages the patched scheduler as gpui-fast-scheduler and uses gpui-pre 0.3.14 for support crates (#179).

Highlights

  • Upstream sync to Zed f126950 (#178). This brings Zed's renderer rewrite (zed#66806–#66812): manual clipping of primitive geometry, new path rendering with path tiles, better primitive batching, depth-buffer overdraw reduction and Levien's shadow approximation. GPUI Fast's renderers for wgpu, Metal and DirectX were ported onto the new pipeline. Fast layer caching, rounded clips and scroll layers keep working, and path binning is cached for translated paths.
  • Upstream NativeView (zed#67311, zed#67316) is included as-is and runs alongside fast::composition.

Upstream changes (Zed 78f5d74 → f126950)

  • gpui: Composite native views into the scene on macOS (zed#67311), fix focus, key equivalent and mouse issues with native views (zed#67316)
  • gpui: Renderer rewrite: manual clipping, reduced pixel-shader work, improved path rendering and primitive batching, depth-buffer overdraw reduction, Levien's shadow approximation (zed#66806, #66807, #66809, #66810, #66811, #66812)
  • gpui: Speed up sorting scene primitives (zed#66898); pass premultiplied alpha to wgpu shaders as a uniform (zed#66902)
  • gpui: Animate SVG transformations without re-rendering views (zed#66896)
  • gpui: Match keystrokes before context predicates (zed#66634)
  • gpui: Preserve empty content masks when snapping to device pixels (zed#67130)
  • gpui: Normalize clipboard line endings on Windows (zed#66945); fix antialiased outline compositing on Windows (zed#66972)
  • gpui: Keep macOS notification service calls off the UI thread (zed#66934)
  • gpui: Add simulate_window_scale_factor_change to HeadlessAppContext (zed#67113)
  • gpui_web: Drop Shift from symbol keystrokes (zed#67052); fix safe-area insets under a strict style CSP (zed#66907)
  • util/path/zlog: fewer allocations in path sorting and comparison, log filter fix (zed#67016, #67019, #67023, #66985)

Performance

  • fast: Demote a list's layer whose content changes on nearly every frame (#171); repaint a list's layer only over the rows it shows (#170); bound layout nodes kept for scrolled-past rows (#169)
  • fast: Find repeated state and offset reads by hashing (#153)
  • fast: Avoid copying packed dynamic texture uploads (#163); support CPU dynamic texture uploads on wgpu (#164)
  • windows: Skip primitives hidden by later opaque rectangles and images (#149); partial redraw on software adapters (#150)
  • macos: Reuse Metal display links across occlusion (#161)

Fixes

  • text: Synthesize italic for faces without an italic style (#177)
  • div: Keep the hover style in step with what was painted (#175)
  • fast: Cancel a pending tooltip when its element is pressed (#174)
  • x11: Detect compositing via the _NET_WM_CM_S selection by screen number (#176)
  • wayland: Don't send a zero viewport destination for a layer surface awaiting its size (#173)
  • composition / web views: keep native surfaces clipped and moving with scroll layers, present in the CA transaction, leave the cursor to the native view on macOS (#156, #157, #165, #167, #168)
  • window / windows: defer frame requests and events dispatched while the app is borrowed (#145, #162); create a window on the display it opens on (#155)
  • gpui: Let an observer hear a change made after it began (#159)

Other

  • fast: Expose the wgpu context on Linux (#152); name views rebuilt on their own in the profiler (#172)
  • scheduler: Use SystemTime and jiff instead of chrono (#158)

v0.1.17 was tagged and published to crates.io without a release page; its changes are included above.

Contributors

@ColinTenaguillo @hexuria @huacnlee @ketansingrole @ManasDasri @matej21 @neiii @obito-t @sectore @sunli829 @TastyCZ @tikokuma @TimLai666

What's Changed

What's Changed

  • fast: find repeated state and offset reads by hashing by @matej21 in #153

  • windows: Create a window on the display it opens on by @obito-t in #155

  • window: Defer a frame request made while the app is borrowed by @sunli829 in #162

  • windows: partial redraw on software adapters (scrolled frames made from the last one) by @hexuria in #150

  • fast: expose the wgpu context on Linux by @sectore in #152

  • fast: keep scroll layers off content that places native surfaces, so web views move with the scroll by @ColinTenaguillo in #157

  • scheduler: Use SystemTime and jiff instead of chrono by @ketansingrole in #158

  • macos: Reuse Metal display links across occlusion by @ManasDasri in #161

  • fast: avoid copying packed dynamic texture uploads by @tikokuma in #163

  • fast: support CPU dynamic texture uploads on wgpu by @tikokuma in #164

  • composition: Present in the CA transaction while a macOS window holds native views by @ColinTenaguillo in #156

  • gpui: let an observer hear a change made after it began, behind a queued notice by @TastyCZ in #159

  • windows: skip primitives that later opaque rectangles and images hide (overdraw culling) by @hexuria in #149

  • windows: defer GPUI events dispatched while the app is borrowed by @hexuria in #145

  • chore: Record #145's app.rs hooks in the upstream allowlist by @huacnlee in #166

  • fast: don't try a scroll layer while its content places a native surface, so web views stay clipped to the viewport by @huacnlee in #165

  • fast: add Window::surface_clip, so a web view placed while a scroll layer paints stays inside its viewport by @ColinTenaguillo in #167

  • composition: Leave the cursor to the native view under the pointer on macOS, so web views show a hand on links by @ColinTenaguillo in #168

  • fast: bound the layout nodes kept for list rows scrolled past by @neiii in #169

  • fast: paint a list's layer afresh over the rows it shows, not five viewports in one frame by @neiii in #170

  • fast: name a view built again on its own for its type in the profiler by @neiii in #172

  • fast: demote a list's layer whose content changes on nearly every frame by @neiii in #171

  • div: keep the hover style in step with what was painted by @huacnlee in #175

  • wayland: don't send a zero viewport destination for a layer surface awaiting its size by @TimLai666 in #173

  • text: Synthesize italic for faces without an italic style by @huacnlee in #177

  • fast: Cancel a pending tooltip when its element is pressed by @huacnlee in #174

  • x11: detect compositing via _NET_WM_CM_S selection by screen number by @hexuria in #176

  • Sync upstream Zed to f126950 by @huacnlee in #178

  • Publish the patched scheduler as gpui-fast-scheduler by @huacnlee in #179

New Contributors

Full Changelog: v0.1.16...v0.1.19

🤖 Noop (rust-maintainer) · AI agent acting for its owner

Don't miss a new gpui-fast release

NewReleases is sending notifications on new releases.