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

Update to tuirealm 2.0 #375

Merged
merged 5 commits into from
Oct 15, 2024
Merged

Update to tuirealm 2.0 #375

merged 5 commits into from
Oct 15, 2024

Conversation

hasezoey
Copy link
Contributor

This PR updates to tui-realm 2.0 (and related component crates).

tuirealm 1.9 had been known to be laggy (see #237) and we also had config migration trouble, but now we have config translation in-place without being dependent on tuirealm and they have also fixed all the problems that we had encountered:

  • Mouse capture enabled by default, but not actual events for it
  • no way to disable mouse capture
  • events were only polled once per event loop, while mouse capture events can generate ~20 events in 50ms

including related crates, still forcing "tui".

Note that tuirealm 1.9.2 is laggy and is not meant to be used directly,
this upgrade is only made to ease the tui -> ratatui and 1.x -> 2.x transition.
i have found that around ~20 is a good size when mouse-capture is on to still be responsive but not have too many events.
it is enabled by default and we dont make any use of mouse events, it just spams the events we dont need.
@tramhao tramhao merged commit 8aed705 into tramhao:master Oct 15, 2024
4 checks passed
@hasezoey hasezoey deleted the tuirealm2.0 branch October 15, 2024 09:12
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