Lethal Company
This package has been deprecated and may no longer be maintained. We recommend looking for an alternative.
Install

Details

Last Updated
First Uploaded
Downloads
2.3K
Likes
3
Size
47KB
Dependency string
Bub-MicroOptimizer-1.0.4
Dependants

Micro Optimizer

Micro Optimizer focuses on micro-optimizations not covered by other performance mods. It targets specific bottlenecks that cause stuttering during gameplay.

Features

  • String Allocation Optimization - Uses StringBuilder for scrap value formatting to reduce GC pressure
  • Component Lookup Caching - Caches NetworkObject lookups during enemy and scrap spawning
  • Ship Item Collection - Uses HashSet instead of List.Contains() for O(1) lookups when collecting scrap

Configuration

A config file is generated at:

<game directory>\BepInEx\config\mrbub.microoptimizer.cfg

Available settings:

  • OptimizeStringAllocations
    Use StringBuilder for string formatting to reduce allocations.
    Default: true

  • CacheRepeatedLookups
    Cache NetworkObject lookups during spawning.
    Default: true

  • OptimizeShipItemCollection
    Use HashSet instead of List.Contains() for O(1) scrap collection lookups.
    Default: true

  • EnableDebugLogging
    Enable detailed logging for debugging (creates more log spam).
    Default: false

Installation

Drop the MicroOptimizer.dll into your game's BepInEx plugins folder:

<game directory>\BepInEx\plugins

Credits

Made with love by mrbub.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.