mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @puxplaying on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5417
[GUI] (the desktop app)Strata 0.2.11 · engine 0.1.57RX 7900 XTX 24 GB (gfx1100, Mesa) · 32 GB RAM · Arch Linux GNOME on Wayland · 3840x2160What 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=1for its whole process tree on every Linux desktop (apps/desktop/src-tauri/src/main.rs:860, added ind2a38c9e). In WebKitGTK that variable, any value except0, makesAcceleratedBackingStore::rendererBufferTransportMode()return an empty set, soAcceleratedBackingStore::canUseHardwareAcceleration()returns false andHardwareAccelerationManagerclearsm_canUseHardwareAccelerationandm_acceleratedCompositingModeEnabled. The page is then painted on the CPU, with no accelerated compositing at all.Measured on the running app (the window process):
Verified on this machine:
WEBKIT_DISABLE_DMABUF_RENDERER=0at 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.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
Suggested change: apply the override only when an NVIDIA driver is present (
/sys/module/nvidiaor 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.