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 committed 2026-07-28 17:16:27 +03:00
1 parent 73b8dbe9d4
commit 05b044f367
32 files changed
+1936 -516

No files matched your search

+4
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),