commit 23c93e1028ca1affd0b52f5fc7588ffdaf26af1f
parent a21a3c079ced4fe17a98a93f2c01db0abb6cf524
Author: William Casarin <jb55@jb55.com>
Date: Sun, 23 Mar 2025 11:27:24 -0700
perf: reduce timeline overscan
I think I did this for image preloading, but it renders more things than
we need.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/notedeck_columns/src/timeline/mod.rs b/crates/notedeck_columns/src/timeline/mod.rs
@@ -119,7 +119,7 @@ impl TimelineTab {
let selection = 0i32;
let mut list = VirtualList::new();
list.hide_on_resize(None);
- list.over_scan(1000.0);
+ list.over_scan(50.0);
let list = Rc::new(RefCell::new(list));
let notes: Vec<NoteRef> = Vec::with_capacity(cap);