• Show log

    Commit

  • Hash : 4535d654
    Author : Steven Noonan
    Date : 2021-04-22T14:35:59

    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>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags