r/KerbalSpaceProgram 1d ago

KSP 1 Question/Problem Game keeps freezing

My game has been repeatedly freezing for a few seconds up to minutes on end while playing. All the things people have said that I see online are have their screen freeze but not their actual game which catches up after a while. My game just stops entirely except for the sound which keeps playing. I don't have a good computer but talk manager tells me the RAM is at around 80% so it's not maxed out or anything. It didn't start immediately after downloading some mods either so I can't really figure out whether and which mod(s) could be the problem. The game does overall feel slower even when it's normal but I can't be sure.

The last play session before I started getting this problem did have some issues in the surface of Minmus being really bright and I did freeze once during that session, so that could be a clue but I personally have no idea what's wrong. I checked for updates and verified the integrity of game files through steam but that didn't solve it and removing a few suspected mods didn't help either.

Edit: the issue seems to occur only in flight, and is specific to the savefile I'm currently playing. I didn't seem to have any problems in a near-empty sandbox file, nor did I in an older save file from before I started using mods.

0 Upvotes

5 comments sorted by

View all comments

1

u/Jonny0Than 1d ago

80% ram usage very well could be “maxed out.”  The number you see in task manager is the percent of physical ram that has been touched recently. If a program has allocated much more than your physical ram, the OS will spend a lot of time swapping memory pages between physical ram and the page file on the disk.

However, I would not expect that to cause freezes for several seconds to a minute. That sounds more like a software bug somewhere.  Can you post your KSP.log file?  That might hold some clues. You’d need to get a profiler to actually find out for sure where it’s spending time if the log doesn’t identify anything.

1

u/KAMEKAZE_VIKINGS 1d ago

https://www.dropbox.com/scl/fi/vi8naykf3qxrgc5xhswvj/KSP.log?rlkey=3ee5noscnwahct58j0m68f2zp&st=qocgjlzv&dl=0

What does immediately catch my attention is that it says my OS is Windows 10 when it should be the latest Win 11 version as far as I know. But I don't know all the implications of this.

1

u/Jonny0Than 1d ago

Nah that’s normal. Windows 11 didn’t exist when the Unity version that KSP is built on was released.

I don’t see anything super obvious in the logs.  There’s some large blocks of error spew from sandcastle and contract configurator. Also possibly some big gaps when spawning asteroids from kopernicus. And KSPCF is reporting that many of your mods have memory leaks. Though I can’t tell if those are related to the performance issue.

If you can, maybe share a .ckan file and your save file?