Repository navigation
Use vger with cached text layout - #88
Merged
Merged
Conversation
Points vger at the text-layout-cache-0.3 branch of audulus/vger-rs: vger 0.3.0 plus audulus/vger-rs#29, which caches text layout between frames and hashes vger's caches with a fast hasher. On the gui-bench dashboard with 3,000 order rows, a hover goes from 31 ms to 20 ms. A git dependency can't be published to crates.io, so this should go back to a version once vger releases the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wtholliday
added a commit
to audulus/gui-bench
that referenced
this pull request
Nov 26, 2026
rui's vger-text-cache branch (audulus/rui#88) is main after audulus/rui#85-#87, which skip unchanged parts of the UI, on a vger that caches text layouts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
vgernow comes from thetext-layout-cache-0.3branch of audulus/vger-rs instead of crates.io 0.3.0. That branch is vger 0.3.0 plus the two commits of audulus/vger-rs#29:It stays on wgpu 0.20, so nothing else in rui changes.
Why
Once #85, #86 and #87 cut
updateto about 1% of a hover, fontdue's text layout was the largest remaining cost. vger laid out every visible label on every frame.Median hover on the gui-bench dashboard, over 200 moves in an offscreen harness on macOS:
Testing
cargo test --workspace: 135 tests and 4 doctests pass. The screenshot tests draw no text, so they don't cover this change.9b758ad).text_layout,text_editor,galleryandfont_sizebriefly and none panicked.For reviewers
Cargo.lockis gitignored, sobranch = ...resolves to the branch's latest commit whenever a lockfile is created. Userev = "9b758ad"instead if you want it fixed.🤖 Generated with Claude Code