Yay generation uses async tasks

This commit is contained in:
Shoghi Cervantes
2015-03-26 18:21:39 +01:00
parent 668ddeeb13
commit 72c4c01542
18 changed files with 287 additions and 1124 deletions

View File

@ -14,7 +14,7 @@ settings:
#Sends anonymous statistics to create usage reports
send-usage: true
#Number of AsyncTask workers.
#Used for plugin asynchronous tasks, compression and web communication.
#Used for plugin asynchronous tasks, world generation, compression and web communication.
async-workers: 2
network:
@ -59,12 +59,9 @@ chunk-ticking:
clear-tick-list: false
chunk-generation:
#Whether to run the generation on a different thread or on the main thread
#Generation will be less glitchy on the main thread, but will lag more
#Using this with fast generators is recommended
use-async: true
#Max. amount of chunks to generate per tick, only for use-async: false
per-tick: 3
#Max. amount of chunks in the waiting queue ot be generated
#It's recommended to set this to 8 * settings.async-workers
queue-size: 16
#Max. amount of chunks to populate per tick
populations-per-tick: 1