You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: merge upstream gpui from zed@cd585371e8 - #79
sync gpui with zed@cd585371e8: upstream retained layout and keyed measurements, deferred content masks during prepaint, cross-platform frame and input latency telemetry, bounds tree tests, removal of vendor-specific directx driver queries, and resvg/usvg 0.49 with svgz
replace the fork's custom retained layout implementation with upstream's node cache and keyed text measurement while keeping unsnapped subtrees, cached-view stand-in roots, and text shadows intact
keep deferred line-wrapper pooling when truncated text fits without clipping
keep the fork's depth gate, filter layers, backdrop blur, custom shaders, bounds-tree order replay, and wayland draw-ahead frame scheduling intact
This PR syncs the GPUI subset with upstream Zed. It replaces the retained layout cache with keyed measurements, updates resvg/usvg to 0.49, and changes Windows presentability checks and DirectX driver-version lookup.
The pull request changes layout caching and text measurement, bounds-tree representation, frame timing and profiling, and Windows window-presentability handling. It also expands randomized layout tests and benchmarks, updates SVG dependencies, and changes app entity borrowing and empty-tree editing behavior.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 7
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Release list state when removing a subtree. · randomized_element_tree.rs:995-1001
crates/gpui/src/randomized_element_tree.rs:995-1001 Minor · Stability & Availability · Quick win
Release list state when removing a subtree.
The removal loop deletes ordinary scroll handles but leaves list_states and uniform_list_scroll_handles intact. If a long-running workload removes rendered lists and inserts replacements, the old entries remain until the whole tree drops. Replacement nodes get new IDs, so a fixed-size tree can accumulate state indefinitely. Remove both entries in the existing subtree walk.
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Compare the mutation streams before comparing frames.
The two windows start from the same config, but a frame can match even if a mutation changes state that is not visible yet. Compare the initial snapshots and the mutation results and snapshots after each step. A failure would then identify generator drift separately from a layout-cache failure.
Based on learnings, verify that separate instances initialized with the same seed produce the same sequence. The existing config-sampling test does not check the tree mutation sequence.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linuxchanges the Linux backendrenderingchanges the scene, shaders or a renderertextchanges text shaping, layout or rasterisingwindowschanges the Windows backend
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary