From 3d20638fa8e295271ce38953ad1c657d9275bd99 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 13 Apr 2011 17:41:28 +0200 Subject: some speed improvments regarding protobuf --- pacman-c++/mainwidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pacman-c++/mainwidget.h') diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index cbc195e..a316d9e 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h @@ -56,6 +56,9 @@ private: QTcpSocket *m_socket; SceneHolder *m_scene; + + /* allocate as member variable as this packet is large and used often */ + ProtoBuf::MapUpdate m_updatepacket; }; #endif // MAINWIDGET_H -- cgit v1.2.3