Atmos device performance improvements (#26493)
* Atmos device performance improvements * AtmosDirection perf improvements * Fix errors * Add GasTileOverlayComponent arguments * Make excite no longer invalidate a tile
This commit is contained in:
@@ -231,10 +231,9 @@ public sealed class SpreaderSystem : EntitySystem
|
||||
// Add the normal neighbors.
|
||||
for (var i = 0; i < 4; i++)
|
||||
{
|
||||
var direction = (Direction) (i * 2);
|
||||
var atmosDir = direction.ToAtmosDirection();
|
||||
var neighborPos = SharedMapSystem.GetDirection(tile, direction);
|
||||
neighborTiles.Add((comp.GridUid.Value, grid, neighborPos, atmosDir, atmosDir.GetOpposite()));
|
||||
var atmosDir = (AtmosDirection) (1 << i);
|
||||
var neighborPos = tile.Offset(atmosDir);
|
||||
neighborTiles.Add((comp.GridUid.Value, grid, neighborPos, atmosDir, i.ToOppositeDir()));
|
||||
}
|
||||
|
||||
foreach (var (neighborEnt, neighborGrid, neighborPos, ourAtmosDir, otherAtmosDir) in neighborTiles)
|
||||
|
||||
Reference in New Issue
Block a user