Jump to content

Stalling / Hitching / Pauses in KSP


Recommended Posts

On 23 November 2016 at 11:08 PM, katateochi said:

If you use the MemGraph mod to inspect what's going on you can see this isn't the case, yes there is a pause for autosaves but that's not nearly as frequent as the "stutter" which coincides with GC activity shown on the MemGraph display. 

Give it a try at that setting, but what I've found is that while that will lower the frequency of stutters, it will make each stutter more pronounced (as it's simply more memory to deallocate and reallocate)

 

This is going to become a defining characteristic of what makes a "good" (or rather, well made) mod.  Some modders are very experienced C# coders who will know how to best manage/minimise garbage production while others may not know how to deal with that at all.  It would be nice if the KSP dev team and some of the more experienced modders could put together a guideline for best practices, dos and don'ts, for minimising garbage production in mods. 

 

There is lots of good information on the Internet regarding this. Google is a good place to start. There have also been posts in the modding sub-forums on recommendations from the devs in the more recent GC clean ups of the stock code. All modders have to do is learn these tips and techniques and apply them. There's the tricky bit... And yes there are good, well written mods and there are the not so good when it comes to GC and heap allocations.

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...