Found typo explaining such great initial perf

This commit is contained in:
satellite 2021-04-04 20:42:42 -04:00
parent 716ed65f70
commit 4bb3433fba

View File

@ -141,7 +141,7 @@ public class CellManager {
currentCellY < terrainManager.getWorldDiscreteSize()
){
int dist = Math.abs(targetX - drawRadius) * Math.abs(targetY - drawRadius);
int stride = Math.min(100, Math.max(3, dist / drawStepdownInterval * drawStepdownValue));
int stride = Math.min(100, Math.max(1, dist / drawStepdownInterval * drawStepdownValue));
while(terrainManager.getChunkWidth() % stride != 0){
stride = stride + 1;
}