]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Improve lathe queue performance (#38583)
authorTayrtahn <tayrtahn@gmail.com>
Thu, 26 Jun 2025 22:08:01 +0000 (18:08 -0400)
committerGitHub <noreply@github.com>
Thu, 26 Jun 2025 22:08:01 +0000 (00:08 +0200)
commit3a8974f574f3e658bfe2700074d25c720e9afdd4
treec30434561f1def9ed84f9133281e58ae5a9b1676
parentcc2a89ed86dfee8955ba0c62b0647d071b01655d
Improve lathe queue performance (#38583)

* Use an actual Queue

* Store ProtoIds instead of prototypes

* Network as NetListAsArray

* Remove Serializable & NetSerializable from LatheRecipePrototype

* Convert CurrentlyProducing too

* No point using NetListAsArray<T> if you're going to .ToArray() it anyways.

---------

Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
Content.Client/Lathe/UI/LatheMenu.xaml.cs
Content.Server/Lathe/LatheSystem.cs
Content.Shared/Lathe/LatheComponent.cs
Content.Shared/Lathe/LatheMessages.cs
Content.Shared/Research/Prototypes/LatheRecipePrototype.cs