Repository navigation
perf(glass,dock): audit fixes + on/off resource benchmark - #21
Merged
Merged
Conversation
`just glass bench` toggles only the fluctusglass effect (stock Blur stays loaded), drives idle / window drag / video / pointer scenarios with mpv and KWin scripts, and records kwin and plasmashell CPU time, memory and NVIDIA board power. Results from before and after the audit fixes are in glass/docs/performance.md, raw data under glass/tools/bench/results/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Glass effect / liquidglass: - Keep the backdrop capture registered to screen coordinates with slack, and carry overlapping pixels over on reallocation: no per-frame texture churn while the dock pill grows or a window moves, no black edge refraction. - Cache blur chains by size/format/iterations in the GL renderer instead of one shared chain thrashed by every differently sized draw. - Finish the Kawase chain with a full-resolution upsample so the glass shader reads the blur with one level-0 tap instead of an 8-tap filter per sample. - Repaint glass for another window's damage only where the frame really repainted its sampling margin, not on any damage of an overlapping window. - Blur only frosted shapes; skip no-op Set() calls; free idle capture textures; cache color-mapped materials; restore UBO binding 0 and avoid reading a host PBO when allocating. - Catch Rust panics at the FFI boundary (new release-ffi profile unwinds) and take Kawase/margin math from the renderer instead of duplicating it in C++. - Global mode: pointer response off on application windows by default (new PointerEffectsOnWindows setting). Dock: - Cache role ids and ignore dataChanged for roles the dock does not use (window drags no longer resync delegates every frame). - Publish minimize geometry only when it changes; cache per-frame property handles; send the glass region over D-Bus only once animations settle. - Settle check uses the resolved (auto-scaled) metrics like step(), so the hover spring always reaches rest (new regression test). - Higher-resolution icon sources with mipmapping; non-blocking startup glass detection. 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.
Summary
An audit of Fluctus Dock, the Fluctus Glass KWin effect and the
liquidglassrenderer, the fixes it led to, and a benchmark that measures what glass costs against stock Blur.Benchmark (
just glass bench)fluctusglasseffect on and off; stock Blur stays loaded.glass/docs/performance.md; raw data is underglass/tools/bench/results/.Glass effect and renderer
Set()calls that change nothing are ignored.release-ffiprofile, because the workspace release profile aborts on panic.PointerEffectsOnWindowssetting, with a checkbox in the Glass settings, turns them back on.Dock
dataChangedfor roles the dock doesn't use is ignored. Window drags no longer re-sync every dock icon on each frame.step(), so the hover animation always comes fully to rest. A new regression test fails on the old code, where the dock stopped at 2.7% magnification.Test plan
just test(Rust tests, headless GPU visual parity test, all C++ tests)just test-san(AddressSanitizer + UBSan)just lint: clippy is clean; clang-tidy shows 4 style warnings on changed lines, of kinds the existing code already hasjust glass update,just dock update): no errors in the KWin or plasmashell log, and the dock glass shape is registered🤖 Generated with Claude Code