aboutsummaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rwxr-xr-xhost/server.py7
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)