Constant Shader Recompilation - Steps to clear the nVidia/DirectX Cache
TL;DR:
1) Go to System Cleanup 2) Check DirectX Shader Cache 3) Press OK 4) Go to nVidia Control Panel 5) Set Shader Cache Size to "Disabled" 6) Reboot your PC (! this is important) 7) Set Shader Cache Size to 100GB (Technically, the first 3 steps shouldn't be necessary. But if I did it in the opposite order, the size of the DirectX cache shown in the System Cleanup was not 0, so some data probably sticks around.) Long version: I was also impacted by the game performance/stuttering issues brought about by the recent performance patch, so I was looking into different solutions. I have made other posts that change other settings like the Minimum Processor Power state to 100% etc. that seem to have helped some other people. The steps above were the first changes that have had any significant (positive) effect on the game on my PC. Now it behaves in a way that makes sense. The first time I enter an area that I haven't been in after clearing the cache, the shader bar shoots up, then after a little while it goes down, and after that, it never goes up much again in that same area. If you follow these steps, please leave a comment describing what the effect was on your PC. Last edited by GregoryAdams on Aug 30, 2023, 10:52:24 AM Last bumped on Apr 2, 2024, 1:49:01 PM
|
|
"5) Set Shader Cache Size to "Disabled"
I dont have this option in my gaming laptop (Nvidia RTX 2060) But i've cleared the shader cache and will report back (i'm playing the game in Vulkan so this might not afect it) Edit: Didnt do anything for me Last edited by glmig on Aug 30, 2023, 5:34:45 PM
| |
Made no difference, it recompiled the shaders during maps then back to freeze + crash randomly.
Hello guys.
|
|
Record proof from mapping or it doesn't works.
With all data information. BTW. Why did you think that more than 1GB(default) is necessary here? On Probation Any% Last edited by Dxt44 on Aug 31, 2023, 1:31:27 AM
| |
" "Record proof"... Mate, this is what I did and it helped me, so I'm sharing the info. You can use it or not, that's up to you. I'm not re-breaking my game just to fix it on video for you, personally. |
|
Because "it helped me" means nothing. Without measurable values we can't confirm that you saying.
Problem is I didn't see any video which performance was like before 3.21.2 patch. I am just sceptic. Besides like i said, changing default shader cache space is strange for me. On Probation Any%
| |
" Fair enough. Here's some more detail, then. I was operating under the assumption that the shader cache got corrupted, which happens. Setting it to disabled and rebooting deletes it. Setting it to some non-0 value recreates it fresh. That's the main part of what I did. The exact value is not as important, so that's up to you what you choose. I set it to 100, but that's just what I thought would work for my system. |
|
" Thanks mate this helped a hell of a lot with shaders always loading | |
" Glad it helped :-) |
|
Is the "nVidia Control Panel" the software for Nvdia GPU'S?
In the AMD Adrenalin there are straight up a reset shader feature, cant say how effective it is... |