You are viewing a potentially older version of this package. View all versions.
hyperhypes-Overdrive-1.2.1 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.

Date uploaded 18 hours ago
Version 1.2.1
Download link hyperhypes-Overdrive-1.2.1.zip
Downloads 182
Dependency string hyperhypes-Overdrive-1.2.1

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 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.

1.2.1 fixes opening-match setup and card-eligibility failures. The embedded plugin version now matches the package version. Everyone in an online lobby must update together.

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.

CHANGELOG

1.2.1

  • Guard empty map pools so host map selection cannot abort match startup before the opening card draft.
  • Use Deck Customization's default rarity weight for card themes that were registered after its settings, preventing the draft from aborting on a missing theme key.
  • Guard JARL's armor card-eligibility check when another player's armor handler has not initialized or has been removed.
  • Repair completed hooks that returned null, and avoid stale player, skin and armor UI accesses during departure and match teardown.
  • Add a normal opening-draft integration test and draft-stage diagnostics.
  • Match the embedded plugin version to the package version so older builds can no longer appear as the same release in lobby compatibility checks.

1.2.0

  • Faster startup: avoid disposable card visuals during registration and index source-card lookups.
  • Defer additional gameplay and compatibility patches until content loading finishes.
  • Include the completed card, minion, map-transition, exception-handling and code-review fixes from the final tested build.
  • Keep experimental asset-bundle caching disabled by default.
  • Final offline benchmark: 2,792 cards loaded in 83 seconds; card-menu self-test and both heavy stress sets completed. Online multiplayer remains untested.
  • Packaging release of the existing compiled build, without recompilation. Embedded plugin version remains 1.1.0; everyone should use the same Thunderstore release.

1.1.0

  • Display: borderless fullscreen at the monitor's native resolution (option "Display", default Borderless).
  • Card picks: with an ultrawide picker, the offered cards are laid out in the central 16:9 area so every player can see them.
  • Online: network log (BepInEx/Overdrive/network.log) with ping, resends, traffic and RPC rates; higher send rate; optional fixed region.
  • Floating Ninja (TimeToGrind Cards): the minion no longer fires a broken bullet after every reload; it only floats and blocks shots, as the card describes.
  • Minions (ninja cards etc.): a minion could get the same player ID as a real player, so its stats/cards were applied to that player (he grew bigger every round, lost his body circle and hit himself) and online games desynced (round ended for some players only). Minions now get an unused ID and their stats never land on a real player.
  • Map changes: an exception from another mod's map-change hook (PerformanceImprovements, with card-modified players) no longer aborts the transition and leaves the next map half loaded.
  • Map slides: a map object destroyed while the map slides in/out no longer aborts the slide, which left pieces half-way and the old and new maps overlapping.
  • Minions: the player list is rebuilt without assuming gap-free player IDs (ModdingUtils aborted battle start otherwise), and a minion left active outside a battle (e.g. stuck at the map centre, shooting through card picks) is disabled.
  • Players without a controller (AI minions) no longer make TabInfo's Tab listener and the game's UI input throw every frame (Tab key works again); PerformanceImprovements' respawn hook can no longer throw.
  • Bullet hits: card-mod hit hooks (CPC Crafter, CPC Core, AALUND13 Cards, Chaotic Classes) that threw on bullets of gone players no longer cancel the whole hit.
  • Damage flash (ColorBlink) on objects without a sprite no longer throws on every physics step.
  • Bullet hits: an error from a bullet that was already destroyed online no longer aborts the whole hit check.
  • Invisible bodies: players whose body circle disappeared (arms, gun and name still visible) are repaired during battle, and the cause is logged.
  • Timed Deathmatch: the kill counter is shown above each player instead of stacked as a green number in the middle of the screen.

1.0.0

  • First release.
  • Startup: card previews in the "toggle cards" and sandbox "spawn cards" menus are built on demand; BepInEx config writes are batched; enabling cards no longer re-sorts the whole card list each time.
  • Card picks / card swaps: the ammo bar is updated incrementally instead of being rebuilt for every card (removed multi-second freezes).
  • Battles: allocation-free bullet hit detection with per-frame collider caching; bullet-vs-bullet checks answered inline; map collider lookup cached per frame; idle card templates put to sleep; garbage collection moved out of battles; multithreaded 2D physics.
  • Stability: repeating exceptions are caught at their source instead of being logged thousands of times; identical log lines are rate-limited; no Unity crash-report upload per exception; exact-equivalent guards for Cosmic Rounds' FireballMono / HolyFireMono / IceTrailMono.
  • Built-in automated benchmark (Ctrl+F9 in the main menu, or -overdrive-bench on the command line) and an FPS overlay (F8).