Essential performance and compatibility patch for modded R.E.P.O. Accelerates startup and level loading to seconds, prevents 120s timeouts on custom maps, and eliminates game-breaking MissingMethodExceptions.
Fully restored SAD Model Fix processing so that custom valuables, enemies, and items have their correct 3D bounds, volumeType, and RoomVolumeCheck properly assigned.
Resolved the issue where Swaggies-LevelScaling HUD, EXP bar, and stats UI failed to appear on screen.
Universal Harmony Ambiguity Resolver:
Added an in-memory Harmony resolver intercepting AccessTools.DeclaredMethod and AccessTools.Method.
Automatically resolves any ambiguous method overloads (such as PlayerHealth.Hurt and PhysGrabObjectImpactDetector.DestroyObject) by cleanly directing patches to the primary game method.
Completely fixes Harmony errors in Illagers (PatchTotemExitDelay) and LevelScaling (PlayerHealthPatch).
Retained High-Performance Loading Pipeline:
Preserved engine background loading optimizations (backgroundLoadingPriority = High, asyncUploadTimeSlice = 16ms, asyncUploadBufferSize = 64MB, uncapped splash framerate, and audio mixer log spam suppression) for maximized loading speeds without breaking any mods.
1.1.1
Startup Optimizations & Profiling:
Identified bottlenecks during initial AssetBundle ingestion and refined threading configurations.
1.1.0
High-Performance Loading Optimizations:
Configured Unity's background asset loading threads to high priority (Application.backgroundLoadingPriority = High), drastically reducing startup and AssetBundle loading wait times.
Temporarily uncapped splash screen framerate and disabled VSync during AssetBundle loading (vSyncCount = 0, targetFrameRate = 500), allowing REPOLib coroutines to advance at maximum CPU speed without 16.6ms frame idle stalls. Standard VSync and framerates are restored immediately upon reaching the Main Menu.
Increased GPU async upload buffer to 64 MB and frame timeslice to 16 ms (QualitySettings.asyncUploadTimeSlice, QualitySettings.asyncUploadBufferSize), speeding up texture and mesh streaming.
Suppressed over 2,200 redundant Fixed AudioMixerGroup debug logs, eliminating thousands of disk writes and SQLite transaction bottlenecks during startup.
Accelerated Unity's async prefab instantiation integration time (AsyncInstantiateOperation.SetIntegrationTimeMS) from 4 ms to 16 ms for up to 4x faster dungeon and spare prop generation.
Level Preparation Timeout Fix:
Intercepted LevelGenerator.PrefabLoadCheck to prevent the vanilla 120-second TimeoutException ("prefab preparation took too long...") from aborting games back to the main menu when using large custom map packs.
Illagers Totem Delay Compatibility:
Resolved Harmony reflection AmbiguousMatchException on PhysGrabObjectImpactDetector.DestroyObject.