mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 00:08:52 +00:00
The shell set WEBKIT_DISABLE_DMABUF_RENDERER=1 on every Linux desktop, because WebKitGTK's DMA-BUF renderer shows a blank or crashing window on several NVIDIA + Wayland desktops and some virtual GPUs. That variable turns hardware acceleration off for the whole window; the reporter's 4K Radeon (RX 7900 XTX, Mesa, GNOME Wayland) typed and scrolled in slow motion, and WEBKIT_DISABLE_DMABUF_RENDERER=0 removed the lag. It is now set only when the NVIDIA kernel module is loaded (/sys/module/nvidia) or when a DRM card is driven by anything other than amdgpu, radeon, i915 or xe (a virtual GPU, nouveau, an unknown or unreadable driver, or no card readable). A value the person set is kept as before. The decision is plain std code in renderer_choice.rs, built on every platform. Test: renderer_choice.rs unit tests (rustc --test on Windows: 3 passed; the sysfs-reading test is unix-only and was not run: no Rust toolchain on our Linux boxes). Not run: the packaged app on Radeon Wayland and on NVIDIA (no Linux desktop here; on the packaged-check list).