mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Tune block fetching to clients on server
This commit is contained in:
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user