Propagate stateByID scaling performance improvement
This commit is contained in:
parent
aef7a16b1c
commit
0809d23559
14 changed files with 13 additions and 14 deletions
|
|
@ -178,7 +178,7 @@ public class DynmapPlugin
|
|||
int i = Block.getIdFromBlock(b);
|
||||
if (i >= (stateByID.length >> 4)) {
|
||||
int plen = stateByID.length;
|
||||
stateByID = Arrays.copyOf(stateByID, (i+1) << 4);
|
||||
stateByID = Arrays.copyOf(stateByID, i*11/10); // grow array by 10%
|
||||
Arrays.fill(stateByID, plen, stateByID.length, DynmapBlockState.AIR);
|
||||
}
|
||||
ResourceLocation ui = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue