Allow users to customize the size of thread pools. (#86)

* Increase compatible Java version to 8.

* Support Forge & Fabric 1.15.2

* Fix lag spike while loading player skull textures.

* Allow users to customize the size of thread pools.

* Use the old scheme about loading skulls to avoid blocking the thread pool when "enableUpdateSkull" is true.

* Fix merge.
This commit is contained in:
ZekerZhayard authored and GitHub committed 2020-06-29 00:57:42 +08:00
1 parent 8b1400ef0d
commit a9f19cfc8d
3 files changed
+12 -13

No files matched your search

@@ -27,6 +27,7 @@ public class Config {
public boolean ignoreHttpsCertificate=false;
public boolean forceLoadAllTextures=false;
public boolean enableCape = true;
public int threadPoolSize = 1;
//Cache
public int cacheExpiry=30;
@@ -56,6 +57,7 @@ public class Config {
//Init program
config.loadExtraList();
config.initLocalFolder();
config.threadPoolSize = Math.max(config.threadPoolSize, 1);
if(config.ignoreHttpsCertificate)
HttpUtil0.ignoreHttpsCertificate();
if(config.enableCacheAutoClean && !config.enableLocalProfileCache){