gnome-shell 3.30.2 freezes for a while when >=7 keys pressed repeatedly using a N-Key Rollover keyboard.
Description
I am using a Logitech g610 gaming keyboard, and I play rhythm games such as Lunatic Rave 2 using wine, which may require up to 8-16 notes pressed at once. I discovered when I have to press 7 or more keys together (very difficult charts!), the gnome-shell freezes for about 0.3s (the input is fine however), which can already make me fail immediately in a song.
This was not a issue for my old keyboard, Ducky Zero, which does not attempt to send all key information to the computer at once but at a very very small interval.
The freezing issue is universal in gnome-shell, for example if I try to press zsxdcfv for 5 times under 1 second, the gnome-shell would still freeze for 0.7-0.8s. The faster the press, the longer the freeze.
I have tested KDE and LXDE, there was totally no freezing issue no matter how fast and how many keys I pressed at once.
When I have to press 7 or more keys together, wine terminal would show something like fixme:keyboard:X11DRV_ActivateKeyboardLayout
, which at the moment gnome-shell would freeze and KDE/LXDE would do fine.
Expected result
When >=7 keys pressed repeatedly using a N-Key Rollover keyboard, the gnome-shell would not freeze and keep rendering.
Actual result
The gnome-shell would freeze, the faster I press >=7 keys repeatedly, the longer the freeze.
Steps to reproduce
- Get a real N-Key Rollover keyboard, such as Logitech g610
- In https://testufo.com/ press >=7 keys combination such as "zsxdcfv" together as fast as possible.
- Now the UFOs would stop flying/gnome-shell would freeze for some time depending how fast you pressed the keys, but mouse cursor can always move.
Tested environments
Workstation
- CPU: Dual Xeon E5 2696v3
- GPU: GTX1080 with NVIDIA
- OS: Antergos
- DE: GNOME 3.30.2 with no extensions and themes
Laptop
- Model: DELL XPS13 9360
- CPU: i7 8550u
- GPU: UHD620
- OS: Antergos
- DE: GNOME 3.30.2 with no extensions and themes