From ed181c1dcd0392f86711d5f9d56c046fcc6a3c9f Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Thu, 19 Jun 2025 22:43:27 +1000 Subject: [PATCH] changed priority --- .../java/me/cortex/voxy/common/thread/ServiceThreadPool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java b/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java index d8eb8107..cc96ee5a 100644 --- a/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java +++ b/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java @@ -29,7 +29,7 @@ public class ServiceThreadPool { private final ThreadGroup threadGroup; public ServiceThreadPool(int threadCount) { - this(threadCount, 1);//Maybe change to 3 + this(threadCount, 3);//Maybe change to 3 } public ServiceThreadPool(int threadCount, int priority) { @@ -47,7 +47,7 @@ public class ServiceThreadPool { CpuLayout.setThreadAffinity(CpuLayout.CORES[2 + (threadId % (CpuLayout.CORES.length - 2))]); } if (threadId != 0) { - ThreadUtils.SetSelfThreadPriorityWin32(ThreadUtils.WIN32_THREAD_PRIORITY_LOWEST); + ThreadUtils.SetSelfThreadPriorityWin32(-1); //ThreadUtils.SetSelfThreadPriorityWin32(ThreadUtils.WIN32_THREAD_MODE_BACKGROUND_BEGIN); } this.worker(threadId);