fix(graphics): revert to v1.1.9 rendering defaults, fix UI lag

Reverts the aggressive GPU disabling introduced in v1.1.10/11 that
caused severe UI lag for all users. The previous approach disabled
WEBKIT_DISABLE_DMABUF_RENDERER globally (not just NVIDIA) because
hardware_accel defaulted to false.

New behavior (matches v1.1.9 targeted mitigations):
- X11 non-NVIDIA: nothing disabled (full GPU acceleration)
- X11 + NVIDIA: only DMA-BUF disabled
- Wayland: compositing + DMA-BUF disabled (prevents EGL crashes)
- Wayland + force_x11: runs as X11 (XWayland)
- VM: software rendering via llvmpipe

Improvement over v1.1.9: DMA-BUF now disabled for ALL Wayland GPUs
(not just NVIDIA), which prevents the Intel Arc EGL crash from #59.

All settings bypassable via env vars:
- QBZ_HARDWARE_ACCEL=0 disables all GPU rendering (nuclear opt-out)
- QBZ_HARDWARE_ACCEL=1 bypasses all safety (full GPU everywhere)
- QBZ_FORCE_X11=1 forces XWayland backend
- QBZ_FORCE_DMABUF=1 / QBZ_DISABLE_DMABUF=1 fine-grained DMA-BUF
- QBZ_SOFTWARE_RENDER=1 forces Mesa llvmpipe

Also adds GDK_SCALE and GDK_DPI_SCALE DB persistence for XWayland
scaling (workaround from #67).

cc
This commit is contained in:
vicrodh committed 2026-02-10 19:27:39 -06:00
1 parent 63abf1f90c
commit 31019d9b6a
4 files changed
+162 -49

No files matched your search

+2
View File
@@ -996,6 +996,8 @@ pub fn run() {
config::graphics_settings::get_graphics_settings,
config::graphics_settings::set_hardware_acceleration,
config::graphics_settings::set_force_x11,
config::graphics_settings::set_gdk_scale,
config::graphics_settings::set_gdk_dpi_scale,
// Window settings commands
config::window_settings::get_window_settings,
config::window_settings::set_use_system_titlebar,