Delta-v/Content.Server/Atmos/Monitor/Systems
Pieter-Jan Briers 444180c20d
Optimizations from server profile (#38290)
* Properly cache regexes in chat sanitization/accents

Wow I wonder if `new Regex()` has a cost to it *looks at server profile*.

* Avoid lag caused by Tippy command completions

CompletionHelper.PrototypeIDs explicitly says *not* to use it with EntityPrototype. Unsurprisingly, reporting a completion result for every entity prototype in the game is a *bad idea*.

* Add active count metrics to some high-load systems

Mover & NPCs

I suspect the thing that caused the Leviathan round to shit itself on performance is NPC spam in space or something. So let's verify that.

* Enable parallel processing on pow3r again

Originally disabled due to a theory of it causing bugs, it was re-enabled on Vulture, and I'm not aware of it having caused any issues there.

* Replace hashset with bitflags for AtmosMonitor alert types.

Allocating these hashsets was like 20% of the CPU of atmos, somehow.

* Cache HashSet used for space movement collider checks

Turns out this was a ton of server allocations. Huh.
2025-07-26 11:44:34 +02:00
..
AirAlarmModes.cs Resolve `'EntitySystem.Get<T>()' is obsolete` in content (#27936) 2024-05-12 20:34:52 -04:00
AirAlarmSystem.cs air alarm panic wire snipping forces panic mode (#36439) 2025-05-14 22:39:47 +02:00
AtmosAlarmableSystem.cs Optimizations from server profile (#38290) 2025-07-26 11:44:34 +02:00
AtmosDeviceNetwork.cs Predict two-way levers (#25043) 2024-02-11 14:19:45 +11:00
AtmosMonitoringSystem.cs Optimizations from server profile (#38290) 2025-07-26 11:44:34 +02:00
FireAlarmSystem.cs Predict dumping (#32394) 2025-04-19 16:20:40 +10:00