From: Perttu Ahola Date: Fri, 27 Jan 2012 12:12:12 +0000 (+0200) Subject: Tune block fetching to clients on server X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6f20a7378257d09a15cce675ed7ec8363e5f3b42;p=zefram%2Fminetest%2Fminetest_engine.git Tune block fetching to clients on server --- diff --git a/src/server.cpp b/src/server.cpp index 02734bbc..a0549d42 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -684,10 +684,10 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime, //if(server->m_emerge_queue.peerItemCount(peer_id) < 1) // Allow two blocks in queue per client //if(server->m_emerge_queue.peerItemCount(peer_id) < 2) - u32 max_emerge = 25; + u32 max_emerge = 5; // Make it more responsive when needing to generate stuff if(surely_not_found_on_disk) - max_emerge = 5; + max_emerge = 2; if(server->m_emerge_queue.peerItemCount(peer_id) < max_emerge) { //infostream<<"Adding block to emerge queue"<