"A desktop wallpaper should be invisible to your CPU. The moment a background decoration steals clock cycles from your compiler or your GPU from a game, it has failed as a system utility."
Ayoub Zulfiqar, Native Display Protocols & Compositing
What is Iris?
Iris is a high-performance live-wallpaper engine for Linux and Windows built in Rust. It decouples rendering from desktop management, utilizing a background daemon that draws directly to Wayland layer-shell surfaces or Windows WorkerW handles via wgpu 23 and hardware-accelerated FFmpeg decoding.
The Core Architectural Mistake of Desktop Live Wallpapers
Existing wallpaper engines on modern operating systems suffer from two primary architectural flaws:
- Coupling the wallpaper selection catalog with the rendering frame loop causes window closure to terminate wallpaper playback, or forces resource-heavy Chromium/Webview runtimes to remain active indefinitely.
- Display server mismatches on Linux arise when legacy tools create borderless X11 windows set to "always on bottom", triggering severe z-index flickering, broken multi-monitor scaling, and high frame jitter under modern Wayland compositors (Sway, Hyprland, KDE Plasma 6).
┌────────────────────────┐ JSON-RPC 2.0 IPC ┌────────────────────────┐
│ Tauri + React Manager │ ───────────────────────────▶ │ iris-daemon │
│ (UI / Catalog / Tray) │ /tmp/iris.sock (Linux) │ (Pure Rust Background)│
└────────────────────────┘ \\.\pipe\iris-ipc (Win) └───────────┬────────────┘
│
┌────────────────────────────────┴────────────────────────────────┐
▼ ▼
┌───────────────────────────────┐ ┌───────────────────────────────┐
│ Linux: Wayland Surface │ │ Windows: WorkerW Surface │
│ (zwlr_layer_shell_v1) │ │ (Direct3D / DXGI Swap) │
│ Paced by wl_surface.frame │ │ WASAPI Audio Spectrum │
└───────────────────────────────┘ └───────────────────────────────┘
Wayland Layer-Shell Compositing Architecture
On modern Linux, Iris binds directly to the Wayland zwlr_layer_shell_v1 protocol extension. Instead of creating an arbitrary application window, it requests a dedicated ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND surface anchor from the compositor.
The render loop is synchronized with the monitor refresh rate through Wayland frame callbacks:
// Simplified frame loop in crates/iris-backend-wayland
impl WaylandSession {
pub fn schedule_next_frame(&mut self) {
let callback = self.surface.frame(&self.qh, ());
self.state.pending_frame = Some(callback);
}
pub fn on_frame_ready(&mut self) {
// Only draw when the Wayland compositor requests a presentation
if !self.is_paused {
self.renderer.render_frame();
self.surface.commit();
}
self.schedule_next_frame();
}
}
Autonomous Power Management: Fullscreen Game Detection
Iris features real-time window state and telemetry hooks. On Linux, it tracks active fullscreen toplevel surfaces; on Windows, it queries foreground window rects matching monitor resolutions.
The moment a user launches a fullscreen game, 3D rendering pipeline, or video player:
- The rendering loop suspends immediately, ceasing all GPU draw calls.
- Hardware video decoders (VA-API/NVDEC) pause frame processing.
- GPU and CPU utilization drop to strictly 0.0% until the user returns to the desktop.
Frequently Asked Questions
What is Iris and how does it render live wallpapers without lag?▼
Iris is a desktop live-wallpaper engine built in Rust. It decouples rendering into an unprivileged background daemon that draws directly to Wayland layer-shell surfaces or Windows WorkerW handles via wgpu 23, avoiding main-thread UI overhead.
How does Iris render on Linux without tearing or window flickering?▼
On Linux, Iris leverages the Wayland zwlr_layer_shell_v1 protocol paced precisely by wl_surface.frame callbacks, eliminating X11 borderless window hacks and guaranteeing zero screen tearing.