Jump to content

How to Optimize KSP Like Crazy


rdude71

Recommended Posts

Now, to say KSP is lag-free would be a lie. Of course, the game is still in beta, so that's understandable. The game is very laggy though, especially when flying around large space stations, launching large rockets, etc. However, I discovered many ways to make KSP run practically lag-free until the devs implement a proper, long-term solution.

#1: Good hardware

I first got KSP almost a year ago on my 11" MacBook Air. Needless to say, that poor little laptop's 1.6 GHz single-core i5 couldn't handle the game. Great for web-browsing, but definitely not KSP. So, just recently, I got a new 3.6 GHz dual-core i7 MacBook Pro. The performance increase was amazing. So, good hardware is essential. No matter what, if you're going to play KSP, don't get a quad-core. Quad-cores are very fast, but KSP isn't 64-bit and doesn't support multiple cores at the moment because it runs on Unity, so make sure to get a computer with high individual core speed. For example: a 3.2 GHz dual-core i7 would be better for KSP than a 2.6 GHz quad-core i7.

#2: Settings

Lag at launch is an issue. Turn down render settings to fastest, turn off terrain scatters, disable V-sync, lower texture res to half, lower terrain detail to low, etc. All this will help tremendously with performance.

#3: Part Count

Keep your part count down. An awesome mod called the UbioZur welding mod allows you to weld parts together to make 1 part. It is fantastic at losing lag. Using this mod, a 1,000+ part station running at .2 FPS could easily become a 125 part station running at 65 FPS. I can't even explain how wonderful this mod is. Check it out: http://kerbalspaceprogram.com/ubioweldingltd/

Make sure to use UbioZur if you're building large ships/stations in orbit, docking to big ships/stations, launching massive rockets, the list goes on.

#4: Physics

I really don't know how this works specifically, but I think everyone should do this. Go into your KSP directory, open your settings.cfg file, and then change your max physics delta per frame to 0. This guarantees good FPS. Note: This can cause some issues with physics, so if you want to play it safe, make it .1 instead of 0. However, glitches are very rare (for me anyways). I am not responsible if this somehow damages your hardware/software (under foreseeable circumstances, it won't)

#5: Using these tips!

I ran out of ideas for 5, so this is it! I hope these help you, as they did me, and happy launching! Now, go forth and make massive space stations! :sticktongue:

Link to comment
Share on other sites

A good CPU does indeed increase performance, but there is no reason to avoid a quad-core CPU. In general quad-core CPUs are all-around faster than dual-cores, especially on the desktop where dual-core is limited mostly to low end options. Pretty much every modern CPU has some kind of turboboost; when you're playing KSP it usually runs at the dual-core speed unless you have heat issues. So even in laptops there is little to gain by sticking with dual-core only (high end quad-core mobile CPUs can get quite expensive, and aren't generally available in ultrabooks, but those are different issues).

The graphics setting you want to turn down during launch, or really all of the time, is the terrain settings value. The best option is to use the ocean terrain setting tweak found here: http://forum.kerbalspaceprogram.com/threads/43253-Default-Terrain-Quality-Without-most-of-The-Lag%21. But if you have a weak GPU then turning down some other settings is definitely a good idea.

Turning down the physics time per frame beyond the in-game limit of 0.03s/frame is probably not a good idea. You might be able to get away with 0.02 or 0.01, but this can cause issues, and in any case will make the launches of big crafts excruciatingly long. This setting defines the amount of in-game time that can pass between each frame (or really it's the max amount of time between physics steps). So at the lowest setting, 0.03 sec/frame, only 30 milliseconds of time can pass for each frame displayed on screen. Anything below 33 frames / second will result in in-game time running slower than real-world time. At the extreme ends, below 5 FPS, this can really slow things down; only 150 milliseconds of game-time for each second of real-time, making your 5 min launch more like 40 minutes.

Link to comment
Share on other sites

#1 isn't really accurate.

firstly you need to consider performance per clock, a modern processor is going to outperform a 5 year old one even at the same clock speeds, because the modern one is more efficient.

secondly, you need to consider turbo and or overclocking. a core i3-4340 is a dual core at 3.6ghz, while a core 4670k is a quad core at 3.4ghz, so by your logic the 4340 is better (dual core, and faster base clock speed). however, when you consider that the 4340 can run at 3.8ghz with turbo, and 4.2+ghz with overclocking, the 4670k becomes a better choice (assuming you are willing to spend the extra cash).

you want the fastest cpu (within buget limitations). dual or quad core is irrelevant, the unused cores will just shut off.

also, there are multi-threaded applications that are 32bit. 64/32 bit relates to the memory address size, so limits the usable ram, while single/multi-threads is the number of cpu cores it uses (in my dreams KSP is a 64bit multithreded application, along with dwarf fortress. and i have a ducati panigale superleggera. and more kittens (i'm dreaming, so i may as well run with it)).

the rest is good advice.

Link to comment
Share on other sites

  • 3 months later...

#3: Part Count

Keep your part count down. An awesome mod called the UbioZur welding mod allows you to weld parts together to make 1 part. It is fantastic at losing lag. Using this mod, a 1,000+ part station running at .2 FPS could easily become a 125 part station running at 65 FPS. I can't even explain how wonderful this mod is. Check it out: http://kerbalspaceprogram.com/ubioweldingltd/

Make sure to use UbioZur if you're building large ships/stations in orbit, docking to big ships/stations, launching massive rockets, the list goes on.

Agh! Found the solution I need and no 0.23 support. Don't really want to mess around with dlls. Might have to bite that bullet.

It sounds like maybe auto-welding struts or welding at least one end might be an easy way for the devs to improve performance.

How does this work with damage? If a strut breaks does the tank it is welded to blow up?....I'll ask in that thread.

Link to comment
Share on other sites

I'm pretty sure it's the GPU that's relevant when it comes to graphics, not the CPU. Unless you don't have a GPU, at which point, use linux.

I am running a humble old laptop and launching ships with names like "LEVIATHAN" with part counts over 900. I don't have a GPU to speak of, just some integrated mobile chip from back when AMD and Nvidia were on speaking terms. Sure, I turned down the graphics settings, which is a good start, but I didn't know about the Ubio Welding mod or the ocean tweak.

The big difference is the OS. When I found this laptop it was unusable because of its modest computing power and because Compaq, in the folly unique to corporate America, shipped it pre-installed with Vista. It would take a half-hour to boot. Its original owner was replacing it and told me I could have it for free if I got it to work. So I blasted it with linux.

There are slimmer distros out there, but ubuntu 12.04 is the distribution for migrating gamers, as the linux port of Steam was made for it. It's also the easiest to install and use; the distro's old tagline was "linux for human beings." Not that Unity is much better than Metro, but I replaced that desktop environment with gnome, and earned all the pretty ribbons you see in my signature. I've sinced moved on to lubuntu, as its DE (and everything about it) is designed to be lightweight. Less RAM and clockcycles consumed by the OS means more RAM and clockcycles available for KSP.

Link to comment
Share on other sites

Agreed. When I saw your opinion about Unity and lightweight I start to scream in my head: Use LXDE! Then I continued reading your post and then you say that you use lubuntu, which is Ubuntu with LXDE

Again, if anyone use Linux at this point, I suggest LXDE, with its minimalistic design but it allows for future eye candy optimization like conky or compiz effects, it really matches it

And on topic with KSP, Linux have the upper hand of 64 bit KSP, which is good for loading all of those planet expansions mod

Link to comment
Share on other sites

Here are another possible tweak to get even more speed:

-use of ramdisk for all or a subset of game folders (people who have known the Amiga know what I'm talking about ;) ), ramdisk is a drive which use physical memory as storage, so it's... very fast ! Usefull for tons of small files (parts) or very huge files (KSP_Data, > 700 MB).

There is a shareware tool called Ramdisk than allow to do that on windows, free version allow up to 4GB drive, which is good enough for KSP.

-in addition to ramdisk, there is also Junction Link Magic which allow to create symbolic links on windows (as on Unix* systems). If your computer and/or your power supply are not stable which may lead to data loss, you can create a KSP install on the ramdisk, and keep the "saves" folder on a HD.

I have tested the ramdisk as well as SSD full install for the game and it doesn't improve the performance so much (loading time still quite long, despite the fact I don't use tons of mods, with a HGST HTS54101A9E680 drive and an Intel Core i7-4700HQ 2.4GHz) and the symlinks can be usefull for SSD as KSP is not SSD friendly when logs are not disabled.

Link to comment
Share on other sites

#4: Physics

I really don't know how this works specifically, but I think everyone should do this. Go into your KSP directory, open your settings.cfg file, and then change your max physics delta per frame to 0. This guarantees good FPS. Note: This can cause some issues with physics, so if you want to play it safe, make it .1 instead of 0. However, glitches are very rare (for me anyways). I am not responsible if this somehow damages your hardware/software (under foreseeable circumstances, it won't)

:

I'm semi-certian a value of zero is impossible and is automatically rounded up a value on runtime. If it is at zero the game would be allowed to slow the simulation all the way down to a standstill i think. Or it may be that there is a failsafe in the code to stop this in which case setting to zero effectively is no different to setting it to one step higher anyway. I may be wrong on that, but I think I'm right.

Actually setting it lower helps the physics be more accurate, but at the expense of your simulation time being lower than real time (1s in the game is less than 1s in the real world), setting it higher sacrifices accuracy in order to keep your simulation time high. If you want to make the game appear to run fast you want to be increasing this value. With a low value it run smoothly but slowly. So you will get better framerates but at the expense of things happening slowly on the screen. It doesn't actually effect performance, just where the performance is spent. It depends on what type of lag you prefer, the jutter/skipping of a low framerate and a bad simulation or the everything going smoothly and accurately but it taking 5 times as long for things to happen.

You can tell if the game is slowing down time by the colour of the timer. Green means everything is running at 1:1 speed, yellow means it's slowing things down.

Link to comment
Share on other sites

  • 2 weeks later...
  • 8 months later...
A good CPU does indeed increase performance, but there is no reason to avoid a quad-core CPU. In general quad-core CPUs are all-around faster than dual-cores, especially on the desktop where dual-core is limited mostly to low end options.

Intel Pentium Processor G3258

It wont boost your performance vs a Quad but at £55 and I don't know how much its going for in the US but you can over clock it to 4.7Ghz with load temps of 35 - 40C with a reasonably priced after market cooler.

and if you win the batch lottery and get a good to really good chip you can over clock it to 4.9-5Ghz and again its a £55 chip you can burn the f***er in a year and buy another one and repeat that the next year and it will still be cheaper than a Intel Core i5 4690K.

Which personally I wouldn't over clock a 4690K for like 2 - 3 years after I bought it because I wouldn't want it to break any sooner because I personally couldn't afford to replace it but £55 I can do that so in single threaded application or even dual threaded applications the G3258 is generally going to be a better performer for me.

Oh and the G3258 beats all the AMD chips when overcloaked also obviously you could over cloak the AMD chips also but the cheap once wont over clock so high and the more expensive once are more expensive.

I say this having a 3570k and wishing I had waited a year for this chip. So its not like I'm defending it because I have it and want to protect that decision.

Its just that it is a really really good chip for the money.

Edited by etheoma
Link to comment
Share on other sites

  • 7 months later...

I've been eyeing a new PC build, and it looks like the Devil's Canyon i7 4790K has a very good bang:buck ratio. I noticed, though, that the current performance metrics listed here actually shows better performance under the 4690K, when overclocked and used under x64 (presumably Linux, which is how I also run KSP).

Is it safe to assume that under 1.1, the 4790K will be better utilized? Of course, I'll be playing other CPU intensive games as well, such as Cities Skylines, Civ, and Fallout 5 (this one will likely be much less CPU intensive).

I'll likely wait for the Unity update before pulling the trigger anyway, since most of my gaming time is spent on KSP.

Link to comment
Share on other sites

  • 2 weeks later...
I've been eyeing a new PC build, and it looks like the Devil's Canyon i7 4790K has a very good bang:buck ratio. I noticed, though, that the current performance metrics listed here actually shows better performance under the 4690K, when overclocked and used under x64 (presumably Linux, which is how I also run KSP).

Is it safe to assume that under 1.1, the 4790K will be better utilized? Of course, I'll be playing other CPU intensive games as well, such as Cities Skylines, Civ, and Fallout 5 (this one will likely be much less CPU intensive).

I'll likely wait for the Unity update before pulling the trigger anyway, since most of my gaming time is spent on KSP.

fallout 5? i know im a heavy sleeper but how long have i been under?

Link to comment
Share on other sites

  • 2 months later...
I've been eyeing a new PC build, and it looks like the Devil's Canyon i7 4790K has a very good bang:buck ratio. I noticed, though, that the current performance metrics listed here actually shows better performance under the 4690K, when overclocked and used under x64 (presumably Linux, which is how I also run KSP).

Is it safe to assume that under 1.1, the 4790K will be better utilized? Of course, I'll be playing other CPU intensive games as well, such as Cities Skylines, Civ, and Fallout 5 (this one will likely be much less CPU intensive).

I'll likely wait for the Unity update before pulling the trigger anyway, since most of my gaming time is spent on KSP.

I just bought the i7 4790k with the asus z97 board and got the nvidia gforce 980ti and have 32 g of ram. The game runs a like a dream under 450 parts. I would just do that setup and never look back. The computer that I just built cost $1100 and I will last me for over 3 years of gaming at the highest quality.

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