Risk of Rain 2
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
12.6K
Size
113KB

ROR-O

Performance optimization mod for Risk of Rain 2.

ROR-O focuses on real hot paths found in profiler captures instead of broad "magic FPS boost" claims. The mod reduces repeated UI work, trims heavy runtime systems when they are offscreen, and moves Steam traffic off the host frame.

What it optimizes

Current optimization areas include:

  • Lobby and menu refresh paths
    • player list refreshes
    • social icon / avatar update paths
    • survivor availability checks
  • Text / UI hot paths
    • repeated TextMeshPro text updates
    • chat, inventory, and scoreboard rebuilds that show the same result
    • UI raycasts while the pointer stays still
    • repeated text style changes
  • Damage numbers
    • load shedding under extreme combat load
    • quality presets: Lossless, Performance, Potato
  • Dynamic bones
    • throttles offscreen and distant rigs
    • simulates busy frames on worker threads
    • quality presets: Lossless, Performance, Potato
  • Generic IK (GenericIK.dll)
    • throttles offscreen IK rigs
    • quality presets: Lossless, Performance, Potato
  • Steam networking
    • packet send and receive off the main thread
  • Spawn
    • warms monster and pickup prefabs at stage start
  • Cache-based gameplay hot path cleanup
    • ChildLocator / transform lookup caching
    • component access caching for selected hot loops
    • survivor unlock cache
    • morgue / run history cache

Why this mod exists

The mod was built by profiling real gameplay and fixing expensive paths one by one. During testing, the biggest wins came from:

  • reducing repeated UI rebuild work
  • reducing offscreen / far-away animation overhead
  • keeping Steam polling off the host frame
  • reducing waste from repeated menu and lobby refresh logic

It is especially aimed at:

  • modded runs with lots of UI activity
  • scenes with many enemies or effects
  • long runs where animation systems and UI become expensive
  • multiplayer, where the host was spending frame time on Steam

Important notes

  • This mod does not promise to fix every stutter source.
  • Risk of Rain 2 still has expensive systems such as Addressables loading, spawning, and audio registration that can create spikes on their own.
  • Warming a prefab does not draw it, so the first time that monster appears on screen can still hitch.

Installation

Thunderstore / Mod Manager

Install ROR-O into a profile that already has BepInEx. BepInExPack is not required.

Manual installation

Place ROR-O.dll into:

BepInEx/plugins/ror-o/

Configuration

The config file is created here:

BepInEx/config/net.sixik.plugin.roro.cfg

Main sections currently exposed:

  • [Damage Numbers]
  • [Dynamic Bones]
  • [Generic IK]
  • [Network]
  • [Spawns]
  • [Profiler]

[Profiler] includes an optional Hitch Watch and a switch for the separately installed Mono profiler.

Integrations

  • Looking Glass
  • Risk of Options
  • Mono Profiler

Development

Close the game before building. From the repository root:

dotnet build ROR-O/ROR-O.csproj -c Debug

The build finds the Steam install and profiles from r2modman, Thunderstore Mod Manager, or Gale. The first success writes gitignored ROR-O/roro.user.props and later builds reuse it. The profile used to compile must contain LookingGlass.dll. Players do not need that mod.

If several profiles are found:

dotnet build ROR-O/ROR-O.csproj -c Debug -p:ProfileDir="D:\profiles\my-profile"

A unique profile name is enough. Profiles outside AppData need ProfileRoot, or a copy of ROR-O/roro.user.props.example. Interactive choice: powershell -File ROR-O/resolve-paths.ps1 -Ask.

Debug copies ROR-O.dll into the profile. Release also writes ROR-O/bin/Release/netstandard2.1/ROR_O-v1.0.4.zip. Use -p:DeployOnBuild=false to skip the copy.

Known limitations

  • Loading spikes related to Addressables can still happen
  • The first visible spawn of a monster can still hitch
  • Audio-heavy scenes can still be limited by AkGameObj / Wwise costs

Source

GitHub repository:

  • https://github.com/DeusSixik/ROR-O

License

See LICENSE.txt.

Support Me

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