Centralized executor

This commit is contained in:
Anuken
2022-04-13 17:38:18 -04:00
parent c01348af29
commit 4b5d833c74
9 changed files with 13 additions and 18 deletions
+4
View File
@@ -31,6 +31,7 @@ import mindustry.world.*;
import java.io.*;
import java.nio.charset.*;
import java.util.*;
import java.util.concurrent.*;
import static arc.Core.*;
@@ -210,6 +211,9 @@ public class Vars implements Loadable{
/** list of all locales that can be switched to */
public static Locale[] locales;
//the main executor will only have at most [cores] number of threads active
public static ExecutorService mainExecutor = Threads.cachedExecutor(1, OS.cores, true);
public static FileTree tree = new FileTree();
public static Net net;
public static ContentLoader content;