Reuse canvas scenes across viewport and interaction metadata changes

This commit is contained in:
2026-11-09 21:46:58 +08:00
parent bb5bc9d8e9
commit 732c15f7bf
5 changed files with 69 additions and 5 deletions
+12
View File
@@ -563,3 +563,15 @@ still require a traversal, not a per-record ledger write-set update.
Asset display effects keep their previous ownership, abort/release and retry
rules. Durable-only completion/error/close is still read from the independent
durability source, so saving and synchronization remain distinct.
The host's view-owned scene cache retains one current projection and its document,
canvas, registry/catalog, selection, geometry preview, and connection target/path
inputs. Viewport, tool, modes, task receipts and other views' selections do not
rebuild that scene. Geometries are read from the captured session preview rather
than a newer live session; shared previews still appear in every view. An empty
node gesture and phase-only transitions do not require geometry projection.
Changing a document, selection, preview, canvas or renderer recomputes the scene;
this is not yet an element write-set driven traversal. Numeric geometry caches
remain derived Maps, with no history or durable task ownership. Engine/view
replacement discards this cache; `clear()` also drops the retained scene and
numeric caches. Query provenance is validated even on a cache hit.