protonscr

Heavy stuttering with version 2.7 on win11

dxvkclosed d3d9needs more info
doitsujin/dxvk#5079 · opened 2025-07-09 by dezo2 · updated 2025-07-11 · 9 comments · github
Ddezo2 2025-07-09 github

Latest version 2.7 causes frequent stuttering for me in win11 23h2 + RTX 4090 (ReBar enabled). So far I tested it with dx9 Source engines and for example Left4Dead and Black Mesa are practically unplayable due to frequent and excessive stutters. I thought it will be bad only for first time in game, but it does the same on each restart, regardless if I went trough the whole level or not. Also in Back Mesa it hammers the CPU hard on each start, this was not happening with previous versions - its like the shaders are compiled over and over. When I revert back to 2.6.2 these games suddenly run smooth as butter. I use dxvk.allowFse = True in dxvk.conf file but it doesn't make any difference with 2.7. What else can I try to get rid of the stuttering?

BBlisto91 2025-07-09 github

Could you record what you are seeing?
Also attach the dxvk log that appears next to the games exe.

Edit: While recording the video it would be interesting if you made a file called dxvk.conf next to the exe and inserted dxvk.hud = full

Ddoitsujin maintainer 2025-07-09 github

Sounds like shader cache memes with the nvidia driver?

2.7 shaders are very different from older versions so it's expected that we no longer hit driver caches generated with older versions, but that should go away after using the new version a bunch. If it doesn't then we can't do much. Can't repro the problem though.

Ddezo2 2025-07-09 github

As I tried to record some gameplay in BM, it slowly becomes better. So it seems it has to do with NV shader caches - maybe I should try to purge all the NV shader cache files and let them rebuild. Anyway below is the log file but I doubt that there is a problem. In the full dxvk HUD there was occasional "compiling shaders" message, some of them associated with stutter but as I played more the stutters were less and less frequent even with the messages displayed. So lets hope it will go away eventually. Thanks for the info.

bms_d3d9.log

BBlisto91 2025-07-09 github

Don't rely too much on the "compiling shaders" text as it might not show if it is just quick short bursts of new shaders. The thing to look out for on the hud is if the "Graphics Pipelines" or "Graphics Shaders" numbers are increasing as the stutters happen. If they do then it should be shader compilation.

Ddezo2 2025-07-09 github

I will test it some more watching the HUD. Also guys your response times are incredible. Thanks.

Anyway I cleared all the NV shader cache files and that eliminated almost all these stutters. If anyone should have similar problem, the sequence for actual NV drivers is this:

  • Open the NVIDIA control panel and go to Manage 3D Settings
  • Turn off Shader Cache, save and apply changes, then reboot your PC
  • After the PC boots, open the Run dialog box or File Explorer
  • Type the following into the Run dialog box or the File Explorer address bar and hit Enter: %USERPROFILE%\AppData\Local
  • At the location, find and open the NVIDIA folder
  • In the folder, find and open both the DXCache and the GLCache folder and delete all the items in the folders
  • Now, go back to the NVIDIA control panel and turn on Shader Cache, then restart your PC
BBlisto91 2025-07-09 github

If you want a less aggressive hud that doesn't fill the whole screen and just has the numbers i talked about above then you can change the config line to dxvk.hud = pipelines

Edit: you can mix and match the individual toggles if wanted. See readme for details

Ddezo2 2025-07-09 github

After some more testing I can say that the problem was on my end and clearing the NV shader cache files solved it completelly.
Thanks again for pointing me in the right direction.

NVidia should make some UI to execute this manually because the automatic way is questionable at best. I wonder how many those stutter complaints on the web are related to corrupted shader cache files.

JJordo24 2025-07-11 github

After some more testing I can say that the problem was on my end and clearing the NV shader cache files solved it completelly. Thanks again for pointing me in the right direction.

NVidia should make some UI to execute this manually because the automatic way is questionable at best. I wonder how many those stutter complaints on the web are related to corrupted shader cache files.

im still having the stuttering isue after disabling and then deleting my shader cache

BBlisto91 2025-07-11 github

Make a new issue please. If you could attach a video of it while the full dxvk hud is on that would be good.

Nothing extracted yet.