Jump to content

Extreme lag


Recommended Posts

I decided to remove Parallax and instead install AVP. The game decided to run way WAY WAY faster.

I installed Distant Objects something and PlanetShine. It started lagging a 1 part craft on the launchpad. Deinstalled both. No difference.
Any suggestions?

Modlist: (according to CKAN)
 

Spoiler

[DEPRECIATED] FreeIVA Mk3/Mk2 Passthrough (FreeIVAMk3Mk2Passthrough 3)
B9 Part Switch (B9PartSwitch v2.20.0)
BetterTimeWarpContinued (BetterTimeWarpCont 2.3.13)
Camera Tools continued (CameraTools v1.28.0)
ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.21)
Environmental Visual Enhancements - Stock Planet Config files (EnvironmentalVisualEnhancements-HR 2:EVE-1.2.2-1)
Environmental Visual Enhancements Redux (EnvironmentalVisualEnhancements 3:1.11.7.1)
FreeIva (FreeIva 0.2.15.2)
Harmony 2 (Harmony2 2.2.1.0)
HullcamVDS Continued (HullcamVDSContinued 0.2.2.1)
KS3P (KS3P V6.1)
Mk3 Shuttle Mid-Deck IVA Refurbished (Mk3ShuttleMidDeckIVARefurbished 0.1.0)
Module Manager (ModuleManager 4.2.2)
Near Future IVA Props (NearFutureProps 1:0.7.1)
Real Plume (RealPlume 2:v13.3.2)
Real Plume - Stock Configs (RealPlume-StockConfigs v4.0.8)
Reentry Particle Effect Renewed (ReentryParticleEffect 1.9.1.1)
Scatterer (Scatterer 3:v0.0838)
Scatterer Default Config (Scatterer-config 3:v0.0838)
Scatterer Sunflare (Scatterer-sunflare 3:v0.0838)
Shabby (Shabby 0.3.0.0)
SmokeScreen - Extended FX Plugin (SmokeScreen 2.8.14.0)
Spectra Scatterer Jool shine on Laythe (Spectra-ScattererJoolShineOnLaythe 1.6.5)
SRB Waterfall Effects (SRBWaterfallEffects 2.3.5)
Stock Waterfall Effects (StockWaterfallEffects 0.7.0)
Textures Unlimited (TexturesUnlimited 1.5.10.25)
Through The Eyes of a Kerbal (ThroughTheEyesOfaKerbal 2.0.4.4)
Toolbar Controller (ToolbarController 1:0.1.9.9)
Transfer Window Planner (TransferWindowPlanner v1.8.0.0)
TUFX (TUFX 1.0.6.0)
Waterfall Core (Waterfall 0.9.0)
Who Am I? (WhoAmI 1.4.0)

AVP too, but CKAN won't show it for some reason. I installed it from CurseForge.

 

Edited by Aerodynamic Kerbal
Link to comment
Share on other sites

4 hours ago, Aerodynamic Kerbal said:

I installed Distant Objects something and PlanetShine. It started lagging a 1 part craft on the launchpad. Deinstalled both. No difference.

Weird. DOE taxes the 3d engine a tiny little bit for every craft that goes on rails but is still on the configurable visible range - but, frankly, you need to get a really crowded scene in order to perceive something.

Not to mention that by removing DOE, things should had be back to "normal".

Humm...

Let's do a test: completely remove Internet access from the computer (pull the ethernet cable, turn wifi off, whatever). Then reboot the computer and try again.

Then restore the internet connection and do the test again.

I'm being monitoring KSP's internet access for some time already, and at least on MacOS, KSP opens 3 connections and keep 2 alive for the whole session. Being https connections, I can't check what they are doing, but the packet exchanges besides not being too big, the receiving ones are big enough to transport code - and this is a plausible explanation to a weird "MonkeyPatching Exception" I got once while trying to do something on APP.

Link to comment
Share on other sites

6 minutes ago, Lisias said:

Weird. DOE taxes the 3d engine a tiny little bit for every craft that goes on rails but is still on the configurable visible range - but, frankly, you need to get a really crowded scene in order to perceive something.

Not to mention that by removing DOE, things should had be back to "normal".

Humm...

Let's do a test: completely remove Internet access from the computer (pull the ethernet cable, turn wifi off, whatever). Then reboot the computer and try again.

Then restore the internet connection and do the test again.

I'm being monitoring KSP's internet access for some time already, and at least on MacOS, KSP opens 3 connections and keep 2 alive for the whole session. Being https connections, I can't check what they are doing, but the packet exchanges besides not being too big, the receiving ones are big enough to transport code - and this is a plausible explanation to a weird "MonkeyPatching Exception" I got once while trying to do something on APP.

I use WiFi on a laptop, anyways I forgot to mention the parameters:

Model: Acer Nitro 5 (AN515-55)

CPU: Intel i5 10300H

GPU: RTX-3050 (laptop)

RAM: 2X8GB

+What other mods from my pack could cause the lag?

Edited by Aerodynamic Kerbal
Link to comment
Share on other sites

1 minute ago, Aerodynamic Kerbal said:

Model: Acer Nitro 5 (AN515-55)

CPU: Intel i5 10300H

GPU: RTX-3050 (laptop)

RAM: 2X8GB

I managed to run KSP 1.12 after a lot of tricks and compromises on a MacMini 2012 (i7, 16GB, Intel HD4000).

It looked like crap, but it worked.

Your hardware definitively is not the issue - your i5 is at least twice as fast as my i7.

Try the WiFi stunt - at very least, it will rule out a weird hypothesis that is haunting me for months already.

Link to comment
Share on other sites

16 minutes ago, Lisias said:

I'm being monitoring KSP's internet access for some time already, and at least on MacOS, KSP opens 3 connections and keep 2 alive for the whole session. Being https connections, I can't check what they are doing, but the packet exchanges besides not being too big, the receiving ones are big enough to transport code - and this is a plausible explanation to a weird "MonkeyPatching Exception" I got once while trying to do something on APP.

Interesting.  I thought I'd noticed that scene changes were quicker when I had a decent internet connection, while slow on a sketchy connection or offline.

I also get a very long delay after attaching a part via KIS.  I rarely have a good connection, or any, on my game machine.  I wonder if KIS attach is triggering KSP to attempt network activity.  I know in general that Linux can put a very high priority on network driver code to the point the OS UI can get laggy if the connection sketchy

Link to comment
Share on other sites

6 minutes ago, Aerodynamic Kerbal said:

When I think about it... Could KSP run faster with 5G rather than 2.4G?

If my hypothesis is right, probably.

But the key factor here is latency, the packets are pretty small so more bandwidth will not compensate a bigger lag while making connections or transmitting data.

To tell you the true, I think the best way is to just prevent these connections to happen, so there's nothing to be transmitted at all - and, so, the problem is solved by making it impossible to happen.

Link to comment
Share on other sites

24 minutes ago, Lisias said:

If my hypothesis is right, probably.

But the key factor here is latency, the packets are pretty small so more bandwidth will not compensate a bigger lag while making connections or transmitting data.

To tell you the true, I think the best way is to just prevent these connections to happen, so there's nothing to be transmitted at all - and, so, the problem is solved by making it impossible to happen.

So... It should run slower by disabling the WIFI?

Edited by Aerodynamic Kerbal
Link to comment
Share on other sites

1 minute ago, Aerodynamic Kerbal said:

So... It should run slower by disabling the WIFI?

Nope. I expect it to run faster, as the connections are all off and nothing will be sent or received.

BUT… I can be wrong, so please report your findings.

Link to comment
Share on other sites

Just now, Aerodynamic Kerbal said:

May I need to close all other applications for a better result?

Nope, but closing them will save memory and it will make your gaming better in a way or another - and without Internet connection, most of them will be useless anyway.

Keep in mind that if you confirm our hypothesis, there're alternatives that will allow you to keep the Internet alive but still prevent KSP from opening connections. What we are doing now is just checking things the fastest and easiest way possible. Once we know exactly what's happening, a better solution will be provided.

Link to comment
Share on other sites

11 minutes ago, Lisias said:

Nope, but closing them will save memory and it will make your gaming better in a way or another - and without Internet connection, most of them will be useless anyway.

Keep in mind that if you confirm our hypothesis, there're alternatives that will allow you to keep the Internet alive but still prevent KSP from opening connections. What we are doing now is just checking things the fastest and easiest way possible. Once we know exactly what's happening, a better solution will be provided.

I tried with 2.4G and... I feel like theres a very slight difference of about +5 fps

I might try uninstalling Textures Unlimited, as I installed it with DOI and PlanetShine.

Nope... 5G still feels the same...

 

Link to comment
Share on other sites

58 minutes ago, Aerodynamic Kerbal said:

I tried with 2.4G and... I feel like theres a very slight difference of about +5 fps

<…>

Nope... 5G still feels the same...

Useful information, thank you.

At 2.4G, you felt a small improvement. At 5G, you didn't felt any difference.

So networking is a factor, depending of how your connection behaves. This is surely useful information for people playing KSP on notebooks while commuting or travelling!

Spoiler

(hint to Brazilians: 5G in Brazil is a joke, they gave us the frequency but the current infra-structure is not following it - I got better results with 3G sometimes, because there're way less people using it nowadays and so there're some idle bandwidth available).

 

Edited by Lisias
Uh, misunderstood the message! :P
Link to comment
Share on other sites

I really feel like giving up, tried removing all mods and then reinstall them, meh. Removed my post processing mods, no difference. I have only one other option:

Could cache cause problems? A fresh reinstall might fix the entire problem.

12 minutes ago, Lisias said:

At 2.4G, you felt a small improvement. At 5G, you didn't felt any difference.

I meant that 2.4G and 5G felt basically the same.

Link to comment
Share on other sites

3 minutes ago, Aerodynamic Kerbal said:

I really feel like giving up, tried removing all mods and then reinstall them, meh. Removed my post processing mods, no difference. I have only one other option:

Could cache cause problems? A fresh reinstall might fix the entire problem.

I fear it will not, unless you have something corrupted and mangled that so could be playing havoc at runtime. A Installation Check from Steam would verify the original binaries, and unless you had manually mangled something on the GameData, reinstalling things will essentially end up with the same environment.

You can try something: start a new (disposable) game, cheat your way into the same level you have on the "real one" and try to do something similar you are doing on it. Sometimes, installing or uninstalling things on a living savegame can cause some trouble. Doing this test will tell us if this is the case.

Additionally, you may want to five this thread a peek:

That MONO_THREADS_PER_CPU stunt works, as it appears! :) (it's a very technical thingy, but in essence, it tells the CPU to run less things at the same time in order to have the ones it effectively run working way faster by less competition to resources).

Link to comment
Share on other sites

  • 4 weeks later...
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...