Cache connection paint by immutable geometry inputs and measured anchors
This commit is contained in:
@@ -431,3 +431,14 @@ node paint bounds. Unrelated titles do not invalidate a protocol that declares
|
||||
only another data field. Omitting dependencies conservatively compares all data;
|
||||
components must declare every data field their geometry reads. The scene still
|
||||
gets scanned, and connection paint currently has its separate computation path.
|
||||
|
||||
`createConnectionPaintIndex` retains curve hulls and grid membership across view
|
||||
updates. Its signature includes the connection record/projection, numeric endpoint
|
||||
anchors, transform and endpoint rectangles. Equal ACKs and unrelated node titles
|
||||
do not call curve/stroke geometry again. Cached segment counts still consume the
|
||||
query budget. Invalid geometry stays unknown and is retried; removed edges release
|
||||
entries. Registry/project/canvas changes or `clear()` reset the cache. Hosts whose
|
||||
geometry services capture changing external configuration must pass a changed
|
||||
`geometryRevision` to `sync`. CanvasView now uses this index with native handles.
|
||||
The edge list/signature comparison still gets scanned; this is not full dirty-region
|
||||
drawing or selective offscreen mounting.
|
||||
|
||||
Reference in New Issue
Block a user