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

Details

Date Uploaded
Downloads
790
Size
131KB

Overdrive

A performance and stability overhaul for big ROUNDS mod packs. The latest build was tested with 317 installed packages and 2,792 cards.

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.

Everyone in the lobby should install the same Thunderstore release. Gameplay and compatibility fixes affect shared state. Online multiplayer has not been tested for this release.

Startup

Without Overdrive With Overdrive
Earlier 2,495-card pack: time until loaded ~13 minutes ~1.5 minutes
  • 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.

Latest release test

The final offline test loaded 2,792 cards in 83 seconds. The longest startup frame was 10 seconds. The card-menu self-test created 67 previews on demand with no visible entries left waiting. Two heavy 4-player stress sets completed at 13.9 and 11.3 average FPS with up to 400 and 470 bullets. Large bullet volleys and third-party card errors remain limitations.

Package 1.2.0 contains the completed, tested build unchanged. Its embedded BepInEx plugin version still reads 1.1.0; use the Thunderstore package version when matching releases with friends.

Battles (earlier 2,495-card benchmark)

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.

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