Skip to content

Commit

Permalink
Change base priority to 24/31
Browse files Browse the repository at this point in the history
  • Loading branch information
Kira-NT committed Nov 28, 2024
1 parent 05b5d72 commit afb9dbe
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ public static boolean setWindowStyle(Window window, long hWndInsertAfter, long s
}

public static void setHighPriority() {
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
Kernel32.INSTANCE.SetPriorityClass(Kernel32.INSTANCE.GetCurrentProcess(), Kernel32.HIGH_PRIORITY_CLASS);
Kernel32.INSTANCE.SetThreadPriority(Kernel32.INSTANCE.GetCurrentThread(), Kernel32.THREAD_PRIORITY_HIGHEST);
Kernel32.INSTANCE.SetPriorityClass(Kernel32.INSTANCE.GetCurrentProcess(), Kernel32.REALTIME_PRIORITY_CLASS);
Kernel32.INSTANCE.SetThreadPriority(Kernel32.INSTANCE.GetCurrentThread(), Kernel32.THREAD_PRIORITY_NORMAL);
}

private WindowsUtil() { }
Expand Down

0 comments on commit afb9dbe

Please sign in to comment.