summaryrefslogtreecommitdiff
path: root/server2.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-03-18 18:59:12 +0100
committerFlorian Jung <flo@windfisch.org>2015-03-18 18:59:12 +0100
commit0adc1c41ba41cdc60084008a3d5e47cb5c94326c (patch)
tree65202eee807648abf44b5fa4a6b95403d123aa1a /server2.py
parent32db7db8d99425c1b7391e56eb1fa362c9c80269 (diff)
performance++: do not always render unused parts of the canvas
Diffstat (limited to 'server2.py')
-rw-r--r--server2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server2.py b/server2.py
index b2efe5f..56cadc1 100644
--- a/server2.py
+++ b/server2.py
@@ -50,8 +50,8 @@ while True:
batt = 100.0
framestr = frame.tostring()
- cv2.imshow("server", frame)
- cv2.waitKey(1)
+ #cv2.imshow("server", frame)
+ #cv2.waitKey(1)
lenframestr=len(framestr)
connection.sendall(struct.pack(">i",lenframestr)+framestr+struct.pack("@dddd", phi, theta, psi, batt));
elif data[0:3] == "fly" and data[-1]=="\n":