From 9fab556e81e2aa3354601b9aeec073b8550e0af0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 17 Nov 2023 17:04:47 -0500 Subject: [PATCH] Debugging disabled --- core/src/mindustry/ai/HierarchyPathFinder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/ai/HierarchyPathFinder.java b/core/src/mindustry/ai/HierarchyPathFinder.java index 8fb7dd5334..40526d0cad 100644 --- a/core/src/mindustry/ai/HierarchyPathFinder.java +++ b/core/src/mindustry/ai/HierarchyPathFinder.java @@ -1052,8 +1052,7 @@ public class HierarchyPathFinder implements Runnable{ } 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; @@ -1118,7 +1117,7 @@ public class HierarchyPathFinder implements Runnable{ } request.lastTargetTile = any ? tileOn : null; - if(true && tileOn != null){ + if(debug && tileOn != null){ Fx.placeBlock.at(tileOn.worldx(), tileOn.worldy(), 1); } }