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:
@@ -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, '-')
|
||||
|
Reference in New Issue
Block a user