Skip to content

Commit

Permalink
Debugging disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Nov 17, 2023
1 parent 171da8c commit 9fab556
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/mindustry/ai/HierarchyPathFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,7 @@ public boolean getPathPosition(Unit unit, Vec2 destination, Vec2 mainDestination
}

fieldCache.lastUpdateId = state.updateId;
//TODO: 30 iterations every frame is incredibly slow and terrible and drops the FPS on mobile devices significantly.
int maxIterations = 30; //TODO higher/lower number?
int maxIterations = 30; //TODO higher/lower number? is this still too slow?
int i = 0;
boolean recalc = false;

Expand Down Expand Up @@ -1118,7 +1117,7 @@ public boolean getPathPosition(Unit unit, Vec2 destination, Vec2 mainDestination
}

request.lastTargetTile = any ? tileOn : null;
if(true && tileOn != null){
if(debug && tileOn != null){
Fx.placeBlock.at(tileOn.worldx(), tileOn.worldy(), 1);
}
}
Expand Down

0 comments on commit 9fab556

Please sign in to comment.