Now the gamepad extension only iterates over each input device when initialized or when there's an error while reading the inotify events. Any new input device is queried whether it's a gamepad and added if it is one every frame, so we still have plug-n-play equivalent to Windows and Emscripten.
On my system this takes the gamepad example from 20-30 FPS to 1000-1500 FPS without any optimization. With -O3, it goes from 40-50 FPS to 2000-3000 FPS.
Now the gamepad extension only iterates over each input device when initialized or when there's an error while reading the inotify events. Any new input device is queried whether it's a gamepad and added if it is one every frame, so we still have plug-n-play equivalent to Windows and Emscripten.
On my system this takes the gamepad example from 20-30 FPS to 1000-1500 FPS without any optimization. With -O3, it goes from 40-50 FPS to 2000-3000 FPS.