Optimise storage a quadrillion times (#37638)

* Optimise storage a quadrillion times

* How sweaty can we get

* Add fast angle checks

* Fix chunk indices

* Optimise the refresh method

Helps on client a lot as the clientside is suboptimal atm.

* Better name

* wawawewa

* Add single-angle path

* Okay FINE rider
This commit is contained in:
metalgearsloth
2025-05-21 16:16:26 +10:00
committed by GitHub
parent e100324815
commit a393033c64
4 changed files with 323 additions and 54 deletions

View File

@@ -63,6 +63,8 @@ public sealed class StorageSystem : SharedStorageSystem
component.SavedLocations[loc.Key] = new(loc.Value);
}
UpdateOccupied((uid, component));
var uiDirty = !component.StoredItems.SequenceEqual(_oldStoredItems);
if (uiDirty && UI.TryGetOpenUi<StorageBoundUserInterface>(uid, StorageComponent.StorageUiKey.Key, out var storageBui))