Protocol

preload

Decode wallpapers into the GPU cache so a later set is instant.

NOTIFYcrownpaper.preload
Rust
client.preload(vec![dunes, city])?;
let pending = client.ping()?;
client.wait(pending, Some(Duration::from_secs(5)))?;
CLI output
preloaded 2 wallpaper(s)

A notification: the daemon does not reply. Follow it with ping when you need to know the images are ready.

Parameters

pathsVec<String>required

Absolute paths to decode. Paths already in the cache are skipped.

unload(paths: Vec<String>)

Drops preloaded wallpapers from the cache.

preload_renderer()

Brings the GPU renderer up and keeps it warm, so the next set animates without paying for device creation.

unload_renderer()

Lets the renderer be released again once the screen is at rest.