improve ArrayFloatList clear performance (improve hud performance)

This commit is contained in:
Bixilon 2021-04-06 13:15:04 +02:00
parent 01ebe2ff3a
commit d9b48cc8af
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
3 changed files with 0 additions and 3 deletions

View File

@ -100,7 +100,6 @@ class PlayConnection(
// after sending it, switch to next state
// after sending it, switch to next state
connectionState = ConnectionStates.LOGIN
}
ConnectionStates.LOGIN -> {
this.network.sendPacket(LoginStartServerboundPacket(this.player))

View File

@ -164,7 +164,6 @@ object ChunkUtil {
val blocks = arrayOfNulls<BlockState>(ProtocolDefinition.BLOCKS_PER_SECTION)
for (blockNumber in 0 until ProtocolDefinition.BLOCKS_PER_SECTION) {
var blockId: Long = if (buffer.versionId < V_1_16) { // ToDo: When did this changed? is just a guess
val startLong = blockNumber * palette.bitsPerBlock / java.lang.Long.SIZE
val startOffset = blockNumber * palette.bitsPerBlock % java.lang.Long.SIZE

View File

@ -29,7 +29,6 @@ class ArrayFloatList(
fun clear() {
size = 0
data = FloatArray(initialSize)
outputUpToDate = false
output = FloatArray(0)
}