Skip to content

Conversation

@Troyhy
Copy link
Owner

@Troyhy Troyhy commented Sep 17, 2024

I made tests with enabling synchronous update mode for screen. This can be turned on with Screen.sync_update = True per Screen subclass.

This feature hooks into Widget class draw, which is changed into property and setting draw=True will also trigget screen refresh with Screen.rfsh_start.set()
Currently code includes test printouts and refreshing is tested only with Button class.

Do you think this would be good way to save resources and take screen refresh to control?

Introduce the `sync_update` attribute to the Screen class to control synchronous screen updates. Changed `draw` into a  property to ensure the refresh state is managed correctly when the draw value changes. Included timing measurements for refresh operations and conditional refresh triggering.
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