forked from 1b-agent/opencadstudio-upstream
perf: keep heavy work off UI thread
This commit is contained in:
1 parent
12bf126646
commit
deec48ad99
75 files changed
+11702
-518
No files matched your search
@@ -391,7 +391,10 @@ impl Scene {
|
||||
// Report the exact erased handles so derived caches drop just those and
|
||||
// the resident set removes only their wires (bump_entities drops them
|
||||
// from the tessellation memos too).
|
||||
self.bump_entities(&erased);
|
||||
if !erased.is_empty() {
|
||||
self.invalidate_dependency_index();
|
||||
self.bump_entities(&erased);
|
||||
}
|
||||
}
|
||||
|
||||
/// Restore erased Arc-backed entities without re-linking their still-present
|
||||
@@ -414,6 +417,7 @@ impl Scene {
|
||||
}
|
||||
}
|
||||
if !changes.is_empty() {
|
||||
self.invalidate_dependency_index();
|
||||
self.bump_entities(&changes);
|
||||
}
|
||||
restored
|
||||
|
||||
Reference in new issue
Block a user