sighsorry-Fast_AssetBundle_Loader icon

Fast AssetBundle Loader

Faster loading with large size mods by caching asset bundles

Last updated 3 weeks ago
Total downloads 3316
Total rating 3 
Categories Mods Tweaks Server-side Client-side AI Generated
Dependency string sighsorry-Fast_AssetBundle_Loader-1.0.3
Dependants 14 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333

README

FastAssetBundleLoader

Game loads faster with large size mods by caching asset bundles.

It speeds up repeated mod startup by caching slow asset bundles into reusable files under BepInEx/cache. The implementation is based on the same general approach as DiFFoZ's BepInExFasterLoadAssetBundles, but is adapted and trimmed for this Valheim-focused project. https://thunderstore.io/c/lethal-company/p/DiFFoZ/BepInEx_Faster_Load_AssetBundles_Patcher/

What it does

  • It caches Valheim mod asset bundles that are stored in LZ4HC format into reusable LZ4 cache files, so subsequent loads can be faster.
  • This is patcher.dll so it needs to be placed in BepInEx/patchers folder

Cache behavior

  • Cache files are stored under BepInEx/cache/ValheimFasterLoadAssetBundles by default.
  • Cache files are created only when eligible asset bundles are actually loaded.
  • A single run may not warm every cache entry if the game is closed before the background queue finishes or if some bundles are loaded only in specific scenes. Later runs may therefore become faster.
  • For a broader warm-up, enter a world instead of stopping at the lobby and keep the game running until cache activity settles. Different gameplay paths may create additional entries, so caching every installed asset bundle is not guaranteed.
  • Cache could take up to few GB of your disk space according to the mods you are using. (More than 3GB in my case)
  • The main measured benefit is repeated loading to the lobby. Improvements from lobby to world depend on which eligible bundles are loaded and may not be noticeable in every setup.

Other mods to run the game faster

  • StartupAccelerator
  • LocalizationCache

I have tested with following combination to measure loading time.

  • Modpack only = 246s
  • FastAssetBundleLoader + Modpack = 170s
  • StartupAccelerator + Modpack = 202s
  • LocalizationCache + Modpack = 218s
  • FastAssetBundleLoader + LocalizationCache + Modpack = 145s
  • FastAssetBundleLoader + StartupAccelerator + Modpack = 127s

StartupAccelerator is faster but some mods might not work properly with it.