Jump to content

Part assets duplicating and filling RAM in VAB/SPH


Recommended Posts

So, I figured that since BDArmory has a RAM leak, that I'd try looking at it (mostly just for my own learning experience) and see if I could fix it. After listing all the objects and assets in Unity when the leak is happening, I figured out that the parts are duplicating themselves (both textures and models) when viewed as an icon in the VAB. This only happens with BDArmory parts, not stock. Nothing in the BDArmory source has anything to do with part icons. I've looked around to see what could be causing it, but at this point I legitimately have no idea. I have no experience with the internal workings of KSP and I don't know what sort of issue would cause part assets to duplicate.

Edited by gajbooks
Link to comment
Share on other sites

Hum. From what I understand you know a bit about unity but not about KSP ?

The model duplication is the strange thing. Texture/Materials could come from the part highlighter.

What do you see exactly ? Duplicate Mesh, Texture, GameObject ? Do you tried to log the object name and/or hierarchy ?

Link to comment
Share on other sites

I logged the object names and that is what let me discover that it's the textures and models duplicating.

Here are just a few lines that are around the base Browning machine gun part. There are duplicates of every line but I omitted them for space reasons. All BDArmory parts are duplicated in this manner, as far as I could tell.

[ERR 13:34:54.821] bahaBrowningAnm2(Clone)

[ERR 13:33:48.220] bahaBrowningAnm2(Clone) icon(Clone)

[ERR 13:34:54.822] model

[ERR 13:34:54.823] bahaBrowningAnm2

[ERR 13:34:54.824] shellEject

[ERR 13:34:54.825] muzzleTransform

[ERR 13:34:54.830] fireTransform

[ERR 13:34:54.830] collider

[ERR 13:35:37.249] BDArmory/Parts/browninganm2/tex_browninganm2

[ERR 13:35:33.598] BDArmory/Parts/browninganm2/model

Some lines that are exclusive to missile weapons

[ERR 13:32:43.428] ExpTex2 (Instance)

[ERR 13:32:43.428] srbsmoke 1 (Instance)

 

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