pierre67-LethalEscapeThrottle icon

LethalEscapeThrottle

Performance fix for LethalEscapeUpdated: adds a per-enemy cooldown to AIBridge.RequestTransition so enemies that can't reach an exit stop re-pathing and log-spamming every frame. Cuts the lag and thousands of log lines on tricky-navmesh moons.

Last updated 2 hours ago
Total downloads 17
Total rating 0 
Categories Mods Server-side Tweaks & Quality Of Life
Dependency string pierre67-LethalEscapeThrottle-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
woah25-LethalEscapeUpdated-2.5.0 icon
woah25-LethalEscapeUpdated

A mod that aims to allow almost every inside creature to escape to the outside so that nowhere is safe, a fork that is getting updated by me, xCeezyx is the king.

Preferred version: 2.5.0

README

LethalEscapeThrottle

A small performance fix for LethalEscapeUpdated.

Enemies that can't reach an exit (common on tricky-navmesh moons) re-run AIBridge.RequestTransition every frame — each call doing a NavMesh path calc plus several log lines. Over a round this stacks up into real frame-time cost and tens of thousands of log lines.

This mod adds a small per-enemy cooldown: a failed escape attempt isn't retried until CooldownSeconds later. Successful transitions succeed on the first try and are unaffected.

Config

  • Enabled — toggle the throttle.
  • CooldownSeconds — how long (default 2.0) before a failed attempt is retried.

Credits

Made by Pierre. Requires LethalEscapeUpdated by woah25.