M13.14: lazy project open, non-blocking UI with large projects, bench --ops
- footage.check: background footage check after File > Open (Progress panel), not an undo step - timeline: track-matte / parent menus built only while open (was O(n^2) per frame); expression-row lookup per layer; panels hold Arc<Comp> snapshots instead of deep clones - Project panel: virtualised vertical scrolling, selection reveal, thumbnails rendered off the UI thread - effectcraft-cli bench --ops (engine::perf + ui-egui::bench) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
41f672eef5
commit
8a4a2bfc52
@@ -987,6 +987,14 @@ impl Project {
|
||||
pub fn comp(&self, id: ItemId) -> Option<&Comp> {
|
||||
self.items.get(&id)?.as_comp()
|
||||
}
|
||||
/// A shared handle on a comp: a snapshot that costs a reference count, not a deep copy of
|
||||
/// its layers (frontends hold one across a frame instead of cloning the comp).
|
||||
pub fn comp_arc(&self, id: ItemId) -> Option<Arc<Comp>> {
|
||||
match &self.items.get(&id)?.kind {
|
||||
ItemKind::Comp(c) => Some(c.clone()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
/// Mutable comp (copy-on-write).
|
||||
pub fn comp_mut(&mut self, id: ItemId) -> Option<&mut Comp> {
|
||||
match &mut self.items.get_mut(&id)?.kind {
|
||||
|
||||
Reference in New Issue
Block a user