PathfindingLagFix Beta
Improves performance of Lethal Company AI to increase frame rates. This is the beta branch and may cause bugs.
Last updated | 2 days ago |
Total downloads | 15585 |
Total rating | 8 |
Categories | Mods Misc BepInEx Bug Fixes Performance |
Dependency string | Zaggy1024-PathfindingLagFix_Beta-2.0.6 |
Dependants | 18 other packages depend on this package |
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.2100Zaggy1024-PathfindingLib
Provides functionality for mod authors to run pathfinding off of the main thread.
Preferred version: 0.0.3README
PathfindingLagFix
Moves long-running pathfinding tasks off the main thread to improve frame rates significantly, especially for hosts.
Most patches must be tailored to each AI, so this will not affect modded enemies in most cases.
Frametime graph comparisons:
Before/After on March with late night spawns:
Patches
The enemy behaviors currently patched to run their pathfinding off the main thread include:
- General enemies:
- The roaming search patterns used by many enemies (thumpers, hoarding bugs, jesters, etc), including any modded enemies that use this vanilla functionality
- The checks for valid paths to players to be targeted
- Bracken:
- The search for a hiding spot away from the main entrance when no players are targetable
- The search for a hiding spot away from a player when it is spotted
- The pathing towards the player out of line of sight when it is hunting
- Snare flea:
- The search for a hiding spot at a certain number of paths away from main when no players are present
- The search for a hiding spot near a player when they are targetable
- Spore lizard:
- The search for a hiding spot away from a player when it is spotted
- Manticoil:
- The search for a node to fly to when it is disturbed by a player at close range
- More to come!