Sharper first view and smoke loader sign-off
The loader now measures throughput from whole tile batches, not just the two probe tiles, and after a session settles inside its deadline it tops up in the background: the needed level if the budget cut it short, then one level above it on capable devices with a fast connection (drawn downscaled), within time and memory caps and never under Save-Data. The chop in the album end card and the page footer is replaced by the LUCIO loader in smoke from lucioIP, falling back to the SVG loader without WebGL. sync-brand.sh now copies lucio-loaders.js and defaults to ../lucioIP. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
e48a1eacf4
commit
4cdbd66fcf
10 files changed
+990
-41
No files matched your search
+4
-3
@@ -97,18 +97,19 @@ Served by the daemon in serve mode, and in export mode on `server.listen` (nothi
|
||||
4. Final level: highest level up to the needed one whose visible-tile bytes ÷ throughput ≤ (budget − elapsed) × 0.8. If it is 2+ levels above the probe, fetch one intermediate level first.
|
||||
5. Fetch only visible tiles, centre outwards, `concurrency` at a time; each tile fades in over the lower layer as it decodes.
|
||||
6. Deadline `budget_ms` (3000): abort unfinished upgrades and keep what is on screen.
|
||||
7. Top-up (album viewer, un-zoomed, only when steps 3–5 finished inside the deadline; never with Save-Data or on 2g/3g): each level batch also measures throughput (bytes ÷ wall time). If the final level stopped short of the needed one, fetch the needed level when its bytes ÷ throughput ≤ 6 s. Then, on a capable device (≥ 4 cores, `deviceMemory` ≥ 4 GB where reported) with throughput ≥ 1.5 MB/s, fetch one level above the needed one when it fits in 4 s and its decoded visible pixels stay under 35 % of the tile cache; it is drawn downscaled with high-quality smoothing. These fetches run at prefetch priority, show no loader and stop when the photo is left or zoomed.
|
||||
|
||||
Moving to another photo aborts that photo's requests. Prefetch the next photo's seed and probe level and, for multi-slide photos, the next slide's tiles. Decoded tiles live in an LRU cache capped at about 250 MB on desktop and 120 MB on phones. Decode with `createImageBitmap` (in a worker where supported). The canvas is always viewport-sized. Pixel density capped at `max_dpr` (2).
|
||||
|
||||
## Screens
|
||||
|
||||
Album index: full-width strips, 8 px apart on phones, 16 px on desktop. Header with the Lucio wordmark (Guoliang → Lucio morph on hover, the only animation on this screen); footer with the chop. Closed strip 32:6 showing the `collapsed_focus_y` band of the 32:9 cover, height `min(100vw*6/32, 28vh)`; open 32:9, height `min(100vw*9/32, 62vh)`; the cover is drawn cover-fit, never stretched (under the height caps a very wide screen crops top and bottom). Desktop: hover opens. Touch: the strip nearest the vertical centre opens while scrolling; tap enters. On open the height animates 240 ms, then the title fades in (light-on): mono date line, then the title in Bricolage Grotesque, bottom-left. Covers use the tile loader; closed strips load only the visible band; only strips near the viewport load.
|
||||
Album index: full-width strips, 8 px apart on phones, 16 px on desktop. Header with the Lucio wordmark (Guoliang → Lucio morph on hover, the only animation on this screen); footer with the LUCIO loader in smoke (bottom-right; the plain SVG loader without WebGL; the chop until the script runs). Closed strip 32:6 showing the `collapsed_focus_y` band of the 32:9 cover, height `min(100vw*6/32, 28vh)`; open 32:9, height `min(100vw*9/32, 62vh)`; the cover is drawn cover-fit, never stretched (under the height caps a very wide screen crops top and bottom). Desktop: hover opens. Touch: the strip nearest the vertical centre opens while scrolling; tap enters. On open the height animates 240 ms, then the title fades in (light-on): mono date line, then the title in Bricolage Grotesque, bottom-left. Covers use the tile loader; closed strips load only the visible band; only strips near the viewport load.
|
||||
|
||||
Album viewer: one photo at a time, contained in the viewport (fills height or width, never stretched), centred on graphite. Swipe right-to-left, ←/→, click-and-drag; one pointer-events handler for mouse and touch with flick velocity and rubber-band ends; Home/End; Esc returns to the index. `slides: N`: the photo is scaled so a 1/N-wide section fits the viewport; moving between its slides is a continuous pan. `/a/<slug>/#7` opens photo 7. End card: chop, "— Lucio", the next album's strip. Reduced motion: crossfades.
|
||||
Album viewer: one photo at a time, contained in the viewport (fills height or width, never stretched), centred on graphite. Swipe right-to-left, ←/→, click-and-drag; one pointer-events handler for mouse and touch with flick velocity and rubber-band ends; Home/End; Esc returns to the index. `slides: N`: the photo is scaled so a 1/N-wide section fits the viewport; moving between its slides is a continuous pan. `/a/<slug>/#7` opens photo 7. End card: the LUCIO loader in smoke, "— Lucio", the next album's strip. Reduced motion: crossfades.
|
||||
|
||||
Captions: hidden by default; shown while the pointer is in the bottom 20% of the photo; click or tap pins/unpins; `i` toggles. A tap is < 10 px movement and < 300 ms. Panel: mono line `03 / 12 · Z8 · 24-70 f/2.8 · 35mm · f/8 · 1/250 · ISO 64` (EXIF only when `show_exif`), then the caption in IBM Plex Sans over a graphite fade. Captions are real DOM text.
|
||||
|
||||
Lucio brand (source of truth: ../LUCIO_ip): graphite #111114 ground, paper #F3F1EC text, beam #FFF3CF only on focus and a thin progress line, steel for secondary text, cinnabar only in the chop. Bricolage Grotesque display, IBM Plex Sans body, IBM Plex Mono eyebrows (uppercase, +0.08em). Fonts self-hosted woff2, nothing from Google. If a photo has nothing sharp after 400 ms, the L→U→C→I→O loader (LucioMorph.loader) appears on the right edge, vertically centred, inset ≥ 32 px. One animated element per screen. Motion: 120 ms hover, 240 ms reveals, 900 ms light-on with cubic-bezier(0.16, 1, 0.3, 1). Brand files are copied from LUCIO_ip by `scripts/sync-brand.sh`.
|
||||
Lucio brand (source of truth: ../lucioIP): graphite #111114 ground, paper #F3F1EC text, beam #FFF3CF only on focus and a thin progress line, steel for secondary text, cinnabar only in the chop. Bricolage Grotesque display, IBM Plex Sans body, IBM Plex Mono eyebrows (uppercase, +0.08em). Fonts self-hosted woff2, nothing from Google. If a photo has nothing sharp after 400 ms, the L→U→C→I→O loader (LucioMorph.loader) appears on the right edge, vertically centred, inset ≥ 32 px. One animated element per screen. Motion: 120 ms hover, 240 ms reveals, 900 ms light-on with cubic-bezier(0.16, 1, 0.3, 1). Brand files are copied from lucioIP by `scripts/sync-brand.sh`.
|
||||
|
||||
## Discouraging saves
|
||||
|
||||
|
||||
Reference in new issue
Block a user