Cache folder getting ludicrously big

TommyTomahawk

Member
Messages
87
Reactions
30
Points
18
Website
www.pixiv.net
I noticed my VAM folder was 75 gigabytes in size and my small SSD was running out of space. Turns out the VaM Updater/Cache/Textures folder was 35 gigabytes in size. Apparently VAM stores these gigantic texture files in the cache, with no limitation. SSD space is at a premium on my PC, can I safely empty out this folder without permanently breaking something?
 
Yes, you can empty the cache. If active (user preferences), the cache will be rebuilt as you load assets, which will be slower the first time you use them compared to subsequent loads that are cached.
It's much better to change the cache folder to a HDD, if you have one, where the GB cost is much lower. The difference in time for reading cached content between a SSD and a HDD is pratically none. For a good performance, keep VAM in a SSD and VAM's cache in a HDD.
 
It's perfectly safe, I do it occasionally at 50-100GB.
Mainly because of leftovers, content you remove (clothes, skins, plugins, whatever) is still cached. :cautious:
 
Yes, you can empty the cache. If active (user preferences), the cache will be rebuilt as you load assets, which will be slower the first time you use them compared to subsequent loads that are cached.
It's much better to change the cache folder to a HDD, if you have one, where the GB cost is much lower. The difference in time for reading cached content between a SSD and a HDD is pratically none. For a good performance, keep VAM in a SSD and VAM's cache in a HDD.
Didn't even know you could do that, put the cache somewhere other than the folder it's meant to be in... How does that work? Won't VAM look for the path VaM Updater/Cache/Textures (which is in the install folder, which I left on C/Downloads) and expect it to be there?
 

See bottom part related to caching. It can be where you want it to be, probably makes some kind of symlink when you change it from the default folder.
 

See bottom part related to caching. It can be where you want it to be, probably makes some kind of symlink when you change it from the default folder.
That's great, thank you very much. I really need a bigger SSD.
 
I suggest 500gb minimum, 1TB optimum. Prices are good right now in my opinion. Samsung 980 Pro for example. Something with 3500MB/s read speed.
 
I suggest 500gb minimum, 1TB optimum. Prices are good right now in my opinion. Samsung 980 Pro for example. Something with 3500MB/s read speed.
My drive is 2TB and it's been almost full for years.

Anyway, I checked the User Preferences tab for cache settings, and it doesn't look possible to select a location NOT on C drive. C is full, I want to put it on D. Guess I can't.
 
I checked the User Preferences tab for cache settings, and it doesn't look possible to select a location NOT on C drive. C is full, I want to put it on D. Guess I can't.
You should be able to select other drives inside user preferences, just click on "My Computer" (above C:\), it should display all drives.
Than select new destionation (folder), you probably wanna create new Cache folder manually (so you can select it inside vam).

Alternatively you can edit prefs.json inside vam root, for example: "cacheFolder" : "D:\\Games\\whatever\\Cache"
 
You should be able to select other drives inside user preferences, just click on "My Computer" (above C:\), it should display all drives.
Than select new destination (folder), you probably wanna create new Cache folder manually (so you can select it inside vam).

Alternatively you can edit prefs.json inside vam root, for example: "cacheFolder" : "D:\\Games\\whatever\\Cache"
"You should be able to select other drives inside user preferences..."

Not from where I'm sitting...

"...just click on "My Computer" (above C:\), it should display all drives. Than select new destination (folder), you probably wanna create new Cache folder manually (so you can select it inside vam)."

Literally none of these things exist in my VAM. It's just not a thing. Is there a difference between VAM on PC and VAM in VR? Because I only use VAM while using the headset, and I have no such options. I wish I could screenshot anything to show you what I'm seeing, but of course, again, not possible in VR. This is so frustrating. Like, when selecting the folder for caching, the "explorer" window that opens does not allow me to go any higher in the directory structure than C Drive. I think I might just give up and manually clear out the cache after every session.
 
Last edited:
@TommyTomahawk
Well...I use only desktop mode.

True, UI is slightly different, but core (or shared) stuff is the same,
for example all user preferences are saved inside prefs.json. :unsure:

That's why i suggested you try editing pref.json manually (open with any text editor, like notepad and change cache path).

Also this is what i meant by "click on My Computer" and how it looks in desktop mode (to go 1 higher in explorer).
But someone once said they can't see other drives/partitions in explorer...so idk...those below are 2x 500GB drives.
VaMexplorer.jpg
 
Personally I just have a 2TB PCIE4.0 M.2 SSD just to run VAM for best comfort..(currently 80%+ full)
 
"You should be able to select other drives inside user preferences..."

Not from where I'm sitting...

"...just click on "My Computer" (above C:\), it should display all drives. Than select new destination (folder), you probably wanna create new Cache folder manually (so you can select it inside vam)."

Literally none of these things exist in my VAM. It's just not a thing. Is there a difference between VAM on PC and VAM in VR? Because I only use VAM while using the headset, and I have no such options. I wish I could screenshot anything to show you what I'm seeing, but of course, again, not possible in VR. This is so frustrating. Like, when selecting the folder for caching, the "explorer" window that opens does not allow me to go any higher in the directory structure than C Drive. I think I might just give up and manually clear out the cache after every session.

That's strange, but sometimes Vam IS strange.

If nothing else works, you can set the cache location by editing the prefs.json file (with a text editor like notepad) in the vam root folder. Just make sure to manually create the folder in the appropriate location first.


My cache is at D:/_software/Vam/cache. Here's how it's formatted in the json:
1665159411445.png
 
You can also move Cache folder using Windows explorer and make hard link into VAM folder without any modifications. There's nice software:
where you can make hard links using your mouse instead of command line (this is not advert - i'm just using this software). Hard links are really useful because you can fool applicationeven if it doesn't have configuration that allows sth to be moved.
 
Back
Top Bottom