KSP-RO / ProceduralParts

A continuation of StretchySRBs, which is a continuation of StretchyTanks
71 stars 79 forks source link

Very long delays with frozen GUI on editor "undo" and scene changes for craft correlated with repetitive PParts log msg #273

Closed mgalyean closed 1 year ago

mgalyean commented 4 years ago

KSP 1.10.1, Debian Buster, quite a few mods (see log). I am not sure this is a Procedural Parts issue but it is the only thing showing up in KSP.log during the span it occurs typically, a sample of the log entry is below, ful log at end. I notice the lag and entries most at scene swaps and editor Undo/ctrl-z actions:

[LOG 15:05:38.598] [PartSet]: Failed to add Resource -1154601244 to Simulation PartSet:383954 as corresponding Part Procedural Liquid Tank-2511137217 SimulationResource was not found.

There will be many of these as several attempts appear to be made for each tank and I use a lot of procedural tanks because they are great. A log line like that will take a second or more to spit out so I'm seeing sometimes 3 to 4 minutes lags at times on larger craft. I have 16G or ram, but and not cutting much into the swap but touching it

KSP.log

DRVeyl commented 3 years ago

ProcParts itself shouldn't do anything with resource simulation. At least, I've never noticed a line like that during any of my debugging here. Doesn't mean it can't happen. The guess I would make is something changed resource identifiers, and whatever resource you had in your craft file is no longer recorded that way. [LOG 03:25:14.537] [PartSet]: Failed to add Resource -1483389306 to Simulation PartSet:62 as corresponding Part Procedural Liquid Tank-3485150590 SimulationResource was not found. - I wouldn't know what resource "-1483389306" is supposed to be, but can you duplicate this with just a very simple [new, not saved .craft] craft with a procedural tank and some resource added?

Your JanitorsCloset appears very unhappy.

siimav commented 1 year ago

I believe #341 fixes this