Remove priority config
It's unlikely anyone needs to adjust this.
This commit is contained in:
parent
cfbe21d72f
commit
fa79480576
|
|
@ -39,7 +39,6 @@ public class ModernFixConfig {
|
||||||
"jepb:jei_plugin"
|
"jepb:jei_plugin"
|
||||||
), locationValidator);
|
), locationValidator);
|
||||||
INTEGRATED_SERVER_PRIORITY = COMMON_BUILDER.comment("Thread priority to use for the integrated server. By default this is one less than the client thread, to help prevent the server from lowering FPS.").defineInRange("integratedServerPriority", 4, 1, 10);
|
INTEGRATED_SERVER_PRIORITY = COMMON_BUILDER.comment("Thread priority to use for the integrated server. By default this is one less than the client thread, to help prevent the server from lowering FPS.").defineInRange("integratedServerPriority", 4, 1, 10);
|
||||||
BACKGROUND_WORKER_PRIORITY = COMMON_BUILDER.comment("Priority to use for the background workers that complete various tasks. By default this is one less than the client thread.").defineInRange("backgroundWorkerPriority", 4, 1, 10);
|
|
||||||
REBUILD_BLOCKSTATES_ASYNC = COMMON_BUILDER
|
REBUILD_BLOCKSTATES_ASYNC = COMMON_BUILDER
|
||||||
.comment("Rebuild blockstate cache asynchronously. Should work with most mods, but can be disabled.")
|
.comment("Rebuild blockstate cache asynchronously. Should work with most mods, but can be disabled.")
|
||||||
.define("rebuild_blockstate_cache_async", true);
|
.define("rebuild_blockstate_cache_async", true);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ public class UtilMixin {
|
||||||
private static ForkJoinPool.ForkJoinWorkerThreadFactory adjustPriorityOfThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory factory) {
|
private static ForkJoinPool.ForkJoinWorkerThreadFactory adjustPriorityOfThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory factory) {
|
||||||
return pool -> {
|
return pool -> {
|
||||||
ForkJoinWorkerThread thread = factory.newThread(pool);
|
ForkJoinWorkerThread thread = factory.newThread(pool);
|
||||||
int pri = ModernFixConfig.BACKGROUND_WORKER_PRIORITY.get();
|
int pri = 4; // used to be configurable, but this causes classloading issues
|
||||||
thread.setPriority(pri);
|
thread.setPriority(pri);
|
||||||
return thread;
|
return thread;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user