The decoded-image cache (peniko ImageBrush + tiny-skia Pixmap, ~w·h·4 each) was unbounded — the main asset-memory cost. Now capped at 256 MB with usage-LRU eviction: every get_or_decode bumps the asset's recency, and inserts past the budget evict the least-recently-used (a miss re-decodes from the resident asset.data). Images actually rendered each frame stay resident; unused ones age out under pressure. invalidate/clear keep the lru + byte accounting in sync. Next (4b): lazy-load asset.data from the container instead of eager on project open. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||