Wait less busily

This resolution is still fine for perfect inputs as it's a much higher frequency than the polling rate of the game
This commit is contained in:
2025-01-30 14:47:31 -06:00
parent 38915249af
commit 86641f9959

@@ -116,6 +116,7 @@ def main():
print(ghoststring, end="\r", flush=True)
for i, key in enumerate(sequence):
while time.perf_counter() < synctime + lastbeat:
time.sleep(0.01)
pass
lastbeat += beat_interval
button = keymapping.get(key, '-')