Repository navigation
Fix/3958 dock tooltip & app icon perf - #3962
Merged
Merged
Conversation
Each tooltip show mapped a new layer surface, which started a render thread and blocked the gui thread for its first frame on every hover. The dock now keeps its tooltip mapped and toggles only the content, and unmaps it under a fullscreen window so that window can still be scanned out directly. Refs duxlabs-dev#3958 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Magnification scales the icon item, but the pixmap was decoded at the resting size, so magnified icons were upscaled and looked crunchy. Refs duxlabs-dev#3958 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Member
|
/claude review |
Contributor
Claude reviewLooks good, with one small fix needed for icon sharpness when magnification and enlarge-on-hover are both on.
|
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Member
|
/claude review |
Contributor
Claude reviewNo issues found. The earlier load-scale finding is fixed in a2f5f90, which now multiplies magnification and enlarge-on-hover. |
dux-ci Bot
pushed a commit
that referenced
this pull request
Oct 27, 2026
port 2.0 (cherry picked from commit fa62bf2)
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.
Description
The main change is 3eb6cdd, which makes the dock app tooltip a persistent surface anchored to the dock (e.g. creates alongside dock surfaces when showing the dock), preventing repeated tooltip surface creation/destructions and frame hitching when mousing over the dock, which was particularly noticeable with magnification on (as the icons were scaling up/down more gradually, and skipped frames made the scaling jittery)
The second change makes sure that we load an app icon big enough for scaling up cleanly, instead of an icon sized for the dock icon as-is. Normally, the loaded icon was for the default dock size, but would get crunchy when upscaled. This loads a larger texture when needed for magnification, and renders more cleanly:
left to right: master today, this branch, #3961, this branch + 3961 together. Even at max size, the app icon cleanup + dock cleanup still looks sharper at max size when magnified at 160% :)
(tooltip positioning w/ magnification and the canvas cutoff #3959 are left untouched by this, but could also do with some love after all this)
Type of change
Related issues
#3958
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings