summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2016-03-02 15:26:22 +0100
committerFlorian Jung <flo@windfisch.org>2016-03-02 15:26:22 +0100
commit04acf7e45d08878733b0d0a0d65f319f6d14d224 (patch)
tree7866f1cfe216fc2d9a5b7221688ee344f949b490 /main.py
parentdfb1e0d7e8b62dd72a5370b2aa8e2e07236189ce (diff)
ugly hack: only run gui+strategy on world updatesHEADmaster
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.py b/main.py
index c393385..d510ca1 100644
--- a/main.py
+++ b/main.py
@@ -151,6 +151,11 @@ try:
# main loop
while gui.running:
c.on_message()
+
+ if not sub.isNewFrame():
+ continue
+
+
if clock.tic() > 1./20:
print("NETWORK LAG")
probs.report("network lag")