Found typo explaining such great initial perf
This commit is contained in:
parent
716ed65f70
commit
4bb3433fba
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user