Skip to content

Performance Issue #842

@simplyWiri

Description

@simplyWiri

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).

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions