About this mod
Reworks 2 Soul Cairn scripts to improve performance by replacing inefficient while loops with RegisterForSingleUpdate. No ESP.
- Requirements
- Permissions and credits
- Changelogs
- Donations
Description
While exploring the Soul Cairn I noticed my FPS was gradually decreasing over time until it was reaching unplayable levels. Looking at the CPU and GPU usage, both were very low, so I saved the game, opened the save in ReSaver and was greeted by this masterpiece:
The issue here are 2 separate scripts, 1 more than the other: DLC1CrystalDrainHealthCheckScript and DLC1RandomLightningStrikeTrigSCRIPT. The first one was a mess - spamming itself with no chill, spamming errors with no chill, getting stuck on dead NPCs, multiplying itself, the whole package. The second one was better, only it was constantly active while you're in the Soul Cairn.
I decided to rework the abomination that is the crystal script to something working and tweak the lightnings while I'm at it. I replaced the while loops in both scripts with scheduled periodic updates through RegisterForSingleUpdate, which greatly reduces the stress on the scripting engine and makes the scripts update only when they need to. Other issues with the crystal script listed above have also been fixed.
Install with your favourite mod manager. New game is not required, but it is preferable to install this while away from the Soul Cairn. Even better if you've never been there yet.
Not compatible with anything that changes the DLC1CrystalDrainHealthCheckScript and DLC1RandomLightningStrikeTrigSCRIPT scripts. USSEP changes have been retained.
Compatible with everything else.
No need to concern yourself with load order, as there is no ESP. However, due to the way the game loads its files, loose file mods like this one will always take priority over mods packed into BSA regardless where they load. If a mod happens to edit the same scripts and is packed into a BSA, this mod will overwrite it and potentially cause issues. Let me know of any such cases and I will make a patch to accommodate the relevant changes into this mod.
Bethesda for Skyrim and the Creation Kit
ElminsterAU for xEdit