Skip to content

Performance issue: ProgressTracking.Update seems to be O(bodies * vessels) #55

@JonnyOThan

Description

@JonnyOThan

In my "twitch plays KSP" stream I have a game save with galaxies unbound + lots of other planet packs (320 bodies in total) and LOTS of kerbals. It was running slow so I decided to attach a profiler and was astonished to see this:
image

A brand new save in the same universe has ProgressTracking.Update at about 5ms, which is still astonishingly high but is likely related to the number of bodies.

I haven't looked into what this function is doing, but it would be awesome to optimize this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kspModdingModding fix or API extensionkspPerformancePossible performance improvement in KSP

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions