10-06-2019, 05:31 PM
(This post was last modified: 10-06-2019, 05:36 PM by Seadragon91.)
This are the results from my skyblock plugin for a single chunk, all in milliseconds. The difference is that sykblock is mostly of air and with that I don't need let cuberite count the air blocks and this is much faster.
Function CountAllNonAirBlocksAndMetas in cBlockArea
The reason for 147 times with CountSpecificBlocks is that I check for 147 block id / metas in the island area to calculate the points of a island area.
Tested that function in WorldEdit in a normal generated world, the amount of air blocks I can get by just subtracting the found blocks with the volume:
Changes in WorldEdit
That's the results I have.
Function CountAllNonAirBlocksAndMetas in cBlockArea
Calc(for loop): 25 Calc(CountAllNonAirBlocksAndMetas): 1 Calc(CountSpecificBlocks): 13 Calc(for loop): 26 Calc(CountAllNonAirBlocksAndMetas): 0 Calc(CountSpecificBlocks): 14 Calc(for loop): 28 Calc(CountAllNonAirBlocksAndMetas): 1 Calc(CountSpecificBlocks): 14 Calc(for loop): 25 Calc(CountAllNonAirBlocksAndMetas): 1 Calc(CountSpecificBlocks (147 times)): 14
The reason for 147 times with CountSpecificBlocks is that I check for 147 block id / metas in the island area to calculate the points of a island area.
Tested that function in WorldEdit in a normal generated world, the amount of air blocks I can get by just subtracting the found blocks with the volume:
Changes in WorldEdit
Area Size: 101 * 234 * 100 Current: 1197 ms New: 159 ms Area Size: 101 * 244* 100 Current: 1253 ms New: 185 ms
That's the results I have.