Ryujinx-SDL/src
Steven Noonan 4535d65491 HIDAPI_UpdateDiscovery: only treat "add" and "remove" events as relevant
I have a buggy system which reports a udev "change" event for an empty
USB-C port every 0.14 seconds, which causes annoying frame hitches
because SDL decides that means it needs to do a libusb hid_enumerate,
which is slow (~25ms!) because of the get_usb_string() calls in there.

We only need to re-enumerate if we've seen a device added or removed, so
let's filter out the change event first.

Signed-off-by: Steven Noonan <steven@valvesoftware.com>
Signed-off-by: Sam Lantinga <slouken@libsdl.org>
2021-04-22 16:40:16 -07:00
..
atomic Use specific acquire and release variants of InterlockedExchange on ARM 2021-01-03 12:13:40 -06:00
audio AAudio: add bootstrap in SDL_audio.c 2021-04-15 21:00:00 +02:00
core SDL_udev: check for NULL return value from udev_device_get_action 2021-04-22 16:39:22 -07:00
cpuinfo Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
dynapi Add SDL_SetWindowAlwaysOnTop() 2021-04-20 08:45:28 -07:00
events Fix invalid UTF-8 handling of extra bytes 2021-03-16 18:51:28 -07:00
file Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem filesystem: Better OpenBSD support for SDL_GetBasePath(). 2021-04-19 23:32:45 -04:00
haptic Updated copyright for 2021 2021-01-02 10:25:38 -08:00
hidapi Added support for the Amazon Game Controller to the HIDAPI driver 2021-03-26 11:57:19 -07:00
joystick HIDAPI_UpdateDiscovery: only treat "add" and "remove" events as relevant 2021-04-22 16:40:16 -07:00
libm Updated copyright for 2021 2021-01-02 10:25:38 -08:00
loadso Updated copyright for 2021 2021-01-02 10:25:38 -08:00
locale consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() 2021-01-04 01:23:50 +03:00
main SDL_windows_main.c: use new WIN_StringToUTF8W macro 2021-01-04 10:20:10 +03:00
misc Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
power Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
render Fixed bug 3829 - Don't FOURCC format for target textures 2021-04-13 14:42:38 +02:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
stdlib fix invalid out of bounds UTF8 handling 2021-03-16 18:51:28 -07:00
test Fix flags check in test code 2021-02-15 08:43:53 -08:00
thread tls: wrap reference to a mutex into an #if !SDL_THREADS_DISABLED test. 2021-04-02 14:36:53 -04:00
timer Formatting 2021-03-08 09:07:12 -08:00
video eglChooseConfig: only add EGL_DEPTH_SIZE if non 0 2021-04-22 21:40:57 +02:00
SDL_assert_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_internal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_log.c Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
SDL.c linux: (de)initialize d-bus at init and quit. 2021-04-02 14:35:11 -04:00