Hi - I noticed large lag spikes when hosting guests who were shopping, it seems that part of the root of the issue is this code. This seems to be CE compatibility code which isn't even relevant in my case (I am not running this mod).
|
private static ThingComp GetInventory(this Pawn pawn) |
|
{ |
|
return pawn.AllComps.FirstOrDefault(c => c.GetType().Name == "CompInventory"); |
|
} |
I will take a look at this, but I think this should be pretty trivial to fix.
Hi - I noticed large lag spikes when hosting guests who were shopping, it seems that part of the root of the issue is this code. This seems to be CE compatibility code which isn't even relevant in my case (I am not running this mod).
Hospitality/Source/Source/Utilities/ItemUtility.cs
Lines 319 to 322 in 81d5273
I will take a look at this, but I think this should be pretty trivial to fix.