void Update() { if (SearchAgent.batchmode) { SearchAgent.LOGGER.Log("Batchmode! computing until finished"); int i = 0; while (!finished) { if (i++ % loggerOutputFrequency == 0) { SearchAgent.LOGGER.Log("Visited: {0}", problem.GetVisited().ToString()); SearchAgent.LOGGER.Log("Expanded: {0}", problem.GetExpanded().ToString()); SearchAgent.LOGGER.Flush(); } Step(); } } else { if (running && !finished) { for (int i = 0; i < stepsPerFrame; i++) { if (!finished) { Step(); } } } } }