Class ChunkBatchSizeCalculator

java.lang.Object
net.minecraft.client.multiplayer.ChunkBatchSizeCalculator

public class ChunkBatchSizeCalculator extends Object
  • Field Details

    • MAX_OLD_SAMPLES_WEIGHT

      private static final int MAX_OLD_SAMPLES_WEIGHT
      See Also:
    • CLAMP_COEFFICIENT

      private static final int CLAMP_COEFFICIENT
      See Also:
    • aggregatedNanosPerChunk

      private double aggregatedNanosPerChunk
    • oldSamplesWeight

      private int oldSamplesWeight
    • chunkBatchStartTime

      private volatile long chunkBatchStartTime
  • Constructor Details

    • ChunkBatchSizeCalculator

      public ChunkBatchSizeCalculator()
  • Method Details

    • onBatchStart

      public void onBatchStart()
    • onBatchFinished

      public void onBatchFinished(int p_299908_)
    • getDesiredChunksPerTick

      public float getDesiredChunksPerTick()