mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-26 02:12:57 +00:00
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:
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){
|
||||
|
||||
Reference in new issue
Block a user