forked from Mirrorlandia_minetest/minetest
Make map generator more responsive
This commit is contained in:
parent
651657edfd
commit
fdf6eecd59
@ -1534,7 +1534,7 @@ void make_block(BlockMakeData *data)
|
|||||||
// Maximum amount of ground above the bottom of the central block
|
// Maximum amount of ground above the bottom of the central block
|
||||||
s16 maximum_ground_depth = maximum_groundlevel - node_min.Y;
|
s16 maximum_ground_depth = maximum_groundlevel - node_min.Y;
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
/*
|
/*
|
||||||
Special case for high air or water: Just fill with air and water.
|
Special case for high air or water: Just fill with air and water.
|
||||||
*/
|
*/
|
||||||
|
@ -688,7 +688,11 @@ 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)
|
||||||
if(server->m_emerge_queue.peerItemCount(peer_id) < 25)
|
s32 max_emerge = 25;
|
||||||
|
// Make it more responsive when needing to generate stuff
|
||||||
|
if(surely_not_found_on_disk)
|
||||||
|
max_emerge = 5;
|
||||||
|
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