Tune block fetching to clients on server
authorPerttu Ahola <celeron55@gmail.com>
Fri, 27 Jan 2012 12:12:12 +0000 (14:12 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 27 Mar 2012 16:01:52 +0000 (19:01 +0300)
src/server.cpp

index 02734bbc072bba5753bbb91a68dd010146e35513..a0549d4241f9d0d0a3916ab0d9d741ee9276ac94 100644 (file)
@@ -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"<<std::endl;