Jump to content

Shielded Docking Port and Advanced Grabbing Unit Performance


Gyse

Recommended Posts

Firstly, I apologize if this is in the wrong forum, I am not specifically asking for support, and there may not be a bug here. I was mostly curious if others had observed something similar.

I believe the advanced grabbing unit and shielded docking port have significantly worse performance per part than other comparable parts (non-shielded docking ports, such as the clamp-o-tron and clamp-o-tron sr).

These tests are not scientific, but I felt it might be worthwhile to share what I observed. Firstly, the results were duplicated across two separate machines (although very similarly spec'd), both running the Windows 32bit .24.2 version of KSP. I used a career save that I started when the .24 patch was released.

1. Core i7 x980, 12gb Ram, Windows 7 64bit with an nVidia GeForce GTX 660 Ti.

2. Core i7 2500k 8gb Ram, Windows 7 64bit with an nVidia GeForce GTX 660 Ti.

Both KSPs used default settings, other than running windowed mode at 1680x1050.

I was attempting to build a large station, and my first attempt was a 3fps nightmare. So I decided I would do testing this time to see how big I could get while maintaining an acceptable framerate. I first built the base with fuel pods, other various structural parts, and a few command units. It was around 250 parts, and dropped my framerate to about 35fps. This was on the launch pad, with a stable base so there was no swaying or other interactions. I conducted all further testing from this point.

I first added a variety of large (6), medium (shielded version, 4), and small (4) docking ports, with 4 advanced grabbing units, and observed the framerate immediately dropped to <10. I then started doing individual tests, only doing one part at a time.

To my surprise, I observed adding 1 Advanced Grabbing Unit would drop my framerate from 35 to about 28 or so, a second one knocked it to about 20.

When I tested a shielded docking port, I noticed something similar, although not as pronounced. A single shielded docking port seemed to knock my framerate down by about 3 or 4.

The part that confused me was when I then went and added non-shielded versions, Clamp-O-Tron Srs, Jrs, and regular versions, the framerate did not drop a noticeable amount. My current version has 6 Clamp-O-Tron Srs., 14 Clamp-O-Trons, and 2 Clamp-O-Tron Jrs, and my framerate is around 33.

I understand I have no knowledge as to how the part was actually implemented, but I liked using the Shielded docking ports because a) I liked the look better and B) I figured when the shield was "closed" the docking port would be "off" and the reverse of what I observed would be true, they would be cheaper to have on your ship. I assumed the same would be true of the advanced grabbing unit and used them for the same reason (along with allowing ships with no docking port to dock to the station).

I did not test if the framerate changed for either item, with them open / armed vs closed. When I found the framerate dropped to an unacceptable level with any of those parts at all used, I simply removed them.

I also observed command units, the unmanned versions, had a noticeable fps drop and using only ONE on my base helped framerate as well, although this was only 1 or so fps per unit and that drop seemed to make sense. My station was to go up in parts, so I had multiple command units to dock the parts more easily. I adjusted my design so those units were undocked with the launch vehicle after the station was joined.

Link to comment
Share on other sites

Interesting find there, that explains alot of the lag I have. I always use the shielded docking port because they look cooler instead of the normal docking port. If this is the case I won't be using the shielded one till there is one that doesn't generate this much lag, maybe I should look for one of the mods. Time to redesign everything now. :huh:

Link to comment
Share on other sites

One extra bit of information. My final station also has 12 of the largest solar arrays, and runs at 33 fps. Those units have animations as well, so it doesn't seem to be every part with an animation. However since I did not observe a problem, I did not test those parts (solar arrays, landing gear, etc...) for a per frame loss.

I only checked (fps loss per part starting with an object that had the base framerate of around 35fps):

Advanced Grabbing Unit: 7 - 10fps

Shielded Docking Port: 3 - 4 fps

Clamp-O-Tron Sr.: negligible

Clamp-O-Tron: negligible

Clamp-O-Tron Jr.: negligible

Various unmanned command units: 1fps

Link to comment
Share on other sites

So I just verified what Linear said. I added 1 advanced grabbing unit to my final station. I was at 23 fps. I then armed it, my fps went up to 31. I then disarmed it. During the animation my fps was at 23, but when it reset, it went back up to 31 again.

I did not use a macro, I just right clicked on the part. Thanks Linear, while a tiny bit annoying, this at least lets me use those parts.

I assume every time I load in to the station (when it is in orbit) I would need to repeat this (once per load, not once forever)?

Link to comment
Share on other sites

I had a similar experience when 0.23.5 came out. I tried an asteroid-tug with 7 of the claws attached (one in the center, and six on detachable RCS pods), and I got about half the framerate that I would get on a comparable ship without the claws. I redesigned it to have only three of them, and the framerate was considerably better.

My suspicion is that they have multiple complex collision meshes, making the physics calculations run slower.

Link to comment
Share on other sites

So I just verified what Linear said. I added 1 advanced grabbing unit to my final station. I was at 23 fps. I then armed it, my fps went up to 31. I then disarmed it. During the animation my fps was at 23, but when it reset, it went back up to 31 again.

I did not use a macro, I just right clicked on the part. Thanks Linear, while a tiny bit annoying, this at least lets me use those parts.

I assume every time I load in to the station (when it is in orbit) I would need to repeat this (once per load, not once forever)?

Once per load, as i think the animation mesh is stored when the part is loaded (should be loaded upon button event) - the animating mesh is only disposed once the disarm event is loaded again.

That's the theory, think it's correct.

Glad i helped

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