Tune block fetching to clients on server

This commit is contained in:
Perttu Ahola 2012-01-27 14:12:12 +02:00
parent 8cb7badd63
commit 6f20a73782

@ -684,10 +684,10 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
//if(server->m_emerge_queue.peerItemCount(peer_id) < 1) //if(server->m_emerge_queue.peerItemCount(peer_id) < 1)
// Allow two blocks in queue per client // Allow two blocks in queue per client
//if(server->m_emerge_queue.peerItemCount(peer_id) < 2) //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 // Make it more responsive when needing to generate stuff
if(surely_not_found_on_disk) if(surely_not_found_on_disk)
max_emerge = 5; max_emerge = 2;
if(server->m_emerge_queue.peerItemCount(peer_id) < max_emerge) if(server->m_emerge_queue.peerItemCount(peer_id) < max_emerge)
{ {
//infostream<<"Adding block to emerge queue"<<std::endl; //infostream<<"Adding block to emerge queue"<<std::endl;