Optimize atmos by not invalidating hotspot tiles every time they react.

This commit is contained in:
Vera Aguilera Puerto
2021-07-23 11:10:06 +02:00
parent 4112847142
commit 07c478afb6

View File

@@ -137,7 +137,6 @@ namespace Content.Server.Atmos.EntitySystems
tile.Hotspot.Temperature = affected.Temperature;
tile.Hotspot.Volume = affected.ReactionResults[GasReaction.Fire] * Atmospherics.FireGrowthRate;
Merge(tile.Air, affected);
gridAtmosphere.InvalidatedCoords.Add(tile.GridIndices);
}
var tileRef = tile.GridIndices.GetTileRef(tile.GridIndex);