I've found that chatGPT is great for giving optimisation suggestions, and I've been able to make this multithreaded input system super responsive and efficient. You're able to get very accurate differences in key presses depending on the base clock