Dishonored 2

Dishonored 2

View Stats:
Preventing Shader Cache from deleting
Is there any way to stop Nvidia Shader Cache from deleting the saved cache files itself? I find with it on the first loading screen goes by quickly, but after a while it takes ages once the cache has been cleared.

I do sometimes use CCleaner, but after testing it just, it hasn't deleted the newly created files, so it can't be that.
< >
Showing 1-9 of 9 comments
tunnelcat Feb 3, 2017 @ 11:27am 
Actually, I've found it to be random. Some days upon a first system boot, the game will load in seconds, then during a subsequent load, it will take minutes. The next day after a cold system boot, the game will first load in minutes and a second load will be in seconds. It switches. I haven't found a rhyme or reason to this behavior yet because it seems random, even after the machine has been booted from an "off" state and I haven't played any other games that would've causes the cache to be cleared.
DustyShinigami Feb 3, 2017 @ 11:36am 
I've learnt that after a certain amount of space has been used up storing the cache, it clears itself automatically. I think from now on, any game that benefits the most from shader cache being on, I'll back up the stored cache and restore it if it ever gets deleted.
Originally posted by DustyShinigami:
I've learnt that after a certain amount of space has been used up storing the cache, it clears itself automatically. I think from now on, any game that benefits the most from shader cache being on, I'll back up the stored cache and restore it if it ever gets deleted.

Do you know where it stores the cache? There doesn't seem to be a directory for it in the save game area at least.
DustyShinigami Feb 3, 2017 @ 12:50pm 
Originally posted by Semipalmated Plover:
Originally posted by DustyShinigami:
I've learnt that after a certain amount of space has been used up storing the cache, it clears itself automatically. I think from now on, any game that benefits the most from shader cache being on, I'll back up the stored cache and restore it if it ever gets deleted.

Do you know where it stores the cache? There doesn't seem to be a directory for it in the save game area at least.

Users/Your Name/AppData/Local/Temp/NVIDIA Corporation/NV_Cache
Originally posted by DustyShinigami:
Originally posted by Semipalmated Plover:

Do you know where it stores the cache? There doesn't seem to be a directory for it in the save game area at least.

Users/Your Name/AppData/Local/Temp/NVIDIA Corporation/NV_Cache

Thankyou.

So with that location, this could be a driver decision to delete the cache or the game's decision. It could be difficult to stop it deleting it.
DustyShinigami Feb 3, 2017 @ 1:08pm 
Originally posted by Semipalmated Plover:
Originally posted by DustyShinigami:

Users/Your Name/AppData/Local/Temp/NVIDIA Corporation/NV_Cache

Thankyou.

So with that location, this could be a driver decision to delete the cache or the game's decision. It could be difficult to stop it deleting it.

Yeah, I don't think there's any way to stop it; it's hard-coded to delete after a certain amount of space has been used up. That's why it's probably best to back up the stored cache for games that benefit with shader cache being on. Not all games do.
Yeh i've just been trying to look it up. The driver will start purging it when it hits 256mb. Mine is at 245mb so i guess the game will be due a slow start up soon.

I can't find any info or settings to alter the size of it. There's nothing apart from On or Off even in Nvidia Inspector
󠁳⁧nt Sep 1, 2021 @ 2:50am 
The game deletes cache every GPU Driver update, keep that in mind.
Raigavin Sep 1, 2021 @ 8:18am 
Originally posted by hideN:
The game deletes cache every GPU Driver update, keep that in mind.

Its this.

The shader cache is populated whenever your GPU driver is updated.
This is pretty much universal for a lot of games where the game caches shaders.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Jan 31, 2017 @ 10:07am
Posts: 9