Jump to content

Closing stuff makes KSP run faster


montyben101

Recommended Posts

Just noticed something:

Was launching a shuttle into orbit and it seemed to take longer than usual so I watched the mission clock to see how much slower, a second on the mission clock took about two seconds IRL

I then closed the music I was listening too on you tube and also Skype and suddenly it was back to normal!

Never noticed this before but this might be why I'v been having lag issues!

Link to comment
Share on other sites

Also, if you use any mods that show you info, that will also slow it down on a slower pc. For example, if you use mechjeb, don't keep the delta v window open. And edit the other windows to show you only what you really need to know. OR, just upgrade your PC. My mission clock doesn't start flashing between yellow and green until I get to 650+ part ships

Link to comment
Share on other sites

Also, if you use any mods that show you info, that will also slow it down on a slower pc. For example, if you use mechjeb, don't keep the delta v window open. And edit the other windows to show you only what you really need to know. OR, just upgrade your PC. My mission clock doesn't start flashing between yellow and green until I get to 650+ part ships

Woah. What processor do you have?

Link to comment
Share on other sites

Programs like Jetboost are great if you are running win7 with aero themes, it basically just shuts down all the services and extra programs you don't need running then restores them at the push of a button.

it depends on the game but running jetboost can give me up to 10 fps extra in some games.

Link to comment
Share on other sites

Umm, isn't KSP single-thread only. Meaning, it only runs on one core? I was under that impression. And if so, running stuff in the background won't matter much as it'll run off a core that isn't also running KSP.

Of course - I could be wrong. It have been known to happen once or twice :P

Link to comment
Share on other sites

Umm, isn't KSP single-thread only. Meaning, it only runs on one core? I was under that impression. And if so, running stuff in the background won't matter much as it'll run off a core that isn't also running KSP.

Of course - I could be wrong. It have been known to happen once or twice :P

Perhaps he's running a dual core system... Or, even if not running that, could be the processor is running hot and clocking down.

Link to comment
Share on other sites

Intel i7 4790k @ 4.5Ghz. Runs smooth even with all graphics options maxed.

I wish I would've wen't for a better Processor, currently I have the i7 4770 3.4Ghz (Non k) And I'm getting 30-35 Fps with just 211 parts... What a massive difference..

Link to comment
Share on other sites

I wish I would've wen't for a better Processor, currently I have the i7 4770 3.4Ghz (Non k) And I'm getting 30-35 Fps with just 211 parts... What a massive difference..

Well the 4770 and 4790k are both LGA1150 so you could upgrade it using the same motherboard...

Link to comment
Share on other sites

Well the 4770 and 4790k are both LGA1150 so you could upgrade it using the same motherboard...

I don't have a problem with upgrading anything. Heck, even if I had to I would buy a new motherboard... Its the "Money" that is the problem... Also my PC is just a few months old.. Not going to spend on any upgrades anytime soon.

Link to comment
Share on other sites

Just noticed something:

Was launching a shuttle into orbit and it seemed to take longer than usual so I watched the mission clock to see how much slower, a second on the mission clock took about two seconds IRL

I then closed the music I was listening too on you tube and also Skype and suddenly it was back to normal!

Never noticed this before but this might be why I'v been having lag issues!

Your computer uses resources for literally everything you see (and everything you don't!). The more processes you "kill" the more resources you have at your disposal.

If closing youtube and skype significantly increases your KSP performance, it could mean you need to upgrade your computer. Likewise if you're playing on a laptop, this is fairly normal behavior as you can only fit so much hardware in such a small space.

Link to comment
Share on other sites

KSP is indeed a monocore app at this moment. So if the OP is having improvements on his condition by disabling other things , that is becasue those things were competing with KSP for the core in question. That is easily avoidable tough ...

Edited by r_rolo1
mis-enter at first try
Link to comment
Share on other sites

KSP is indeed a monocore app at this moment. So if the OP is having improvements on his condition by disabling other things , that is becasue those things were competing with KSP for the core in question. That is easily avoidable tough ...

You didn't explain the how to him. lol

If you have a dual-core or multi-core Windows system, Win 7 or newer, you can set KSP's affinity (on start) to a specific core, and then set all the other concurrent programs that you plan on running to the other core. A simple batch file can accomplish this. On a dual-core system, doing so will likely make your other programs lag, competing with each other for the one core, but at least KSP will be left to run unimpeded. On a multi-core (4/6/8), it shouldn't. If you still have lag in doing this, then perhaps something else is going on with your system.

Link to comment
Share on other sites

KSP is indeed a monocore app at this moment. So if the OP is having improvements on his condition by disabling other things , that is becasue those things were competing with KSP for the core in question. That is easily avoidable tough ...

I suspect it's related to that Intel TurboBoost thing. In that case, it wouldn't matter which cores are occupied.

(Quick explainer: when facing a single-thread situation, the CPU may shut down the unneeded cores and overclock the single core that's still running. Requirement is that all cores but one are idle; playing music isn't very demanding, but it requires one core to wake up every so often. 99% idle time isn't enough for turboboost to kick in.)

Link to comment
Share on other sites

I suspect it's related to that Intel TurboBoost thing. In that case, it wouldn't matter which cores are occupied.

(Quick explainer: when facing a single-thread situation, the CPU may shut down the unneeded cores and overclock the single core that's still running. Requirement is that all cores but one are idle; playing music isn't very demanding, but it requires one core to wake up every so often. 99% idle time isn't enough for turboboost to kick in.)

What if, with KSP given affinity to one core, the system's idle process daemon is given affinity to another? Would that prevent the core shutdown you describe?... or at least greatly reduce it?

Link to comment
Share on other sites

When discussing this topic there are two important things to consider:

1) You are not smarter or more informed than your OS' scheduler and therefore are not better at deciding which process should run where.

2) "Turboboost" does not "shut down" (from the OS' perspective) cores, and makes its decision on when to run one or more cores above the default frequency on a whole number of metrics it measures itself (temperature, current, operations computed et cetera). The number your OS displays to you is only a gross estimate of the actual workload on the cpu (and so are the graphs displaying the workload of each core).

In the latest CPUs cores are even put to sleep without the OS noticing it ("Active Idle") interrupts are rerouted to a still running core.

You can find a more comprehensive explanation from an intel engineer in the comments here https://plus.google.com/+TheodoreTso/posts/2vEekAsG2QT

tl;dr:

Don't think you can outsmart your hardware (Especially not on windows without stuff like powertop and the likes to actually measure the impact or non-impact of things you changed).

Windows isn't as dumb as it was about scheduling and what was maybe needed during the Pentium4 era to manage power/CPU states is irrelevant since the first Core iX cpus.

Edited by jfx
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...