So I'm trying to make a script that rapidly fires off a number of commands while a key is pressed. So far, it works seemingly fine(?), but I noticed the script randomly slows down as if lagging sometimes. Initially I thought this was due to the game lagging, but my friend who used his keyboard driver software to simulate the EXACT same keypresses and delays is able to pull it off more times than me (ie in my testing, I've gotten the game to fire off the specific combo 260 times in a minute, while he has managed 360 times. For reference, the supposed fastest you can fire this combo in the game known so fast is ~444 times, which should mean that the game is able to pick up inputs at least that fast).
I've tried to speed up the script with stuff from here, but it hasn't seemed to change anything. I've tried various sleep values and command orders, but I haven't been able to break the 260/min mark. Any help is appreciated.