Patch fixed-layout scene projections from coalesced element changes

This commit is contained in:
2026-11-09 21:58:10 +08:00
parent 732c15f7bf
commit ed85546674
7 changed files with 161 additions and 29 deletions
+9 -2
View File
@@ -570,8 +570,15 @@ 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
Field publications, selection changes and ordinary node/edge previews patch the
changed projections through view-owned ID-to-array-position Maps. Continuous
publication changes are coalesced in a dirty Set (up to 16384 IDs); missing change
chains and canonical replacements compare document records and order first.
Equivalent replacement records retain projected objects and transforms. Entry
geometry/presentation, topology, membership/lifecycle, redirected endpoints and
unsupported scenes retain full traversal. Canvas/renderer replacement also rebuilds.
Array copying and existing paint/measurement/retention passes can still be linear;
this is not a claim that the entire view is O(changed IDs). 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.