mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-26 18:21:20 +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() {
|
public int resolveRenderThreadCount() {
|
||||||
if (renderThreadCount > 0)
|
if (renderThreadCount > 0) return renderThreadCount;
|
||||||
return renderThreadCount;
|
return Math.max(Runtime.getRuntime().availableProcessors() + renderThreadCount, 1);
|
||||||
|
|
||||||
return Runtime.getRuntime().availableProcessors() + renderThreadCount;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isMetrics() {
|
public boolean isMetrics() {
|
||||||
|
Loading…
Reference in New Issue
Block a user