Repository navigation
fix(ui): glass no longer flickers beside moving lines and around hovered cards - #152
Merged
Merged
Conversation
…red cards A sheet of glass blurred "what is on the canvas under it". That is only right in a frame that redraws the whole window. Most frames redraw a small part (the line under the header, the line in the sidebar, a card under the pointer), and then the pixels around that part are those of the frame before, with cards and text on them. The blur of them is another picture, so the glass changed its look from frame to frame. Now the background is taken once, right after it was drawn in a frame that redraws everything, blurred at a quarter of its size and kept (GlassBackdrop). Every sheet of glass draws its part of that picture, whatever the frame redraws. Glass that lies on glass draws nothing. The scrim of a dialog still blurs the page under it (IsLive). Measured on glass beside the sidebar line, 36 frames: 5 and 2 jumps of brightness the old way, none the new way.
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.
Fixes the flashing reported after the UI port: at the top and bottom of the window all the time, and
around components under the pointer.
Cause
BackdropBlurblurred "what is on the canvas under it". That is only right in a frame that redrawsthe whole window. A frame that redraws a small part (the line under the header, the line in the
sidebar, a hovered card) leaves the pixels around that part as the frame before left them, with
cards and text on them. Blurring those gives another picture, so glass changed its look from frame
to frame.
Change
GlassBackdropkeeps one blurred picture of the background.EffectsLayertakes it right afterdrawing the background, only in a frame that redraws everything.
IsLive), because it must blur the page.Checked
5 and 2 jumps of brightness the old way, 0 and 0 the new way.
fault.
Not measured: what the screen shows while the pointer moves onto a card. The cause is the same, but
I could not film it reliably.