Skip to main content

Crate clairlune_live

Crate clairlune_live 

Source
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§

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.
linux
The live wallpaper on Linux, where a surface of our own can sit under everything without hiding the desktop’s icons:

Structs§

FrameStats
What one frame cost, for budgets and logs.
Player
Plays one saved scene, one frame at a time.

Enums§

CoverPolicy
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.
SMOOTHNESS_FPS
Live frame rates, by their names in Settings (PLAN.md section 5.3).