Jump to content

Memory usage too high


Recommended Posts

Hi, I thought I'd make a cross post to increase the odds of fixing the issue (posted in ATM's thread as well). Whatever I do, my memory usage stays between 2.8GB-3GB (even with Aggressive ATM settings, which is weird because it was almost identical to full res textures with ATM). Can't seem to figure out what I am doing wrong. Any thoughts?

Post:

Hi, it seems like ATM stops working (KSP stops loading, exe is working still though because I can see the text like "Motivating Kerbals" changing) when it tries to load/compress "TextureReplacer/Heads/Head2". Is there any way I can exclude it? (or fix it). I think this started occuring since I tried the new beta.

Edit: Also, it seems that I just can't get a memory reduction. ATM with half scaling and OpenGL and I am still getting 2.8GB on load...what could be wrong?

I just did a rerun, same issue. Cache folder becomes 691 MB.

Have used the new beta and the version before that.

Edit2: Reran aggressive. Seems like about the same mem usage as compared to basic...KSP 0.90, Win 7 x64, KSP x32. Output log of the latest run here: https://www.dropbox.com/s/ab3bl0hkdgdq6kg/output_log.txt?dl=0

Edit3: Ran DDS4KSP, gave me this error:

Detailed information about the use of operational

(JIT) debugging instead of this dialog

the window provided at the end of this message.

************** The exception text**************

System.IndexOutOfRangeException: Index was outside the bounds of the array.

in Microsoft.DirectX.GraphicsStream.Read(Byte[] buffer, Int32 offset, Int32 count)

in Microsoft.DirectX.Direct3D.TextureLoader.FromStream(Device device, Stream stream, Int32 readBytes, Int32 width, Int32 height, Int32 mipLevels, Usage usage, Format format, Pool pool, Filter filter, Filter mipFilter, Int32 colorKey, ImageInformation& srcInformation, PaletteEntry[]& palette)

in Microsoft.DirectX.Direct3D.TextureLoader.FromStream(Device device, Stream stream, Int32 width, Int32 height, Int32 mipLevels, Usage usage, Format format, Pool pool, Filter filter, Filter mipFilter, Int32 colorKey)

in DDS4KSPcs.ImageManager.ConvertFileToDDS(ConversionParameters convParams, FolderProcessingParams cfg)

in DDS4KSPcs.FolderLoader.ProcessFileLists(sFolderPath as String, ProgressBar progressBar, Label lInfos, FolderProcessingParams cfg)

in DDS4KSPcs.MainForm.ExportAllToDDSToolStripMenuItem_click(Object sender, EventArgs e)

in System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

in System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

in System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

in System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

in System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

in System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

in System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

in System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

in System.Windows.Forms.Control.WndProc(Message& m)

in System.Windows.Forms.ScrollableControl.WndProc(Message& m)

in System.Windows.Forms.ToolStrip.WndProc(Message& m)

in System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assembly**************

mscorlib

Assembly version: 2.0.0.0

Version Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

DDS4KSPcs

Assembly version: 1.0.0.0

Version Win32: 1.0.0.0

CodeBase: file:///C:/Kerbal%20Space%20Program/DDS4KSP/DDS4KSPcs.exe

----------------------------------------

System.Windows.Forms

Assembly version: 2.0.0.0

Version Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

Assembly version: 2.0.0.0

Version Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

Assembly version: 2.0.0.0

Version Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

Microsoft.DirectX.Direct3D

Assembly version: 1.0.2902.0

Version Win32: 9.05.132.0000

CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll

----------------------------------------

Microsoft.DirectX

Assembly version: 1.0.2902.0

Version Win32: 5.04.00.2904

CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll

----------------------------------------

Ookii.Dialogs

Assembly version: 1.0.0.0

Version Win32: 1.0.0.0

CodeBase: file:///C:/Kerbal%20Space%20Program/DDS4KSP/Ookii.Dialogs.DLL

----------------------------------------

System.Core

Assembly version: 3.5.0.0

The Win32 version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

mscorlib.resources

Assembly version: 2.0.0.0

Version Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

Microsoft.DirectX.Direct3DX

Assembly version: 1.0.2902.0

Version Win32: 5.04.00.3900

CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll

----------------------------------------

System.Windows.Forms.resources

Assembly version: 2.0.0.0

The Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll

----------------------------------------

************** Online debugging (JIT) **************

To connect operational (JIT) debug file .config this

application or machine.config) must have

the jitDebugging value set in the partition system.windows.forms.

The application must also be compiled with enabled

debugging.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging any unhandled exception

is sent to the JIT debugger registered on the computer,

rather than be handled by this dialog.

Seems like verything that could go wrong, IS going wrong, lol.

Details from other thread:

I've tried OpenGL/DX and ATM and I still have a memory usage above 3GB...can anyone help me out?

The weird thing is:

1): I began with all my mods and ATM on normal settings +opengl, memory usage around 3GB.

2): I set the ingame textures to half res: made no difference in memory usage, still around 3GB.

3): Set ATM to 1/2 res (and left ingame to half res): No difference, 3GB (and looks terrible).

4): DX11 mode: 3GB again.

Am I doing something wrong? Should I be removing ATM's cache or something?

Here are my mods:

2,9 GB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData

783,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Squad

678,6 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ActiveTextureManagement

281,8 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\TextureReplacer

228,6 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KWRocketry

144,1 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Tantares

119,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\BoulderCo

93,5 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Kethane

86,5 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\UmbraSpaceIndustries

84,7 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\B9_Aerospace

77,4 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Chatterer

65,0 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\NASAmission

47,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MagicSmokeIndustries

42,1 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Firespitter

31,4 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\DMagic Orbital Science

28,8 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Hangar

28,7 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\RemoteTech

28,4 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KAS

25,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\SCANsat

18,9 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\UniversalStorage

10,7 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ART

9,1 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ProceduralFairings

8,2 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MechJeb2

7,9 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ProceduralParts

6,1 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ThunderAerospace

5,7 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\FreedomTex

5,1 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Source

4,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KerbalEngineer

4,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\CollisionFX

3,9 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\

3,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\RealChute

2,7 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\EnvironmentalVisualEnhancements

2,6 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Ships

2,6 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MissionControllerEC

2,3 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\DeadlyReentry

1,6 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Nereid

1,5 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\SmartParts

1,4 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ProceduralDynamics

1,2 MB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\JSI

831,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\TriggerTech

615,7 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ScienceAlert

448,4 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\NavyFish

377,9 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\TweakScale

317,6 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\FerramAerospaceResearch

274,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\CrowdSourcedScience

208,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Diazo

136,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KSPAPIExt

119,5 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\000_Toolbar

110,8 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\TweakableEverything

106,8 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\FMRS

105,5 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\CIT

90,8 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\PlanetShine

86,8 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\StageRecovery

85,6 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Fusebox

84,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Contracts Window

73,1 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KineTechAnimation

69,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Trajectories

61,3 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\PreciseNode

58,7 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\000_USITools

57,9 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\TimeControl

54,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Regolith

53,5 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\SmokeScreen

48,5 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ToadicusTools

47,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\EnhancedNavBall

46,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\DistantObject

42,7 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KerbalJointReinforcement

42,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KerbalIspDifficultyScaler

37,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\MSD

35,5 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ResGen

34,8 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\SmartStage

26,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\sceneJumper

19,7 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\CommunityResourcePack

18,3 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\CrossFeedEnabler

16,4 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Klockheed_Martian

12,1 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\DDSLoader

11,2 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\ModuleRCSFX

10,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\SafeChute

7,6 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Virgin Kalactic

3,0 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\RSSBuild

2,8 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\KerbalAlarmClock

1,9 KB D:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\PartCatalog

Edited by Sinsis
Link to comment
Share on other sites

Hi Sinsis, though I don't know if this is the exact reason I'd assume the memory use you are seeing is due to KSP terrain caching, as you move around on a planet or moon a lot of terrain data is generated, it is freed as you go but it still needs a fair bit of RAM.

Add in terrain scatters and water and memory use soon adds up.

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