-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calls to DirectInput EnumDevices sometimes very slow! #1
Comments
Perhaps the DLL should start a watchdog and timeout the This is a very difficult issue to debug as it only happens occasionally. |
min = 4900ns |
Upon further inspection, the delay doesn't occur within _EnumDevicesCallback MrT USB Handbreak: 16000ns EnumDevices: 40192473100ns |
Made an attempt to exit
|
Typically calls to
EnumerateDevices
which calls_DirectInput->EnumDevices
take about 85ms on average on my system.Sometimes, this is orders of magnitude larger taking in the range of minutes instead of milliseconds.
This is due to device drivers on the system, in my case a Corsair K70 Keyboard, hanging and not replying to Window's request to query attached devices.
The issue has already been discussed on StackOverflow: https://stackoverflow.com/q/10967795
The text was updated successfully, but these errors were encountered: