Jump to content

Is my KSP "bleeding"?


Recommended Posts

Are there any other assets or objects that affect RAM usage, other than loaded textures/parts etc. that are the usual culprits?

I have a large list of mods installed (can provide info when I get home) but it has shown itself to be stabel enough to run, I have many hours of usage with this build.

I do get the "scene change" limitation, in that play time without crashing seems to be based on how many times I "change scene" (move from focused ship to VAB, for example, or vice versa). Depending on KSPs "mood" I get maybe up to 5 or 6 changes before a CTD, then I just re-load and continue where I left off.

But I am starting to see something confusing. I will occasionally get what appears to be a memory-limit hangup on load with this build which is not resolved by simply re-trying the load.

Sometimes if I remove the crash folders that appear in the KSP directory, it will load up succesfully again (are these occupying resource somehow??). Sometimes it take this, plus a reboot of the computer (freeing up resource??). Several times I have been forced to cull parts out of various mods to acquire more excess memory. Part/mod removal isn't always necessary to get it to start, but I have been unable to re-insert those that I have so far removed (parts/mods that were once part of a working build).

I can usually get it to start again, but I am experiencing a slow drain of mods/parts :confused:;.;:huh:

I understand I am "stressing" the program with the abundance of mods, but once working, I expected it to continue to do so? I can live with crashes of a certain frequency because so far they have been fairly benign, no data or save loss experienced.

I also can accept sacrificing parts/mods for a stable build, but this kinda chronic deterioration is weird....i can find a mod build that will load up, play for a couple of hours, crash to desktop (as expected) and it will fail to load again without some of the above intervention.

Do spaceborne craft take up much resource whilst not the actively focused vessel? Does debris? I don't have that many craft in space, maybe 30 or so communication satellites, a few spend lander probes, that sort of thing, maybe 20 or 30 pieces of debris.

Is there a log file somewhere getting bigger and bigger, using resource?

Any help or insight appreciated :)

Cheers

Link to comment
Share on other sites

I can't think of any good reason for the presence of previous crash dump files or other log files to affect the amount of memory used by the game though I have seen similar reports before. Unfortunately, the way that the various memory management systems works can mean that a failure can be highly dependent on the whole pattern of memory allocation in the program so a slight change in the order of some things being done early in the start-up (this could even be a very slight delay due to another process on the machine allowing a different number of GPU frames to be rendered before the code continues) could have a significant impact.

However, the gradual deterioration really does imply that something is using more and more memory over time. If these hangs are occurring before you get to the main menu then your saves really shouldn't affect anything but I suspect the game may do some sort of scanning of them (easy to test, just create a load of extra copies of your save folder and see if it stops being able to load). If this is the case then you could keep your saves outside the KSP folder and only move the one in that you want to play. Bit of a hassle really.

Another possible culprit could be mods that create cache files to speed up loading. When these cache files are present the mod may use a different amount of memory (or even just a different allocation pattern) or the mod may have some bug that causes the cache files to grow over time. I'm certainly not blaming any specific mod but ModuleManager does create quite a large cache file especially on heavily modded installs and texture replacement mods generally save the compressed textures for faster loading.

As for vessels in a save using memory, yes, they do use some memory when not active and they also cause a general slowdown of the game (in any scene where the game clock actually advances) due to their orbits needing to be tracked for SOI changes or entering or leaving the physics bubble and/or render distance. However, unless you get to silly levels I doubt it will make a lot of difference to the overall memory usage but, again, it should be fairly easy to test. Simply create a copy of your save and delete all the debris and compare how much memory is used by a clean run of KSP that just loads the save. All the vessels should be loaded in the space center scene because the clock does run but you could also try switching to fly a particular vessel.

Otherwise your best bet is to remove something really significant that you can live without for a little while (e.g. a big skybox or other large, purely visual enhancement) and wait for the coming Unity 5 update which should include a 64bit client that can use significantly more memory.

Link to comment
Share on other sites

If you are running a Windows OS, and pushing total RAM usage with lots of mods, it may be a Windows process (or other background process on your system) kicking in and pushing you past the limit.

You could try this mod (which, IIRC, has a low RAM footprint), and see if there are large variances in JUST the KSP usage...

http://forum.kerbalspaceprogram.com/threads/92907

I used to have a dual-boot Windows install where one of the OS's I streamlined, and turned off all unnecessary (not needed for playing KSP) Windows background processes...You can use this website as a guide:

http://www.blackviper.com/

By turning off all networking and internet access processes (if you can play KSP without internet access), you generally cut Windows OS RAM usage by 300-500 MBs... (I went from 1.2GB to 750MB RAM usage at idle).

Windows Task Manager is your friend to see what is going on with Windows RAM usage and what processes and background programs are running...

Thats why I made a separate streamlined Windows install ONLY for playing KSP, with TONS of mods...I was able to run close to 120 mods this way...

Also, since there is no internet access, you should be OK running with NO firewall and/or anti-virus, which eats up TONS of RAM...

Edited by Stone Blue
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...