Skip to content

fix(TargetDevice): support immediate event writes#276

Closed
ShadowApex wants to merge 1 commit intomainfrom
shadowapex/immediate-target-write
Closed

fix(TargetDevice): support immediate event writes#276
ShadowApex wants to merge 1 commit intomainfrom
shadowapex/immediate-target-write

Conversation

@ShadowApex
Copy link
Copy Markdown
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
@pastaq
Copy link
Copy Markdown
Contributor

pastaq commented Apr 21, 2025

Aside from a rebase, what is this waiting on?

@ShadowApex
Copy link
Copy Markdown
Contributor Author

Closed in favor of #523

@ShadowApex ShadowApex closed this Feb 13, 2026
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