[Bug]: Choppy scrolling with software rendering: add option to disable frosted glass (backdrop-filter) effects #20269
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Run T3 Code on a Linux machine where Chromium/Electron can't get a working OpenGL context, so it falls back to software rendering (in my case Omarchy on an Apple M4 Pro with an experimental Mesa driver; VMs, older or unsupported GPUs and broken driver setups end up the same way).
- Open a thread with a decent amount of content.
- Scroll.
Expected behavior#
Scrolling stays smooth, or at least there is a setting to trade the visual effects for performance.
Actual behavior#
Scrolling is very choppy. Other Chromium apps on the same machine (e.g. the Omarchy manual as a Chromium web app) scroll smoothly, so it's not the whole system.
What I found while investigating:
- The GPU process runs with
--use-gl=disabledand the renderer with--disable-gpu-compositing. GPU init fails (eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE→Exiting GPU process due to errors during initialization), so everything is rasterized and composited on the CPU. - The UI uses a lot of frosted glass:
backdrop-filter: blur(var(--glass-blur)) saturate(...)with--glass-blurat 12px (16px in dark mode), plus many Tailwindbackdrop-blur-*utilities (~80 uses in the bundle). In software mode every blurred layer has to be recomputed for each scrolled frame, which is very expensive on a 3456×2234 @ 2x / 120Hz display. - Even at idle, T3 Code's GPU process sat around 15% CPU, compared with about 2% for the Chromium web app.
Proposed fix#
An appearance setting such as "Reduce transparency" / "Disable glass effects" that removes backdrop-filter (e.g. a root class setting --glass-blur: 0 and backdrop-filter: none, with solid backgrounds). It could also:
- follow
prefers-reduced-transparencywhere supported, and/or - turn on automatically when hardware acceleration is unavailable (
app.getGPUFeatureStatus()reportinggpu_compositing: disabled_software/disabled_off).
Impact#
Major degradation or frequent failure
Version or commit#
0.0.45 (t3code-bin 0.0.45-2, Electron with Chrome/152.0.7977.130)
Environment#
Omarchy (Arch Linux ARM), Hyprland/Wayland (--ozone-platform=wayland), Apple M4 Pro (m4_gpu_driver, Mesa 26.3.0-devel), 3456×2234 @ 120Hz, scale 2
Logs or stack traces#
ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Error) eglCreateContext: Requested version is not supported
ERROR:ui/gl/gl_context_egl.cc:363] eglCreateContext ES 3.0 failed with error EGL_BAD_ATTRIBUTE. ES version fallback is disabled.
ERROR:gpu/config/gpu_info_collector.cc:100] gl::init::CreateGLContext failed
ERROR:gpu/ipc/service/gpu_init.cc:123] CollectGraphicsInfo failed.
ERROR:components/viz/service/main/viz_main_impl.cc:190] Exiting GPU process due to errors during initialization
Workaround#
None inside the app. Lowering the display to 60Hz helps a little.
juliusmarminge added labelsenhancement
juliusmarminge added labelsvia-triage
juliusmarminge closed this
Hey @juliusmarminge, following up on your suggestion to set Glass opacity to 100%: dialog backdrops still apply a hard-coded
blur(4px)at that setting, even though the shared glass blur is disabled.On my Windows machine using software rendering (
v0.1.8-nightly.20261106.4275), opening and navigating dialogs remains slow. I opened #29525 to disable dialog backdrop blur at 100%, which resolves that slowdown in my manual testing. Recordings are attached to the PR.Separately, removing the sidebar’s edge fade mask appeared to improve scrolling on the same machine, although that finding is less conclusive and isn’t part of this PR.
Would you consider disabling dialog backdrop blur at 100% consistent with the existing setting, or would you prefer a separate reduced-effects option for effects like these? Thanks for your help :)
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
You can mostly do this today: on current releases (v0.1.0; you're on 0.0.45), the Glass opacity setting at 100% makes glass surfaces opaque and sets the shared
--glass-blurto0px(seeGlassAppearanceSyncinapps/web/src/routes/__root.tsx). Please update and try that first.The underlying cause here is Chromium falling back to software compositing because GPU init fails on your experimental Mesa driver, which is outside T3 Code. A dedicated "Reduce transparency" toggle, or switching glass off automatically when GPU compositing is unavailable, would be a new option, so I'm closing this as a feature request. Please open it in Ideas.
If scrolling is still choppy on the latest release with Glass opacity at 100%, comment with the version and we'll take another look.