Jump to content

Game stuttering every 10 seonds or so


Recommended Posts

Hello,

Since i play KSP (0.xx) I have stuttering every few seconds. It is getting worse and worse when i play more and more

Yes i know many peole have this problem, but i find no soloution. I searched a whole day how to fix that. Nothing helped. I tried the following:

  • reinstalling the game
  • playing without and with mods
  • installing memgraph
  • playing in 32bit (not even starting)
  • playing in 1440p oder 1080p (i have a 4k Monitor)
  • put the game in min. graphic settings
  • put the game on an SSD (everytime)
  • starting the game with dx11 or opengl

 

Nothing worked for me... 

If you need more information just ask. Also sorry for my bad english :)

 

System:

  • GPU: Geforce GTX 1070 (MSI Gaming X)
  • CPU: I7-4790
  • RAM: 16 GB (BallisticX Sport 2 x 8GB)
  • Windows 10
Link to comment
Share on other sites

On 12/3/2017 at 9:46 AM, BloodBullet said:

Hello,

Since i play KSP (0.xx) I have stuttering every few seconds. It is getting worse and worse when i play more and more

Yes i know many peole have this problem, but i find no soloution. I searched a whole day how to fix that. Nothing helped. I tried the following:

 

Nothing worked for me... 

If you need more information just ask. Also sorry for my bad english :)

[...snip...]

As @maceemiller stated, this is more than likely caused by Unity's (Mono's) Garbage Collection routines.  (google for 'Unity Garbage Collection' if you want more info on what that is, and why it matters; be prepared for a boring technical read though)

Try using MemGraph (a mod), and then using its 'increase heap' option.  This should reduce the frequency of the stutters, but it cannot eliminate them entirely (nothing can, except for 100% garbage-generation-free code, which is nearly impossible in managed languages).

 

Link to comment
Share on other sites

As the other guys have said, it's because of the garbage collector. It happens in a pure stock game but mods (some more than others) make it worse. MemGraph does reduce the problem, but it can't cure it completely. 

When you install memgraph you want to change the first two lines in settings.cfg like this so it applies the heap padding automatically and doesn't show the window by default (Mod-KeypadMultiply to toggle it in game).

visible = false
applyPadding = true

Then you can tweak the last line in padheap.cfg. Basically the bigger the value the longer the gap between stutters, BUT the trade off is the actual freeze will be longer too, so it's a balance.  It also depends on how much RAM you've got.  I set mine to 4096 and with a fairly heavily modded setup the stuttering is not too bad (maybe 1 sutter every 70-80 seconds), but KSP does end up sitting on about 15-20GB of RAM.
It also gets worse the longer you play, and as KSP no longer has the inbuilt 'feature' of restarting unexpectedly, it does pay to restart the game every now and then. 

There is some hope on the horizon, the next major KSP release should upgrade KSP to a newer version of unity which has a better GC so fingers crossed that will improve things. 

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