diff --git a/isometric-park-fna/Engines/SimulationBridgeEngine.cs b/isometric-park-fna/Engines/SimulationBridgeEngine.cs --- a/isometric-park-fna/Engines/SimulationBridgeEngine.cs +++ b/isometric-park-fna/Engines/SimulationBridgeEngine.cs @@ -114,8 +114,8 @@ { #region calculate_preserve_cells - var preserve_cells = new HashSet(); - var preserve_cell_coordinates = new HashSet<(int, int)>(); + // var preserve_cells = new HashSet(); + var preserve_cell_coordinates = new List<(int, int)>(); var count = 0; Stopwatch iterPreserves = new Stopwatch(); @@ -125,7 +125,7 @@ ref readonly var areaComponent = ref GetComponent(entity); foreach (var square in areaComponent.squares) { - preserve_cells.Add(this.simulation.map.cells[(int)square.X][(int)square.Y]); + // preserve_cells.Add(this.simulation.map.cells[(int)square.X][(int)square.Y]); preserve_cell_coordinates.Add(((int)square.X, (int)square.Y)); } } @@ -156,14 +156,10 @@ //* foreach ((var x, var y) in preserve_cell_coordinates) { foreach ((var newx, var newy) in this.simulation.map.iterate_neighbor_cell_locations(x, y)) { - this.simulation.PreserveCounts[newx, newy] += 1; } - } //*/ - - iterCells.Stop(); Logging.Info(String.Format("Cell loop: {0:F3}", iterCells.Elapsed.TotalMilliseconds.ToString()));