Expand description
Clairlune’s live wallpaper (PLAN.md sections 2 and 5.3): a saved scene plays behind the desktop icons.
Player keeps the frame between ticks with the incremental compositor
and writes only the rectangles that changed into a 0RGB buffer, which the
presenter copies to the screen as damage. The pixels come from the same
compositor as the still PNG, with the same palette, so the first live
frame (at the hero time) is the static wallpaper, except that on a GPU
the particles sit at their own sub-cell positions (Player::set_smooth)
instead of the cell grid.
Modules§
- cover
- Whether app windows fill a screen. On macOS a zoomed window (a double click on its title bar) leaves the menu bar and the Dock showing, so the wallpaper’s window never reports itself hidden: the Mac host also asks where the other apps’ windows are and treats a screen whose usable area they all but fill (one zoomed window, or tiles side by side) as covered.
- gpu
- The GPU presenter (PLAN.md section 5.3): each monitor’s frame lives on the GPU as an index texture (one byte per pixel) with its 256-entry palette, and one full-screen triangle looks each pixel up. Only the rectangles the compositor reports are uploaded per frame.
Structs§
- Frame
Stats - What one frame cost, for budgets and logs.
- Player
- Plays one saved scene, one frame at a time.
Enums§
- Cover
Policy - What a maximized or full-screen app pauses.
Constants§
- JOURNEY_
MAX_ FPS - The highest frame rate for a journey: its land moves, so every frame is the whole screen, and Very smooth already scrolls evenly.