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

ToucheggBackend: Use Priority.DEFAULT for sending events to the main thread #2284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leolost2605
Copy link
Member

Reason behind this (from #2258):

Ok I did some more investigation. Turns out that the reason is that in our toucheggbackend we receive events in a different thread and send them via idle to the main thread. So far so good. However we use Priority.DEFAULT_IDLE (we don't set anything) which might cause them to be stuck behind other more important events. This is the case when we do update_hover_widgets in the window clone because there they get animated via set_easing etc. which seemingly blocks lower priority events. This sometimes causes a delay which seems like a lag.

@leolost2605 leolost2605 requested a review from a team February 28, 2025 18:46
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