Fix GeoLite crash, add PerfMode profiling, reload cache invalidation
- GeoLite/MaxMind lookup wrapped in try/catch and disabled for the session on failure (stops the per-tick exception spam when the assembly cannot load during hot-reload) - New PerfMode config option: writes performance logs to logs/perf_<date>.txt (DisableAll/SetSkill/PlayerDeath totals, per-skill SkillAction timings, aggregated OnTick/CheckTransmit avg-max summaries) - css_reload now invalidates the skill-info and freeze-time caches - Removed the last null-forgiving player lookups (Command, Armored, Baseball, FriendlyFire, OneShot)
This commit is contained in:
parent
25cd8eb989
commit
b68a033b4c
14 changed files with 157 additions and 10 deletions
|
|
@ -80,6 +80,7 @@ namespace src.utils
|
|||
public bool EnableBotSkills { get; set; }
|
||||
public bool EnableBotKickDebug { get; set; }
|
||||
public bool DebugMode { get; set; }
|
||||
public bool PerfMode { get; set; }
|
||||
public string? AlternativeSkillButton { get; set; }
|
||||
public float SkillTimeBeforeStart { get; set; }
|
||||
public float SkillHudDuration { get; set; }
|
||||
|
|
@ -107,6 +108,7 @@ namespace src.utils
|
|||
EnableBotSkills = true;
|
||||
EnableBotKickDebug = false;
|
||||
DebugMode = false;
|
||||
PerfMode = false;
|
||||
AlternativeSkillButton = null;
|
||||
SkillTimeBeforeStart = 7;
|
||||
SkillHudDuration = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue