Skip to content

webroot: drop backdrop-filter from the sticky bars (scroll jank) - #26

Draft
ash-iir wants to merge 1 commit into
mainfrom
perf-no-scroll-blur
Draft

ash-iir wants to merge 1 commit into
mainfrom
perf-no-scroll-blur

Conversation

@ash-iir

@ash-iir ash-iir commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Performance. Scrolling the app or backup list stutters in the WebView. The sticky .topbar and the fixed .tabs use backdrop-filter: saturate(140%) blur(10-12px), so every scrolled frame the compositor has to blur again whatever passes under both bars.

  • .topbar and .tabs use the opaque var(--bg) instead of 86% / 90% color-mix plus blur. Since the bars were already mostly opaque, the dark and light themes look nearly the same (side-by-side screenshot checked).
  • The modal scrim drops its blur(2px) and goes from .66 to .72 alpha.

Measurements

Playwright mock harness (shoot.py fixtures, 300 apps), headless Chromium with 6x CPU throttle, scrolling 40 px per frame for 120 frames, 3 runs each. Frame time p50 / p95 / max:

  • main: 16.7-33.3 / 33.4-50.0 / 50.1-66.6 ms
  • this branch: 16.7 / 16.7 / 16.8 ms in all three runs

Desktop headless Chromium is not an Android WebView, so expect the gain on a phone to differ. Not tested on a rooted device.

A blur behind the sticky top bar and the fixed bottom tabs makes the
compositor re-blur what scrolls under them on every frame, which is the
main source of scroll stutter. Use the opaque page background instead
(the bars were already 86-90% opaque, so the look barely changes) and a
slightly darker scrim for modals.

Signed-off-by: ash-iir <254348575+ash-iir@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant