Repository navigation
perf(web): keep composer updates within the scroll frame - #1418
Merged
Merged
Conversation
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.
Slow wheel input could leave the composer at its previous height for the first frame of each short tween. Updating the footer edge also invalidated inherited styles throughout the virtual feed. The composer now applies travel that fits in one 120 Hz frame on its first paint, and only the backdrop, scrollbar gutter fade and footer actions inherit the moving edge.
Fixes: #1414
Frame measurements
Sampled production builds in Electron 45.4.1 on Linux with a local gateway, a 14-turn thread, a 1200 × 820 viewport and software offscreen rendering. Counted offscreen paint deliveries, native scroll events and composer surface size changes independently. Each workload ran twice at each refresh setting with 3.5 s of measured movement per run after warm-up.
The continuous wheel delivered 104–108 scroll events/s at 120 Hz after the change. The 95th-percentile paint interval was 14.4–14.8 ms for slow input and 11.4–11.7 ms for reversals, with an isolated 64.5 ms gap. These runs measured software output on the worker. Physical display presentation was unavailable.
In separate matched slow-scroll traces at 120 Hz, the largest style update visited 14 elements, down from 1,035.
Other verification