Mainly more hauling optimizations, utilizing linked storage groups

This also adds an experimental, usually slower, threaded gas grid mode and implements a workaround for the whole mod and game failing to start when opening prepatcher's mod manager with unfortunate timing
This commit is contained in:
bbradson
2024-02-01 19:57:50 +01:00
parent 20aebe4e83
commit 949bde76ce
27 changed files with 451 additions and 280 deletions
@@ -74,9 +74,11 @@ public unsafe struct FishStash : IEquatable<FishStash>
internal void InitializeActivePrepatchIDs()
{
var activePrepatches = PerformanceFishMod.AllPrepatchClasses!.SelectMany(static patchClass
=> patchClass.Patches.Where(static patch
=> patch.Enabled).Select(static patch => patch.IDNumber)).ToArray();
var activePrepatches = PerformanceFishMod.AllPrepatchClasses!
.SelectMany(static patchClass => patchClass.Patches
.Where(static patch => patch.Enabled)
.Select(static patch => patch.IDNumber))
.ToArray();
var activePrepatchCount = activePrepatches.Length;
_activePrepatchCount = activePrepatchCount;