Skip to content

Fix touch screen performance drops. #624

Open
Xnick417x wants to merge 2 commits into
WinNative-Emu:mainfrom
Xnick417x:touch-p
Open

Fix touch screen performance drops. #624
Xnick417x wants to merge 2 commits into
WinNative-Emu:mainfrom
Xnick417x:touch-p

Conversation

@Xnick417x

Copy link
Copy Markdown
Collaborator

Every touch sample was injected individually (240-720Hz on modern panels, doubled in trackpad mode by the extra XI2 raw event), flooding the X client socket and wineserver with motion events and delaying button input. The first sample of a burst now injects immediately; follow-on samples accumulate and flush once per Choreographer frame. Pending motion always flushes before button events so clicks land at the current position. Stylus, physical mouse and gamepad paths are unchanged.

Every touch sample was injected individually (240-720Hz on modern panels,
doubled in trackpad mode by the extra XI2 raw event), flooding the X client
socket and wineserver with motion events and delaying button input. The
first sample of a burst now injects immediately; follow-on samples
accumulate and flush once per Choreographer frame. Pending motion always
flushes before button events so clicks land at the current position.
Stylus, physical mouse and gamepad paths are unchanged.
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