CutyIMoDo-ShipBoundaryFix icon

ShipBoundaryFix

Fixes ship-area stutter when using Wider Ship Mod with WesleysInteriors by throttling rapid boundary trigger flipping.

Last updated 3 hours ago
Total downloads 14
Total rating 0 
Categories Bug Fixes
Dependency string CutyIMoDo-ShipBoundaryFix-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
mborsh-Wider_Ship_Mod-1.4.3 icon
mborsh-Wider_Ship_Mod

Makes the ship 'a little' wider for you and your stuff.

Preferred version: 1.4.3

README

ShipBoundaryFix

Fixes ship-area stutter/freeze when using Wider Ship Mod (+ 2 Story Ship) together with WesleysInteriors.

The Problem

When WesleysInteriors is installed alongside Wider Ship Mod, all players experience periodic stuttering near the left and right sides of the extended ship. CPU usage drops during the stutter, indicating main thread blocking rather than high computation.

How It Works

This mod applies two patches:

  1. AudioReverbTrigger Throttle — Limits ChangeAudioReverbForPlayer to execute at most once every 0.3 seconds, preventing rapid-fire calls at the ship boundary.
  2. Ship Boundary Debounce — Prevents rapid inside/outside state flipping in SetPlayerInsideShip when standing at the edge of the extended ship area (0.5 second debounce).

Installation

  1. Install with r2modman or manually place ShipBoundaryFix.dll in BepInEx/plugins/.
  2. That's it. No configuration needed.

Compatibility

  • Wider Ship Mod 1.4.3+
  • 2 Story Ship 2.1.5+
  • WesleysInteriors 4.1.15+
  • Should be compatible with all other mods.

Note

This is a workaround, not a root cause fix. The underlying issue is in how WesleysInteriors' registered triggers interact with Wider Ship Mod's expanded ship boundaries.