Repository navigation
fix(paint): allow paint keep to copy unchanged LiveText nodes across frames - #2094
Merged
Merged
Conversation
This was referenced Nov 25, 2026
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.
Refs #2084
Root cause
static_okincrates/rune/src/runtime/paint/keep.rsrequiredt.cold.live.is_none(), marking everyLiveTextnode permanently unfit forPaintKeep. Whenever another element animated (such as a spinner or 3D view), every unchangedLiveTextre-emitted its glyphs every frame.What changed
crates/rune/src/runtime/paint/keep.rs: removedt.cold.live.is_none()fromstatic_okso unchangedLiveTextnodes can be copied across frames.crates/rune/src/runtime/motion/live_latch.rs: bumpednode.epoch = crate::runtime::paint_keep::next_epoch()wheneverlatch_livereplaces aLiveTextnode's content, invalidating itsPaintKeeprecord so updated nodes repaint on that same frame.crates/rune/src/runtime/paint/keep_tests.rs: added regression test covering unchanged copy, single-cell update, wrapped/truncated/line-clamped/rounded-clip updates, debugkeep_checkparity, fresh-paint byte equality, and accessibility tree updates.changelog/unreleased/2026-11-25-live-text-paint-keep.md: changelog entry.Headless
--profile perfmeasurement (500LiveTextcells, 5 paired alternating runs, 240 frames)Headless
RuntimeCPU only (excludes GPU upload and presentation).RUNE_PAINT_KEEP_LOG=1)Verification
PaintKeep::keep_checkactive:cargo test -p rune --lib -- live_text runtime::paint(36 passed, includinglive_text_copied_between_changes_and_repainted_on_update).cargo clippy -p rune --lib --bins --tests: 0 errors.scripts/file-size.sh: 0 errors.cargo test -p rune --lib runtime::paint::keep) and Linux aarch64 (cargo check -p rune -p rune-kit --tests): passed.