MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / updateThreadPriorities

Method updateThreadPriorities

src/main/java/net/minecraft/src/Config.java:356–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354 }
355
356 public static void updateThreadPriorities() {
357 updateAvailableProcessors();
358 int i = 8;
359
360 if (isSingleProcessor()) {
361 if (isSmoothWorld()) {
362 minecraftThread.setPriority(10);
363 setThreadPriority("Server thread", 1);
364 } else {
365 minecraftThread.setPriority(5);
366 setThreadPriority("Server thread", 5);
367 }
368 } else {
369 minecraftThread.setPriority(10);
370 setThreadPriority("Server thread", 5);
371 }
372 }
373
374 private static void setThreadPriority(String p_setThreadPriority_0_, int p_setThreadPriority_1_) {
375 try {

Callers 3

frameInitMethod · 0.95
setOptionValueOFMethod · 0.95
initDisplayMethod · 0.95

Calls 5

isSingleProcessorMethod · 0.95
isSmoothWorldMethod · 0.95
setThreadPriorityMethod · 0.95
setPriorityMethod · 0.80

Tested by

no test coverage detected