protonscr

Assassin's Creed Brotherhood/windows state cache

dxvkclosed
doitsujin/dxvk#2760 · opened 2022-07-29 by njmdietrich · updated 2022-07-29 · 3 comments · github
Nnjmdietrich 2022-07-29 github

I am using dxvk on windows to improve performance in assassin's creed brotherhood. However, something seems to be broken with the state cache. If I understand correctly, when a driver update happens, the shaders in the state cache are recompiled when starting the game, and then everything is supposed to work like before. I installed a driver update, and the game stutters as if I had never built up a shader cache. According to the log over 15000 state cache entries exist.

Ddoitsujin maintainer 2022-07-29 github

It only works when the game loads all shaders before they are used. Some don't do this, so yes, stutter is expected in those cases.

This also extends to almost all UE4 games using D3D11 and a few others.

Nnjmdietrich 2022-07-29 github

I thought the whole point of the state cache was so you would only encounter stutter the first time a shader is encountered, regardless of driver updates etc? Or what is the point of it then?

Ddoitsujin maintainer 2022-07-29 github

Well yes, but the game still needs to actually create the shader before we can compile everything. If the game doesn't do that, there's going to be stutter, even (although usually to a lesser degree) with native D3D drivers. This isn't a bug, this is literally just games being dumb.

Nothing extracted yet.