Delta-v/Content.Server/NPC/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
..
NPCCombatSystem.Melee.cs Random spontaneous cleanup PR (#25131) 2024-02-13 16:48:39 -05:00
NPCCombatSystem.Ranged.cs Crawling Fixes 2: Salvage Nerf (NPCs can shoot downed targets) (#39085) 2025-07-20 23:23:25 +02:00
NPCCombatSystem.cs Cleanup warning in `NPCCombatSystem.Ranged` (#37751) 2025-05-23 10:56:37 -04:00
NPCImprintingOnSpawnBehaviourSystem.cs Replace obsolete EntityWhitelist IsValid usages (#28465) 2024-06-01 23:10:24 -04:00
NPCJukeSystem.cs Replace obsolete functions in NPC systems (#31448) 2024-08-27 00:29:44 +02:00
NPCPerceptionSystem.RecentlyInjected.cs Sentient medibot now can inject (#32110) 2025-01-29 13:34:01 +03:00
NPCPerceptionSystem.cs NPC refactor (#10122) 2022-09-06 00:28:23 +10:00
NPCRetaliationSystem.cs Move faction exception and everything it needs to shared (#25154) 2024-03-18 18:23:25 +11:00
NPCSteeringSystem.Context.cs Use approx NPC steering checks (#36110) 2025-04-14 22:15:16 +02:00
NPCSteeringSystem.Obstacles.cs Replace obsolete functions in NPC systems (#31448) 2024-08-27 00:29:44 +02:00
NPCSteeringSystem.cs Optimizations from server profile (#38290) 2025-07-26 11:44:34 +02:00
NPCSystem.Blackboard.cs Fixed trying to resolve unregistered NPCComponent type, fix NPCs (#19547) 2023-08-25 14:52:23 -07:00
NPCSystem.cs Optimizations from server profile (#38290) 2025-07-26 11:44:34 +02:00
NPCUseActionOnTargetSystem.cs Cleanup unused/redundant dependencies (#38099) 2025-06-06 18:11:52 +02:00
NPCUtilitySystem.cs HandsSystem Refactor (#38438) 2025-06-25 15:13:03 +02:00