protonscr

Endless cycle of shaders recompilation for whole Steam library (log provided)

steamopen
ValveSoftware/steam-for-linux#7550 · opened 2020-12-16 by Saroumane · updated 2020-12-16 · 3 comments · github
1 matching comments, n / p to jump
SSaroumane 2020-12-16 github

Your system information

  • Steam client version : 7 Dec 2020
  • Distribution (e.g. Ubuntu): Ubuntu 20.10
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • AMD RX 5700 XT (driver amdgpu)
  • Mesa 20.3.0 - kisak-mesa PPA
  • and an AMD HD6450 (driver radeon) that can't do vulkan stuff.

Please describe your issue in as much detail as possible:

I tried to be careful and avoid duplicates : I think this bug report is different from https://github.com/ValveSoftware/steam-for-linux/issues/7306 and https://github.com/ValveSoftware/steam-for-linux/issues/6546

Everyday, when I restart the PC (and Steam is restarted too), Steam client decides to recompiles shaders for all games.

Steps for reproducing this issue:

  1. Install Steam client and games.
  2. Check "shader pre-caching" and "allow vulkan background processing" in settings
  3. Wait to reach a stabilized situation (all shaders downloads and compilations ended)
  4. Restart Steam client (+ PC ?) : Steam client starts to recompile shaders for all games. Go back to Step 3.

Log attached ~/.steam/logs/shader_log.txt (I rebooted PC at [2020-12-16 15:03] )
shader.log

This time I stopped shaders recompilation at 2020-12-16 16:51:16 (I unchecked "allow vulkan background processing" in settings)

It takes so long to recompile everything that I'm not sure I can reproduce the bug in a single day.

Kkisak-valve maintainer 2020-12-16 github

To the future visitors of this issue report, let's use this issue report to focus on behavior seen with mesa vulkan drivers and #7306 for the nVidia proprietary driver.

SSaroumane 2020-12-16 github

Well, you are right : in the 2nd half of comments of https://github.com/ValveSoftware/steam-for-linux/issues/7306 , some nvidia users reports shaders recompilations after Steam client restart (like me).
There is also some very interesting stuff about tweaking __GL_SHADER_DISK_CACHE_SKIP_CLEANUP and __GL_SHADER_DISK_CACHE_SIZE
I don't know if it applies to AMD users too, but I will try it and report results here.

Kkisak-valve maintainer 2020-12-16 github

Those environment variables are nVidia-specific.