From 8166cb4bb22b479e2e09a608499c09a6e09c3b44 Mon Sep 17 00:00:00 2001 From: Uwe Kamper Date: Fri, 7 Mar 2014 22:37:16 +0100 Subject: 20 frames per second --- host/server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/host/server.py b/host/server.py index 0de0edc..511267c 100755 --- a/host/server.py +++ b/host/server.py @@ -168,9 +168,16 @@ t.start() if __name__ == '__main__': while True: + millis = int(round(time.time() * 1000)) + next_frame = userver.get_next_frame() if next_frame: sendframe(next_frame) + + while int(round(time.time() * 1000)) - millis < 50: + // do nothing + pass + def bla(): print('\033[2J'+'\n'*9) -- cgit