Page 1 of 1

Speeding up mapgen?

PostPosted: Mon Jun 09, 2014 19:27
by Tedypig
Is there a way to (without buying a faster machine)? I keep running into non-loaded chunks, and it's sort of annoying. If there's no way to fix it, then OK, but if there is, please tell me.

Re: Speeding up mapgen?

PostPosted: Mon Jun 09, 2014 20:37
by Jordach
Tedypig wrote:Is there a way to (without buying a faster machine)? I keep running into non-loaded chunks, and it's sort of annoying. If there's no way to fix it, then OK, but if there is, please tell me.

My original fix was to start a localhost server and then connect to that with a client, as two threads are better than one.

Re: Speeding up mapgen?

PostPosted: Mon Jun 09, 2014 21:55
by PilzAdam
Jordach wrote:
Tedypig wrote:Is there a way to (without buying a faster machine)? I keep running into non-loaded chunks, and it's sort of annoying. If there's no way to fix it, then OK, but if there is, please tell me.

My original fix was to start a localhost server and then connect to that with a client, as two threads are better than one.

Eh, what? Server and client run in different threads in singleplayer, see http://dev.minetest.net/Engine_structure#Threads

Re: Speeding up mapgen?

PostPosted: Wed Jun 11, 2014 16:02
by Hiradur
I consider my computer to be powerful (i5 4570) but I often experience slow chunk loading, too. Guess it is an optimization problem.

Re: Speeding up mapgen?

PostPosted: Thu Jun 12, 2014 02:40
by GingerHunter797
Hiradur wrote:I consider my computer to be powerful (i5 4570) but I often experience slow chunk loading, too. Guess it is an optimization problem.


I have a shitty AMD dual core 1.0 GHz processor and have never once experienced slow chunk loading. Well, except for that one time when I was using Windows 7...

Re: Speeding up mapgen?

PostPosted: Thu Jun 12, 2014 13:25
by Hiradur
I experienced it on all systems I tried Minetest on, both Linux and Windows. Minecraft also suffers from this problem although not as frequently.

Re: Speeding up mapgen?

PostPosted: Thu Jun 12, 2014 15:13
by TenPlus1
Add these lines to your minetest.conf file and that should help server speed when loading the map:

disable_fire = true
pause_fps_max = 15
disable_anticheat = true
max_simultaneous_block_sends_per_client = 10
max_simultaneous_block_sends_server_total = 200
active_block_range = 1
dedicated_server_step = 0.1
sqlite_synchronous = 0
default_privs = interact, shout
max_clearobjects_extra_loaded_blocks = 16384
max_block_send_distance = 2
max_block_generate_distance = 3
time_send_interval = 3500
viewing_range_nodes_max = 100
client_unload_unused_data_timeout = 300
server_unload_unused_data_timeout = 28
server_map_save_interval = 90
cache_block_before_spawn = true

Re: Speeding up mapgen?

PostPosted: Fri Jun 13, 2014 11:50
by Krock
Reasons for slow mapgen:
- "max_block_send_distance" too low and you move too fast
- slow CPU + GPU
- slow SSD/SD-card
- a very CPU intensive lua mapgen (where generatin times can end up at > 1 minute per map block)

How to fix:
- increase "max_block_send_distance" in minetest.conf
- nothing
- use HDD
- use mgv6 (maybe with mg_flags = flat)

Re: Speeding up mapgen?

PostPosted: Fri Jun 13, 2014 16:37
by proller
Or use freeminer

Re: Speeding up mapgen?

PostPosted: Fri Jun 13, 2014 16:42
by sfan5
TenPlus1 wrote:Add these lines to your minetest.conf file and that should help server speed when loading the map:

disable_fire = true
pause_fps_max = 15
disable_anticheat = true
max_simultaneous_block_sends_per_client = 10
max_simultaneous_block_sends_server_total = 200
active_block_range = 1
dedicated_server_step = 0.1
sqlite_synchronous = 0
default_privs = interact, shout
max_clearobjects_extra_loaded_blocks = 16384
max_block_send_distance = 2
max_block_generate_distance = 3
time_send_interval = 3500
viewing_range_nodes_max = 100
client_unload_unused_data_timeout = 300
server_unload_unused_data_timeout = 28
server_map_save_interval = 90
cache_block_before_spawn = true

I corrected the chart:
does it help? | setting
no | disable_fire = true
no | pause_fps_max = 15
no | disable_anticheat = true
maybe | max_simultaneous_block_sends_per_client = 10
maybe | max_simultaneous_block_sends_server_total = 200
no | active_block_range = 1
no | dedicated_server_step = 0.1
maybe | sqlite_synchronous = 0
no | default_privs = interact, shout
no | max_clearobjects_extra_loaded_blocks = 16384
maybe | max_block_send_distance = 2
maybe | max_block_generate_distance = 3
maybe | time_send_interval = 3500
no | viewing_range_nodes_max = 100
no | client_unload_unused_data_timeout = 300
no | server_unload_unused_data_timeout = 28
no | server_map_save_interval = 90
maybe | cache_block_before_spawn = true