mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-06 09:54:20 +01:00
render only 50 events for now until we have infinite scroll
This commit is contained in:
@@ -445,7 +445,7 @@ fn render_notes(ui: &mut egui::Ui, damus: &mut Damus) {
|
||||
#[cfg(feature = "profiling")]
|
||||
puffin::profile_function!();
|
||||
|
||||
for i in 0..damus.events.len() {
|
||||
for i in 0..damus.events.len().min(50) {
|
||||
if !damus.all_events.contains_key(&damus.events[i]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user