fix: give static Glow the full card's cache hierarchy (#375)

V6a: pass the stable devices array to resolvedLightSources — the WeakMap
cache is keyed by array identity, a spread guaranteed a miss on every
render in BOTH cards (full-card regression since beta.4).
V6b: the static wall geometry now carries the same non-enumerable
sourceFingerprint tag the full card attaches, so buildLightBarrierScene
takes the fast recutWallBodiesGeometry path on door state changes.
V6c: the static barrier-scene cache is an LRU of 8 per space (parity
with _lightBarrierPool) — a flipping door reuses both of its scenes.
V6d: enabledClip is cached by geometry fingerprint + disabled-room set,
with the full card's bbox prefilter for decor bodies.

User-Visible: yes
Issue: #375
This commit is contained in:
Codex
2026-08-29 20:59:08 +03:00
parent 97bb0eceea
commit d762ae0231
7 changed files with 270 additions and 40 deletions
+8
View File
@@ -2,6 +2,14 @@
## Unreleased
- Glow in `houseplan-space-card` no longer rebuilds its light graph and wall
scene from scratch on every Home Assistant tick: the static path now shares
the caching machinery of the full card (light-graph cache, an LRU pool of
barrier scenes so a moving door reuses both of its states, the fast masonry
recut path, and a cached room clip). This also fixes a light-graph cache
regression the full card picked up in beta.4
([#375](https://github.com/Matysh/houseplan-card/issues/375)).
## v1.69.0-beta.4 — 2026-08-29
- The read-only `houseplan-space-card` can now opt into the full plan's radial
+8
View File
@@ -8,6 +8,14 @@
## Не выпущено
- Glow в `houseplan-space-card` больше не пересобирает граф света и сцену стен
с нуля на каждый тик Home Assistant: статический путь получил кэш-механику
полной карты (кэш графа света, LRU-пул барьерных сцен — движущаяся дверь
переиспользует оба своих состояния, быстрый recut-путь кладки и кэш выреза
комнат). Заодно исправлен регресс кэша графа света, который полная карта
получила в beta.4
([#375](https://github.com/Matysh/houseplan-card/issues/375)).
## v1.69.0-beta.4 — 2026-08-29
- В read-only `houseplan-space-card` теперь можно включить радиальный Glow и