forked from 1b-agent/opencadstudio-upstream
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:
1 parent
73b8dbe9d4
commit
05b044f367
32 files changed
+1936
-516
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user