[Bug] Excessive CPU usage when keyboard events are generated (macOS)
I've noticed that Superwhisper consumes around 30-40% CPU whenever keyboard events are generated, even when I'm not using Superwhisper.
This happens regardless of the foreground application or which key I press.
For example:
1. Open Activity Monitor and make it the active application.
2. Hold down the [Left Arrow] key. (Nothing visibly happens in this context.)
3. Superwhisper's CPU usage immediately rises to approximately 39%.
4. Release the key, and CPU usage returns to normal.
Rapidly pressing and releasing keys also causes similar CPU usage, so this does not appear to be limited to key-repeat events.
Some additional observations:
- Holding down regular keys (e.g. [Left Arrow] or letter keys) causes high CPU usage.
- Holding down [Shift] alone does not cause increased CPU usage.
- Rapidly pressing and releasing [Shift] does cause increased CPU usage, just like regular keys.
The behavior suggests that Superwhisper may be processing global keyboard events inefficiently, potentially performing unnecessary work for each event.
**Expected behavior:** Keyboard activity should not cause significant CPU usage when Superwhisper is idle.
Could you investigate the keyboard event monitoring/processing mechanism?
Environment:
- Mac: Mac mini M4
- macOS: 15.8.1 (old)
- Superwhisper: 3.1.0 (the latest)
Completed