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_changetoHeadlessAppContext(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_Sselection 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.
@ColinTenaguillo @hexuria @huacnlee @ketansingrole @ManasDasri @matej21 @neiii @obito-t @sectore @sunli829 @TastyCZ @tikokuma @TimLai666
Full Changelog: v0.1.16...v0.1.18
Contributors
What's Changed
What's Changed
New Contributors