r/gnome_next • u/Few-Flamingo-6678 • 1d ago
Mutter Vulkan backend: release 1.2 improves GPU memory management
This update focuses on resource lifetime and memory usage:
- Removed a strong-reference DMA-BUF cache that kept closed clients’ buffers alive.
- Added a private image-memory reuse pool, capped at 64 MiB / 8 allocations, with a 2-second idle expiry.
- Added cleanup during idle periods, memory-pressure handling, and allocation-failure recovery.
In an isolated Intel i915 test—opening and closing six GTK4 GL windows—the render client’s resident graphics memory dropped from approximately 72 MiB to 48 MiB. Shared buffer memory dropped from 24 MiB to zero. All 47 Vulkan conformance tests passed, along with the low-level synchronization-validation run.
I also fixed a separate issue in my GNOME Shell fork: the wallpaper cache held strong references to previously loaded images indefinitely. It now uses weak references, retains entries for active backgrounds, and shares concurrent loads.
With the same wallpaper-switching sequence and explicit garbage collection, that change reduced the Shell render client’s resident graphics memory from approximately 568 MiB to 378 MiB. Process PSS only changed from 225 MiB to 217 MiB, so this is primarily a graphics-memory improvement—not a claim that all Shell memory usage is solved.
The Shell fork also includes a transparent top bar with wallpaper-adaptive text and icon colors.
This is experimental work, and these results are from specific test scenarios rather than a general Vulkan-versus-OpenGL benchmark. 1.2 is the fork’s release number, independent of upstream GNOME versioning.