lightcraft/crates/preview/src
radialmonster 73cf0d50bb Thumbnails: keep textures when the disk cache is resized
Changing the disk cache size (library.preferences cacheMb) re-attached a
new PreviewCache object, and the renderer treats a new cache object as a
library reset: every texture, the loupe included, was dropped and
re-rendered. Thumbnails are keyed by content, so a new budget leaves them
valid. The budget now changes in place on the attached cache (same object,
same generation); the next write trims to it, as before. A preview clear,
a generation bump and a new library still invalidate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 19:04:03 -04:00
..
disk.rs Thumbnails: keep textures when the disk cache is resized 2026-10-07 19:04:03 -04:00
hash.rs M1.5: thumbnail/preview cache (disk + memory LRU, prioritized job pool) 2026-09-30 23:51:47 -04:00
lib.rs T0: optimize thumbnail requests and reject obsolete preview work 2026-10-07 19:04:03 -04:00
lru.rs M5.6c: one memory budget for caches, decode gate and GPU pool; peak RSS 1.9-2.3 GB -> 0.83-0.99 GB 2026-10-01 11:35:08 -04:00
pool.rs LRC-LIB-PREVIEWS: build standard-sized / 1:1 previews in the background 2026-10-02 21:42:33 -04:00
tests.rs T0: optimize thumbnail requests and reject obsolete preview work 2026-10-07 19:04:03 -04:00