You are viewing a potentially older version of this package. View all versions.
pierre67-LethalEscapeThrottle-1.0.1 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.

Date uploaded a day ago
Version 1.0.1
Download link pierre67-LethalEscapeThrottle-1.0.1.zip
Downloads 80
Dependency string pierre67-LethalEscapeThrottle-1.0.1

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.