diff options
author | Uwe Kamper <me@uwekamper.de> | 2014-03-07 22:37:16 +0100 |
---|---|---|
committer | Uwe Kamper <me@uwekamper.de> | 2014-03-07 22:37:16 +0100 |
commit | 8166cb4bb22b479e2e09a608499c09a6e09c3b44 (patch) | |
tree | 90e02498a178cd1861c6d278d7dbfbea1928f191 | |
parent | b503b8fffc43dad16a64ec34799c28757bd127d2 (diff) | |
download | matelight-8166cb4bb22b479e2e09a608499c09a6e09c3b44.tar.gz matelight-8166cb4bb22b479e2e09a608499c09a6e09c3b44.tar.bz2 matelight-8166cb4bb22b479e2e09a608499c09a6e09c3b44.zip |
20 frames per second
-rwxr-xr-x | host/server.py | 7 |
1 files changed, 7 insertions, 0 deletions
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) |