mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
improve ArrayFloatList clear performance (improve hud performance)
This commit is contained in:
parent
01ebe2ff3a
commit
d9b48cc8af
@ -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))
|
||||
|
@ -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
|
||||
|
@ -29,7 +29,6 @@ class ArrayFloatList(
|
||||
|
||||
fun clear() {
|
||||
size = 0
|
||||
data = FloatArray(initialSize)
|
||||
outputUpToDate = false
|
||||
output = FloatArray(0)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user