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.
Dieser Commit ist enthalten in:
dordsor21 2021-09-14 14:30:32 +01:00
Ursprung daa418a287
Commit 09d2996451
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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);
}

Datei anzeigen

@ -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;