Node optimization

This commit is contained in:
momo5502 2016-03-06 16:42:58 +01:00
parent 9a5bff6867
commit 020488e58f
2 changed files with 3 additions and 1 deletions

View File

@ -372,7 +372,9 @@ namespace Components
if (!entry) return;
}
#ifdef DEBUG
Logger::Print("Received registration request from %s\n", address.GetString());
#endif
Proto::Node::Packet packet;
if (!packet.ParseFromString(data)) return;

View File

@ -2,7 +2,7 @@
#define NODE_QUERY_TIMEOUT 1000 * 30 * 1 // Invalidate nodes after 30 seconds without query response
#define NODE_INVALID_DELETE 1000 * 60 * 10 // Delete invalidated nodes after 10 minutes
#define NODE_FRAME_QUERY_LIMIT 1 // Limit of nodes to be queried per frame
#define NODE_FRAME_LOCK 80 // Limit of max frames per second
#define NODE_FRAME_LOCK 30 // Limit of max frames per second
#define NODE_PACKET_LIMIT 111 // Send 111 nodes per synchronization packet
#define NODE_STORE_INTERVAL 1000 * 60* 1 // Store nodes every minute
#define SESSION_TIMEOUT 1000 * 10 // 10 seconds session timeout