diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-01-27 14:12:12 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-27 19:01:52 +0300 |
commit | 6f20a7378257d09a15cce675ed7ec8363e5f3b42 (patch) | |
tree | 003a074a45160456d977dc19ebb945666a4cb113 | |
parent | 8cb7badd632200e06004577f351b9c845c174e29 (diff) | |
download | minetest-6f20a7378257d09a15cce675ed7ec8363e5f3b42.tar.gz minetest-6f20a7378257d09a15cce675ed7ec8363e5f3b42.tar.bz2 minetest-6f20a7378257d09a15cce675ed7ec8363e5f3b42.zip |
Tune block fetching to clients on server
-rw-r--r-- | src/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp index 02734bbc0..a0549d424 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"<<std::endl; |