Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
LethalEscapeThrottle
A performance fix for LethalEscapeUpdated. Enemies that cannot reach an exit stop re-pathing and spamming the log every frame. On tricky navmesh moons this cuts the lag and thousands of log lines.
By pierre67
| Date uploaded | 3 weeks ago |
| Version | 1.0.2 |
| Download link | pierre67-LethalEscapeThrottle-1.0.2.zip |
| Downloads | 111 |
| Dependency string | pierre67-LethalEscapeThrottle-1.0.2 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100woah25-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.0README
LethalEscapeThrottle
A small performance fix for LethalEscapeUpdated.
On tricky navmesh moons, enemies that cannot reach an exit re-run their escape check every single frame. Each of those calls does a NavMesh path calculation and prints several log lines, so over a round it piles up into real frame-time cost and tens of thousands of log lines.
This mod adds a short per-enemy cooldown, so a failed escape attempt is not retried until CooldownSeconds later. Enemies that can escape still succeed on the first try and are not affected.
Config
- Enabled: toggle the throttle.
- CooldownSeconds: how long to wait (default 2.0) before retrying a failed attempt.
Credits
Made by Pierre (Discord: samedude67). Requires LethalEscapeUpdated by woah25.
CHANGELOG
Changelog
1.1.0
- The throttle is now adaptive. An enemy that keeps failing to find a reachable exit waits longer and longer between searches (the wait doubles each failure), instead of retrying on a fixed timer. This cuts far more lag on moons where an enemy is permanently boxed out, while an enemy that can escape still succeeds on its first try and is never throttled. New
MaxBackoffSecondsconfig (default 15) caps how long the back-off can grow. - New
DiagnosticLoggingconfig (default on). Logs a short summary every 30 seconds (only when there was activity) of how many exit searches were skipped versus actually run, so you can confirm the throttle is working. Turn it off once you're satisfied for a quiet log.
1.0.3
- Added this changelog.
1.0.2
- New blue speedometer store icon, matching the rest of the pierre67 mods.
- Cleaned up the description.
Earlier releases
- Adds a short per-enemy cooldown so an enemy that cannot reach an exit stops re-running its escape check (and spamming the log) every frame.
- Enemies that can escape still succeed on the first try and are not throttled.
Config
Enabled- toggle the throttle.CooldownSeconds- how long to wait (default 2.0) before an enemy retries a failed escape attempt.