perf(scene): make geometry edits incremental

Avoid full document, cache, and GPU rebuilds for entity deltas so add, delete, history, selection, and live polyline edits stay responsive on large drawings.
This commit is contained in:
Hakan Seven 2026-07-28 17:16:27 +03:00
commit 05b044f367
32 changed files with 1929 additions and 509 deletions

View file

@ -1020,6 +1020,10 @@ pub enum CmdResult {
entity: EntityType,
finish: bool,
},
/// End a command-owned live entity without replacing its already-current
/// document geometry. PLINE uses this for Enter/Escape after the latest
/// vertex was published, avoiding one redundant geometry epoch/GPU patch.
FinalizeLiveEntity(Handle),
/// Remove the live entity from the document but keep the command running —
/// PLINE's Undo popping back below the two vertices an entity needs.
RemoveLiveEntity(Handle),