[GH-ISSUE #5417] [GUI] Forced WEBKIT_DISABLE_DMABUF_RENDERER=1 paints the window on the CPU: typing and scrolling in slow motion on Radeon #3238

Open
opened 2026-11-07 14:39:05 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @puxplaying on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5417

  • Area: [GUI] (the desktop app)
  • Desktop app, Terminal or source?: Desktop app
  • Reproduction status: Reproduced locally
  • Strata version: Strata 0.2.11 · engine 0.1.57
  • Graphics card, memory and system: RX 7900 XTX 24 GB (gfx1100, Mesa) · 32 GB RAM · Arch Linux GNOME on Wayland · 3840x2160

What happened

Typing in the chat message box shows one letter at a time, and scrolling and clicking are in slow motion. Expected: instant, as in every other app on this desktop.

The app sets WEBKIT_DISABLE_DMABUF_RENDERER=1 for its whole process tree on every Linux desktop (apps/desktop/src-tauri/src/main.rs:860, added in d2a38c9e). In WebKitGTK that variable, any value except 0, makes AcceleratedBackingStore::rendererBufferTransportMode() return an empty set, so AcceleratedBackingStore::canUseHardwareAcceleration() returns false and HardwareAccelerationManager clears m_canUseHardwareAcceleration and m_acceleratedCompositingModeEnabled. The page is then painted on the CPU, with no accelerated compositing at all.

Measured on the running app (the window process):

W=$(pgrep -f 'window-chil[d]' | head -1)
tr '\0' '\n' < /proc/$W/environ | grep WEBKIT
# WEBKIT_DISABLE_DMABUF_RENDERER=1

grep 'memfd:gdk-wayland' /proc/$W/maps | head -1
# a 33.1 MiB mapping = one full 3840x2160 8-bit frame, shipped to the compositor
# through shared memory on every repaint

Verified on this machine:

  • WEBKIT_DISABLE_DMABUF_RENDERER=0 at launch removes the lag completely. The window renders normally and is not blank on Radeon (RX 7900 XTX, Mesa, Wayland). The app keeps a value the user already sets (var_os(...).is_none()), so this works today.
  • With the default 1, shrinking the window makes it clearly more responsive, which fits a cost that grows with the painted area.

The override exists for NVIDIA, where WebKitGTK's DMABUF renderer gets a blank or crashing window (tauri-apps/tauri#9394). On Radeon the DMABUF renderer works, so the override buys nothing here and costs the whole GUI.

Smallest steps or command that reproduce it

1. Start Strata-0.2.11-linux-x86_64.AppImage on Linux under Wayland on a Radeon card, 4K display.
2. Type and delete in the chat message box, and scroll the models page with native engine
   settings expanded: slow motion.
3. Run the two probes above: the variable is set, and the window surface is shared memory.
4. Restart with WEBKIT_DISABLE_DMABUF_RENDERER=0:

       WEBKIT_DISABLE_DMABUF_RENDERER=0 ./Strata-0.2.11-linux-x86_64.AppImage

   The lag is gone.

Suggested change: apply the override only when an NVIDIA driver is present (/sys/module/nvidia or the EGL vendor string), and make the setting editable in the UI (the env is not editable today). NVIDIA users keep their behaviour, other vendors get hardware acceleration.

Originally created by @puxplaying on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5417 - **Area**: `[GUI] (the desktop app)` - **Desktop app, Terminal or source?**: Desktop app - **Reproduction status**: Reproduced locally - **Strata version**: `Strata 0.2.11 · engine 0.1.57` - **Graphics card, memory and system**: `RX 7900 XTX 24 GB (gfx1100, Mesa) · 32 GB RAM · Arch Linux GNOME on Wayland · 3840x2160` **What happened** Typing in the chat message box shows one letter at a time, and scrolling and clicking are in slow motion. Expected: instant, as in every other app on this desktop. The app sets `WEBKIT_DISABLE_DMABUF_RENDERER=1` for its whole process tree on every Linux desktop (`apps/desktop/src-tauri/src/main.rs:860`, added in d2a38c9e). In WebKitGTK that variable, any value except `0`, makes `AcceleratedBackingStore::rendererBufferTransportMode()` return an empty set, so `AcceleratedBackingStore::canUseHardwareAcceleration()` returns false and `HardwareAccelerationManager` clears `m_canUseHardwareAcceleration` and `m_acceleratedCompositingModeEnabled`. The page is then painted on the CPU, with no accelerated compositing at all. Measured on the running app (the window process): ``` W=$(pgrep -f 'window-chil[d]' | head -1) tr '\0' '\n' < /proc/$W/environ | grep WEBKIT # WEBKIT_DISABLE_DMABUF_RENDERER=1 grep 'memfd:gdk-wayland' /proc/$W/maps | head -1 # a 33.1 MiB mapping = one full 3840x2160 8-bit frame, shipped to the compositor # through shared memory on every repaint ``` Verified on this machine: - `WEBKIT_DISABLE_DMABUF_RENDERER=0` at launch removes the lag completely. The window renders normally and is not blank on Radeon (RX 7900 XTX, Mesa, Wayland). The app keeps a value the user already sets (`var_os(...).is_none()`), so this works today. - With the default `1`, shrinking the window makes it clearly more responsive, which fits a cost that grows with the painted area. The override exists for NVIDIA, where WebKitGTK's DMABUF renderer gets a blank or crashing window (tauri-apps/tauri#9394). On Radeon the DMABUF renderer works, so the override buys nothing here and costs the whole GUI. **Smallest steps or command that reproduce it** ``` 1. Start Strata-0.2.11-linux-x86_64.AppImage on Linux under Wayland on a Radeon card, 4K display. 2. Type and delete in the chat message box, and scroll the models page with native engine settings expanded: slow motion. 3. Run the two probes above: the variable is set, and the window surface is shared memory. 4. Restart with WEBKIT_DISABLE_DMABUF_RENDERER=0: WEBKIT_DISABLE_DMABUF_RENDERER=0 ./Strata-0.2.11-linux-x86_64.AppImage The lag is gone. ``` **Suggested change**: apply the override only when an NVIDIA driver is present (`/sys/module/nvidia` or the EGL vendor string), and make the setting editable in the UI (the env is not editable today). NVIDIA users keep their behaviour, other vendors get hardware acceleration.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3238
No description provided.