You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UseAutoRestartHooks repeatedly reinstalls low-level mouse/keyboard hooks and can cause global mouse stutter #397
With UseAutoRestartHooks=1, Volume2 repeatedly unhooks and reinstalls its global low-level mouse and keyboard hooks about every 625 ms. On my machine this correlates with intermittent global mouse/input stutter, and Frida instrumentation captured slow WH_MOUSE_LL callback executions from Volume2 itself.
hook_registered: 64
hook_unregistered: 64
mouse hook registration interval: avg 625 ms, min 618 ms, max 631 ms
In a separate 45 second run after restarting Volume2:
hook_registered: 144
WH_MOUSE_LL: 72 registrations
WH_KEYBOARD_LL: 72 registrations
mouse hook registration interval: avg 625.2 ms, min 603 ms, max 662 ms
In a 120 second Frida-only run, the WH_MOUSE_LL callback had slow calls:
797 ms
174 ms
111 ms
The intermittent mouse stutter happens while overall CPU, memory, DPC and interrupt usage remain low. A separate low-level mouse hook probe measured WM_MOUSEMOVE gaps in the 100-300 ms range during continuous mouse movement.
Why this looks problematic
I understand that "auto restart hooks" may be intended as a compatibility watchdog, but reinstalling global low-level hooks about every 0.6 seconds seems very aggressive. Since low-level mouse hooks run synchronously in the global input path, any slow callback or hook-chain interaction can stall mouse input for all applications.
Would it be possible to make UseAutoRestartHooks less aggressive, event-driven, or disabled by default? At minimum, it would help if the hook restart interval were much longer or if hooks were only restarted after an actual failure is detected.
Related note
I found issue #155, but that report used UseAutoRestartHooks=0, so this appears to be a different problem path.
Activity
irzyxa commentedon May 10, 2026
You can disable it from UI. Go to Option - System tab- Restart the hooks every 500 ms and also you can increase this value and leave option enabled.