Don't accept values smaller than parallel threads for target size

- Smaller than parallel threads implies any time any thread tries to do anything, another thread must cancel its work, and the chunk is submitted.
This commit is contained in:
dordsor21 2021-09-14 14:30:32 +01:00
parent daa418a287
commit 09d2996451
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 3 additions and 1 deletions

View File

@ -253,6 +253,7 @@ public class Fawe {
} catch (Throwable e) {
LOGGER.error("Failed to load config.", e);
}
Settings.IMP.QUEUE.TARGET_SIZE = Math.max(Settings.IMP.QUEUE.TARGET_SIZE, Settings.IMP.QUEUE.PARALLEL_THREADS);
}

View File

@ -293,7 +293,8 @@ public class Settings extends Config {
" - FAWE will start placing before all calculations are finished",
" - A larger value will use slightly less CPU time",
" - A smaller value will reduce memory usage",
" - A value too small may break some operations (deform?)"
" - A value too small may break some operations (deform?)",
" - Values smaller than the configurated parallel threads are not accepted"
})
public int TARGET_SIZE = 64;