Artemis-RGB / Artemis

Provides advanced unified lighting across many different brands RGB peripherals
https://artemis-rgb.com
Other
931 stars 67 forks source link

Reduce memory allocation in Windows Input Provider #808

Closed diogotr7 closed 10 months ago

diogotr7 commented 10 months ago

RawInputData.Device.Path is sneaky, but it allocates significant memory when executed like we are doing it. To get identifiers every frame we should cache it somehow. I don't know if this way is perfect, but it's an improvement, accepting feedback on this and also about the removal of OnIdentifierReceived.