Skip to content

Conversation

@willbicks
Copy link

Thanks for this neat demo, it was useful as I'm evaluating approaches to building egui apps! I ended up making a few tweaks as I was getting it running, and wanted to contribute them back for others who may also be evaluating this approach.

First, this PR updates egui and related dependencies to latest versions to represent current APIs, and updates time to fix compilation on rust >= 1.80.0.

It also adds an app-wide egui_commonmark cache instead of replacing the cache on redraws, which greatly improves scrolling performance of posts, especially with multiple code blocks (below video shows the 'before' on the left, 'after' on the right).

2025-01-23.17-20-33.mp4

Finally, I took a stab at fixing #6, based on the approach used in https://github.com/parasyte/egui-tokio-example. I am definetly new to Tokio so I'm not 100% confident on this approach, but I am more than open to comments!

…test

Update to time crate fixes compilation on Rust >= 1.80.0.
Improves scrolling of posts, especially with code blocks.
Eliminates nested event loops, fixes ChrisRega#6.
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.

1 participant