wlswo
Joined 1 year ago
Karma
1
Submissions
9
Member since
Feb 3
backend developer
View on Hacker NewsJoined 1 year ago
Mechanism: The Rust backend runs a high-priority background loop using AXUIElementCopyElementAtPosition to track the element under the cursor.
Optimization: To minimize overhead, the polling frequency is throttled and only ramps up when the overlay is active. We use CoreGraphics to first detect mouse movement delta before triggering the heavier Accessibility API calls.