Skip to content
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

ENH: Only re-scan for available devices if it's been >15s since the last scan #19

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

TEParsons
Copy link
Collaborator

This makes it faster to call DeviceManager.getAvailableDevices with a list of Cedrus device classes, as each one won't call pyxid2.get_xid_devices (which can take a few hundred milliseconds to return) - the first one will call it and subsequent calls within a 15s period will use the values from that call.

@TEParsons TEParsons merged commit ec25a2a into psychopy:main Dec 4, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant