Skip to content

Rate of garbage collection in KSP is highly increased #8

@marsfan

Description

@marsfan

Upon installing this mod in KSP 1.4.3, the rate at which the game initiates garbage collections is highly increased, resulting in a stuttering gameplay.

Mods Installed:

  • Module Manager
  • Commnet Constellation
  • memgraph

Memgraph is not needed, I just used it to verify details. This glitch occurs even if memgraph is uninstalled.

Procedure:

  1. Install aforementioned mods (via either spacedock or CKAN, it happens on both)
    2, Launch a save
    3, Build a simple rover of any design
    4, Launch onto runway.

When CNC is the only mod installed, the pause caused by garbage collection is manageable, but as the number of mods installed increased, the garbage collection happens even more frequently, and it pauses for longer. Without CNC, pauses occurred roughly every 30 seconds
screenshot14
With just CNC, they occurred around every 12 seconds, and were slightly noticeable.

screenshot12

With a large number of other mods installed, the pauses were highly noticeable and occurred every 5 seconds. I do not have a screenshot of this ATM unfortunately. I understand that other mods exacerbate this issue, but removing CNC greatly decreased the rate at which this happened and for how long it paused.

Additionally, with only memgraph installed, each refresh of the graph shows a 1MB increase in current memory, while with CNC installed as well it can increase as much as 5MB each refresh. I suspect some memory leak is causing the GC to trigger more often.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions