mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-12 19:30:47 +01:00
Fix render-thread-calculation can still be below 1
This commit is contained in:
parent
492573c866
commit
2f6238349c
@ -27,10 +27,8 @@ public int getRenderThreadCount() {
|
||||
}
|
||||
|
||||
public int resolveRenderThreadCount() {
|
||||
if (renderThreadCount > 0)
|
||||
return renderThreadCount;
|
||||
|
||||
return Runtime.getRuntime().availableProcessors() + renderThreadCount;
|
||||
if (renderThreadCount > 0) return renderThreadCount;
|
||||
return Math.max(Runtime.getRuntime().availableProcessors() + renderThreadCount, 1);
|
||||
}
|
||||
|
||||
public boolean isMetrics() {
|
||||
|
Loading…
Reference in New Issue
Block a user