Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable unlimited size timelines without affecting performance #34

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

jb55
Copy link
Contributor

@jb55 jb55 commented Apr 28, 2024

This uses egui_virtual_list by @lucasmerlin. It is absolutely amazing.

jb55 added 2 commits April 26, 2024 11:11
absolutely insane performance increase

Fixes: #32
Suggested-by: @lucasmerlin
Signed-off-by: William Casarin <[email protected]>
@jb55 jb55 requested a review from kernelkind April 28, 2024 18:07
let list = app.timelines[timeline].list.clone();
list.lock()
.unwrap()
.ui_custom_layout(ui, len, |ui, start_index| {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this, closure for each note. Looks like VirtualList has some other useful methods as well for managing the state of the timeline. Seems like a perfect use-case for us

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticing a bit of glitchiness in a few cases, but I can look into those later.

@jb55 jb55 merged commit 28e2e7e into master Apr 29, 2024
8 checks passed
@jb55 jb55 deleted the virtual-list branch May 4, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants