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

fix(TargetDevice): support immediate event writes #276

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

Conversation

ShadowApex
Copy link
Contributor

This change adds immediate event writes to all target devices, significantly reducing input latency. In the previous implementation, input events are queued in a channel and only processed after the defined polling interval (typically between 1-8ms). This could cause input latency up to the duration of the polling interval.

This implementation removes that potential latency by splitting up the reading/writing into two separate tasks. The writer task will process writes as they come in and dispatch them to the target device implementation immediately instead of waiting for the next polling interval.

@ShadowApex ShadowApex requested a review from pastaq February 5, 2025 22:53
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