Jump to content

[1.0][Release-5-0][April 28, 2015] Active Texture Management - Save RAM!


rbray89

Recommended Posts

In the configs I sent the other day there is a small improvement to the MagicSmokeIndustries (Infernal Robotics) config. This is the updated one...

ACTIVE_TEXTURE_MANAGER_CONFIG

{

folder = MagicSmokeIndustries

enabled = true

OVERRIDES

{

MagicSmokeIndustries/Textures/icon_button

{

compress = true

mipmaps = true

scale = 1

max_size = 0

}

}

}

Small difference but stops the Toolbar icon being tiny :P

Link to comment
Share on other sites

In the configs I sent the other day there is a small improvement to the MagicSmokeIndustries (Infernal Robotics) config. This is the updated one...

ACTIVE_TEXTURE_MANAGER_CONFIG

{

folder = MagicSmokeIndustries

enabled = true

OVERRIDES

{

MagicSmokeIndustries/Textures/icon_button

{

compress = true

mipmaps = true

scale = 1

max_size = 0

}

}

}

Small difference but stops the Toolbar icon being tiny :P

Thanks! {10 chars}

Link to comment
Share on other sites

Any ideas on what to do for now or?

I'm really not sure what is going on here. If I had to guess, I'd say your KSP install is goofed up somehow. What happens if you remove the mod? Were you able to load before?

Is this an install that worked before 23.5 or a fresh install that wasn't upgraded?

Link to comment
Share on other sites

I'm really not sure what is going on here. If I had to guess, I'd say your KSP install is goofed up somehow. What happens if you remove the mod? Were you able to load before?

Is this an install that worked before 23.5 or a fresh install that wasn't upgraded?

This was an upgraded install, was then started with only the NASA and Squad folders in GameData. Then placd back all the mods, found all mods with / needing a 0.23.5 update, updated as required, boom, no load.

I can load KSP with no mods just fine, with part mods just fine, its anytime I add either ATM or Module manager I get an issue.

Link to comment
Share on other sites

elbie more than likely u have upgraded a mod wrong. whenver a game verson change always comptely replace mod dont drag and drop then overrite. if just 1 old .dll is in a folder i can keep all parts from loading cause mods to not work and do all types of weird stuff. clean install always of a mod when game versin changes

rbray i still have the issue with game disappaering from screen when using fake fullscren option. it works only randomly. like right now game is started but its not on my windows bar but task manger has it as fully loaded. this is something new caused by the .23.5 update before it worked fine. normal window and fullscreen work fine

Edited by sidfu
Link to comment
Share on other sites

rbray i still have the issue with game disappaering from screen when using fake fullscren option. it works only randomly. like right now game is started but its not on my windows bar but task manger has it as fully loaded. this is something new caused by the .23.5 update before it worked fine. normal window and fullscreen work fine

Are you using the launcher or the command line option?

Link to comment
Share on other sites

Actually, PNGs load much faster than TGAs.

Glad to hear they fixed the bug.

In that case, have you compared uncompressed or minimally compressed PNGs to compressed PNGs.

The loss to CPU time may not exceed the gain in disk transfer reduction on minimal compression, but heavier compression may certainly cause problems.

Link to comment
Share on other sites

Glad to hear they fixed the bug.

In that case, have you compared uncompressed or minimally compressed PNGs to compressed PNGs.

The loss to CPU time may not exceed the gain in disk transfer reduction on minimal compression, but heavier compression may certainly cause problems.

As a general rule, decompression timings are almost unrelated to compression levels, it is at compression time that you get exponential time increases as you push harder. I haven't done any benchmarking on PNG compression specifically, but this is the case almost across the board for the majority of compression algorithms.

Link to comment
Share on other sites

Glad to hear they fixed the bug.

In that case, have you compared uncompressed or minimally compressed PNGs to compressed PNGs.

The loss to CPU time may not exceed the gain in disk transfer reduction on minimal compression, but heavier compression may certainly cause problems.

Actually, I'm using Unity's built in PNG compressor to cache. I'd assume they would strike a balanced compression ratio. However, even on my Samsung Black SSD, disks are so much slower than CPUs, and it is certainly better to store them on HD in a compressed format such as PNG. Saving is another matter, but considering that we are only doing that once, we should be ok.

Link to comment
Share on other sites

Hm, I can't seem to make the mod work with the new structure. Or something happened with the textures. All the textures seem to have their original looks, they are not compressed.

And my game is back up to 3300 Mb RAM from the previous 2800 Mb.

Some folders in the cache directory have cached textures inside, others, and very obvious ones on top of that - don't. For example all of the KW engines don't seem to have compressed textures.

Link to comment
Share on other sites

Hm, I can't seem to make the mod work with the new structure. Or something happened with the textures. All the textures seem to have their original looks, they are not compressed.

And my game is back up to 3300 Mb RAM from the previous 2800 Mb.

Some folders in the cache directory have cached textures inside, others, and very obvious ones on top of that - don't. For example all of the KW engines don't seem to have compressed textures.

Are you using Basic or Aggressive? What do you mean the new structure? Did yo alter configs? did you delete the old install before installing the new install?

Link to comment
Share on other sites

I am using Basic version, I did not alter any configs, I did delete the old installation.

Interestingly enough - the game still hangs at the beginning, which means the mod is working, just not caching all textures.

Link to comment
Share on other sites

I am using Basic version, I did not alter any configs, I did delete the old installation.

Interestingly enough - the game still hangs at the beginning, which means the mod is working, just not caching all textures.

It only caches textures it needs to now to save loading time. It could be that the arm pack is increasing memory usage. Did you have any additional configs when using the old version?

Link to comment
Share on other sites

ActiveTextureManagement is my No 1 mod for KSP. I have 61 different folders in my Game Data folder plus Squad. I'm not sure of the exact number of mods but I know there is in excess of 40. KSP idles at a smidge under 2.6GB and all this is made possible by rbray! So a few configs is the least I can do!

Link to comment
Share on other sites

Rbray - possibly the ARM pack increases the RAM usage a bit, but 500 mb? Maybe...Squad are not known for texture optimisations. And no - pure stock mod, basic version, no additional configs, nothing touched in mine. Even if it doesn't load all textures - should all of the textures in game be compressed? Like I said - all of my KWrocketry and Squad textures seem to be default. I noticed for example - the Large SAS parts have some text on them - you couldn't read it in the pre-0.23.5 version of your mod, due to the texture compression - it all became blurred. Now it's all crystal clear.

Green Skull - So what is are the changes to your configs?

Link to comment
Share on other sites

Accidently reduced the Final Frontier tool bar button. Here is fix :

In the folder GameData\BoulderCo\ActiveTextureManagerConfigs there is a Nereid config, copy and paste the following over what is there:

ACTIVE_TEXTURE_MANAGER_CONFIG

{

folder = Nereid

enabled = true

OVERRIDES

{

Nereid/FinalFrontier/Resource/IconOff_24

{

compress = true

mipmaps = false

scale = 1

max_size = 0

}

Nereid/FinalFrontier/Resource/IconOn_24

{

compress = true

mipmaps = false

scale = 1

max_size = 0

}

}

}

Edited by Green Skull
Link to comment
Share on other sites

Green Skull - So what is are the changes to your configs?

My configs tell Active Texture Manager to work on lots of different mods. The folder in Game Data called NASA missions is the ARM patch.

Edited by Green Skull
Link to comment
Share on other sites

Rbray - possibly the ARM pack increases the RAM usage a bit, but 500 mb? Maybe...Squad are not known for texture optimisations. And no - pure stock mod, basic version, no additional configs, nothing touched in mine. Even if it doesn't load all textures - should all of the textures in game be compressed? Like I said - all of my KWrocketry and Squad textures seem to be default. I noticed for example - the Large SAS parts have some text on them - you couldn't read it in the pre-0.23.5 version of your mod, due to the texture compression - it all became blurred. Now it's all crystal clear.

Green Skull - So what is are the changes to your configs?

If the text was blurred, you were most certainly not using basic. Basic does not resize textures, and they would still be very clear when "compressed" (it just alters color depth, not resolution). Try aggressive. You might be happy with the memory savings :)

Link to comment
Share on other sites

Ah, I see. I remember downloading the basic version, but who knows.

Texture Compressor was how you named your mod back in v.2.15, right?

https://www.dropbox.com/s/5jbrrz52n8nbdmn/121.jpg

So, I guess something must have gone wrong with the configs? If the texture compression in the agressive and basic version depends on the configs, not on the plugin itself, I must have downloaded something wrong.

Anyways, I will try with GreenSkull's .cfg files and I will see if the memory usage drops.

In any case I was slightly annoyed by the smudged textures, so I am happy to have clear textures again, just want to drop the memory usage to about 3 Gb, I don't even have B9 installed yet.

Link to comment
Share on other sites

Ah, I see. I remember downloading the basic version, but who knows.

Texture Compressor was how you named your mod back in v.2.15, right?

https://www.dropbox.com/s/5jbrrz52n8nbdmn/121.jpg

So, I guess something must have gone wrong with the configs? If the texture compression in the agressive and basic version depends on the configs, not on the plugin itself, I must have downloaded something wrong.

Anyways, I will try with GreenSkull's .cfg files and I will see if the memory usage drops.

In any case I was slightly annoyed by the smudged textures, so I am happy to have clear textures again, just want to drop the memory usage to about 3 Gb, I don't even have B9 installed yet.

That is odd... It is possibly I had a mistake in the basic release that resized textures. Really, the only way to get it down really far is to use the resized textures unfortunately.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...