Added gas grid optimization, various despawn optimizations, new hauling optimizations utilizing events and regions, bugfixes for old patches and for vanilla functions too, as well as smaller additions. 1.3 files removed.
This commit is contained in:
@@ -10,9 +10,9 @@ using PerformanceFish.Prepatching;
|
||||
|
||||
namespace PerformanceFish;
|
||||
|
||||
public class GeneTrackerOptimization : ClassWithFishPrepatches
|
||||
public sealed class GeneTrackerOptimization : ClassWithFishPrepatches
|
||||
{
|
||||
public class GeneTrackerTickPatch : FishPrepatch
|
||||
public sealed class GeneTrackerTickPatch : FishPrepatch
|
||||
{
|
||||
public override string? Description { get; }
|
||||
= "Every pawn has a gene tracker, which is responsible for ticking each of their genes. Normally it ticks "
|
||||
@@ -41,7 +41,7 @@ public class GeneTrackerOptimization : ClassWithFishPrepatches
|
||||
genesToTick[i].Tick();
|
||||
}
|
||||
|
||||
if (instance.pawn.Spawned
|
||||
if (instance.pawn.IsSpawned()
|
||||
&& instance.Xenotype != XenotypeDefOf.Baseliner
|
||||
&& instance.pawn.IsHashIntervalTick(300))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user