(Optional) Helps against gradual performance degradation from summons
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.3
Whitelisted more summons for cleanup (mainly things you wouldn't think of as summons, like the Silence spell)
Added more databases for summon-cleanup
Restored cleanup for a visibility cache database (disabled in 1.2), and bypassed whitelist for it
Added logging of database sizes along with delete count stats
Version 1.2
Only clean up the 3 most bloated databases, and make fewer assumptions about what's safe to delete
Version 1.1.1
Reorganized log output a little
Removed accidentally added metadata
Version 1.1
Improved timeout logic
- Much shorter timeout when loading saves from before the mod was installed
- Longer timeout for new saves, to get to a clean state more quickly
Version 1.0
Initial release
Every time you cast Find Familiar or otherwise summon temporary characters, the game creates ~150 database entries that stay behind in the save file after the summon is destroyed.
When loading in Honour mode, or when loading saves from a previous game version in standard difficulties, the game runs a database merge operation that can take minutes to complete when bloated by these left-behind entries.
This mod looks for database entries referencing characters that don't exist anymore and deletes them, which speeds up later operations. For my Honour mode Echo Knight character late in Act 1, it reduced load times by 1:35 in Patch 6. It also seems to help with overall performance later in the game.
Still relevant but less critical in Patch 8
Cleanup runs during the loading screen. To avoid this being too annoying it will bail out when taking too long, to be continued when loading a later save. Barely any time is spent on cleanup when loading saves from before the mod was installed, so to see immediate results you will need to save+load after installing (or use the No Timeout version.)
Once completed, deleting the newly added entries from a normal session typically takes fractions of a second.
Information about the cleanup is printed to the Script Extender console/log.
Alternate Version
The quickest way to get to a clean state is to use the No Timeout version available under optional files. If you have very long loading times I'd recommend starting with the No Timeout version; load, (have a coffee break), save, then switch to the default version.
Uninstalling
This mod can safely be uninstalled at any time, but obviously the already-deleted database entries won't come back. So... use at your own risk and hope I didn't mess up!
Credits
Thanks to Norbyte and Focus for helping me figure out what's going on!