hyperhypes-Overdrive icon

Overdrive

Performance + stability overhaul for big ROUNDS packs: faster startup, no card-menu freezes, faster bullets, no GC hitches, minion/map-transition/card bug fixes, borderless fullscreen. Everyone in the lobby should run it.

Last updated 16 hours ago
Total downloads 224
Total rating 0 
Categories Client-side Utilities Patch
Dependency string hyperhypes-Overdrive-1.1.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

BepInEx-BepInExPack_ROUNDS-5.4.1901 icon
BepInEx-BepInExPack_ROUNDS

BepInEx pack for ROUNDS. Preconfigured and ready to use.

Preferred version: 5.4.1901
willis81808-UnboundLib-3.2.14 icon
willis81808-UnboundLib

This is a helpful utility for ROUNDS modders aimed at simplifying common tasks.

Preferred version: 3.2.14

README

Overdrive

A performance overhaul for big ROUNDS mod packs. Built and measured against a 277-mod / 2,495-card pack.

Big packs don't get slow because ROUNDS needs a fast PC - they get slow because of a handful of things that scale badly with the number of mods, cards and bullets. Overdrive fixes those specific things, measures the result, and lets you switch every fix off individually.

Everything is client-side: nothing here changes the rules of the game or what other players see, so it works in lobbies where not everyone has it.

Startup

Without Overdrive With Overdrive
Time until the pack is loaded ~13 minutes (one 10-minute frozen frame) ~1.5 minutes, no freeze
  • Card menus are built on demand. The "toggle cards" menu (UnboundLib) and the sandbox "spawn cards" menu (Sandbox Improvements) each build a full animated preview of every card while the game starts - about 5,000 card objects for this pack. Now a preview is created the first time you actually scroll to it.
  • Config writes are batched. Mods bind one setting per card, and BepInEx rewrote the whole (250 KB) config file for each one - 6,400 times per launch. Now each file is written once.
  • Card registration doesn't re-sort. Enabling a card used to re-sort the full card list every time.

Battles

Automated stress test: 4 players, 20 random cards each from a 2,495-card pack, everyone firing non-stop, three different card sets. Both runs simulate exactly the same game frames (fixed time step); only the real time each frame took differs. CPU only (headless), Ryzen 7 9800X3D.

Card set Without Overdrive With Overdrive
1 6 FPS avg, worst freeze 4.3 s 30 FPS avg, worst frame 0.13 s
2 4 FPS avg, worst freeze 5.5 s 58 FPS avg, worst frame 0.09 s
3 12 FPS avg, worst frame 0.28 s 24 FPS avg, worst frame 0.14 s

Honest note: this is a deliberately brutal test (hundreds of bouncing, exploding bullets). Normal fights run far faster; the numbers above are about the worst case. The multi-second freezes when cards are picked, granted or swapped mid-fight came from the ammo bar being rebuilt from scratch for every card; that is gone.

What changed:

  • Bullet hit detection without allocations, with per-frame caching of what each collider is, and the game's own "two bullets flying the same way ignore each other" rule answered directly instead of running the full bullet-vs-bullet callback (and every mod hooked into it) for each pair in a volley.
  • No more 50 Hz bot-map rebuilds. Rounds With Bots rebuilt its navigation grid 50 times a second - even in games with no bots. Now only when a bot asks for it.
  • Card picks no longer freeze. Every card applied rebuilt the whole ammo bar (thousands of icons with ammo cards, up to 0.9 s per card, seconds when a card swaps your whole hand). Now only the difference is added or removed.
  • Card pickups no longer scan all memory twice. GunChargePatch and SimulationChamber searched every object in memory after each card applied; now once per frame, shared.
  • Idle card templates are put to sleep. ~1,800 off-screen template objects ran 4 Update methods each, every frame.
  • Garbage collection moves out of the fight (to point ends / card picks). Scaled to your RAM.
  • Exception floods are neutralised. Some cards throw an exception every frame for every bullet. Overdrive catches repeating exceptions at the source (no 10,000-line logs, no per-exception crash-report uploads), and for a few known-broken components that crash on their very first line it skips the call outright.
  • Multithreaded 2D physics.
  • Map collider lookups for bullet hits are cached per frame; Performance Improvements' settings are cached instead of being read from the registry for every bullet.

Settings

Everything is in BepInEx/config/overdrive.rounds.performance.cfg (or MODS > Overdrive in game). Every optimisation has its own switch; Enabled = false turns Overdrive into a pure FPS overlay.

  • F8 - FPS overlay (FPS, 1% low, worst frame, live bullets, GC state).
  • Ctrl+F9 (main menu) - automated benchmark: 4 bots, 20 random cards each, three card sets, report written to BepInEx/Overdrive/bench-manual.txt.

Benchmark from the command line

Rounds.exe -batchmode -overdrive-bench "players=4;cards=20;seeds=1,2,3;seconds=20;quit=1;tag=mytest"
Rounds.exe ... -overdrive-off            # same run without Overdrive, for comparison
Rounds.exe ... -overdrive-runtime-off    # keep the startup fixes, disable the in-game ones

Compatibility

Requires UnboundLib. Works with or without Performance Improvements, Rounds With Bots, GunChargePatch, SimulationChamber, Sandbox Improvements, BossSloth's Cards and Cosmic Rounds - each related fix only activates when its mod is present, and steps aside if another mod has rewritten the same method.