* 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.
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using Content.Shared.Administration;
|
|
using Content.Shared.CCVar.CVarAccess;
|
|
using Robust.Shared;
|
|
using Robust.Shared.Configuration;
|
|
|
|
namespace Content.Shared.CCVar;
|
|
|
|
/// <summary>
|
|
/// Contains all the CVars used by content.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// NOTICE FOR FORKS: Put your own CVars in a separate file with a different [CVarDefs] attribute. RT will automatically pick up on it.
|
|
/// </remarks>
|
|
[CVarDefs]
|
|
public sealed partial class CCVars : CVars
|
|
{
|
|
// Only debug stuff lives here.
|
|
|
|
#if DEBUG
|
|
[CVarControl(AdminFlags.Debug)]
|
|
public static readonly CVarDef<string> DebugTestCVar =
|
|
CVarDef.Create("debug.test_cvar", "default", CVar.SERVER);
|
|
|
|
[CVarControl(AdminFlags.Debug)]
|
|
public static readonly CVarDef<float> DebugTestCVar2 =
|
|
CVarDef.Create("debug.test_cvar2", 123.42069f, CVar.SERVER);
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// A simple toggle to test <c>OptionsVisualizerComponent</c>.
|
|
/// </summary>
|
|
public static readonly CVarDef<bool> DebugOptionVisualizerTest =
|
|
CVarDef.Create("debug.option_visualizer_test", false, CVar.CLIENTONLY);
|
|
|
|
/// <summary>
|
|
/// Set to true to disable parallel processing in the pow3r solver.
|
|
/// </summary>
|
|
public static readonly CVarDef<bool> DebugPow3rDisableParallel =
|
|
CVarDef.Create("debug.pow3r_disable_parallel", false, CVar.SERVERONLY);
|
|
}
|