Skip to content

Commit

Permalink
Change region size to 64
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Mar 28, 2018
1 parent 59d9a77 commit 5f54ced
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -26,8 +26,7 @@
import java.util.concurrent.*;

public final class TickManager {
public static final int regionSize = 32;
public static final int regionSizePower = 31 - Integer.numberOfLeadingZeros(regionSize);
public static final int regionSizePower = 6;
public boolean profilingEnabled = false;
private double averageTickLength = 0;
private long lastTickLength = 0;
Expand Down
Expand Up @@ -55,8 +55,8 @@ public float getAverageTickTime() {
public TableFormatter writeStats(TableFormatter tf) {
return tf
.row(this.getShortTypeName())
.row(regionX * TickManager.regionSize)
.row(regionZ * TickManager.regionSize)
.row(regionX << TickManager.regionSizePower)
.row(regionZ << TickManager.regionSizePower)
.row(size())
.row(getAverageTickTime());
}
Expand Down

0 comments on commit 5f54ced

Please sign in to comment.