Remove priority config

It's unlikely anyone needs to adjust this.
This commit is contained in:
embeddedt 2023-02-15 09:05:04 -05:00
parent cfbe21d72f
commit fa79480576
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ public class ModernFixConfig {
"jepb:jei_plugin"
), 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);
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
.comment("Rebuild blockstate cache asynchronously. Should work with most mods, but can be disabled.")
.define("rebuild_blockstate_cache_async", true);

View File

@ -16,7 +16,7 @@ public class UtilMixin {
private static ForkJoinPool.ForkJoinWorkerThreadFactory adjustPriorityOfThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory factory) {
return 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);
return thread;
};