X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=new2%2Fplomrogue%2Fio.py;h=d740f8c42972879e9f911d21ba5edf5e6d9c1e84;hb=2f73d4246c98d4b25d18d0faa987d9ed165a48ae;hp=12e74500eff1b7582d2a6a81601696e8076d4833;hpb=c4a5df081b1b4a4105039a0f61854a5ff164d0f8;p=plomrogue2-experiments diff --git a/new2/plomrogue/io.py b/new2/plomrogue/io.py index 12e7450..d740f8c 100644 --- a/new2/plomrogue/io.py +++ b/new2/plomrogue/io.py @@ -14,7 +14,7 @@ class GameIO(): """Handle commands coming through queue q, run game, send results back.""" while True: try: - command, connection_id = q.get(timeout=1) + command, connection_id = q.get(timeout=0.001) self.handle_input(connection_id, command) except queue.Empty: self.game.run_tick()