-
Notifications
You must be signed in to change notification settings - Fork 826
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
Optimize Compositor by combining updates #493
Conversation
willmcgugan
commented
May 10, 2022
- Deferred rendering of widget updates. When a widget update is request, Textual will wait for 50ms for further updates.
- The compositor can now render multiple updates in a single render.
@@ -116,6 +136,43 @@ def __init__(self) -> None: | |||
# The points in each line where the line bisects the left and right edges of the widget | |||
self._cuts: list[list[int]] | None = None | |||
|
|||
@classmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adapted from @darrenburns 's region_groups.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These geometrical and time-based batching operations are far too clever for my little brain 🧠 (especially with the quite little knowledge I have of the Textual internals at the moment), so I can only comment on things that really don't matter, like typos in comments - sorry 😬