perf: cache blurred wallpaper to disk to avoid re-blur on startup

First launch with blur blurs and saves to ~/.cache/moonset/. Subsequent
starts load the cached PNG directly (~9x faster). Cache invalidates
when wallpaper path, size, mtime, or sigma changes.
This commit is contained in:
2026-03-28 21:22:48 +01:00
parent 622b06da3f
commit 478caed8e0
3 changed files with 172 additions and 3 deletions
+1
View File
@@ -8,6 +8,7 @@ Format based on [Keep a Changelog](https://keepachangelog.com/).
### Added
- Optional background blur via `background_blur` config option (Gaussian blur, `image` crate)
- Disk cache for blurred wallpaper (`~/.cache/moonset/`) — avoids re-blurring on subsequent starts
## [0.1.1] - 2026-03-28