cguckes / ksp-chroma

Allows Kerbal Space Program to modify the lighting on your Razer Black Widow Chroma Keyboard.
GNU General Public License v3.0
18 stars 10 forks source link

Only send color scheme to hardware if it has changed. #23

Closed gdhaworth closed 2 years ago

gdhaworth commented 4 years ago

This made my game boot super slowly and after digging into the code a bit it looks like the updates to the hardware take at least 60ms. This simply compares the last color scheme sent to the update to see if anything has changed before sending it to the hardware. I have almost literally zero experience with C# so feel free to critique it.

zer0Kerbal commented 2 years ago

moved to zer0Kerbal/KSPChromaControl; merged in.