steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Each time launching a non-steam game, a new shader cache file is created.

Open ayssia opened this issue 1 year ago • 2 comments

Your system information

  • Steam client version (build number or date): 1705108172
  • Distribution (e.g. Ubuntu): Steam Deck
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: AMD

Please describe your issue in as much detail as possible:

I noticed that certain non-Steam games were taking up a very large amount of space in the shadercache folder, and after checking that folder, I found a lot of nearly identical foz files under ~/.steam/steam/steamapps/shadercache/<non-steam-game-appid>/fozpipelinesv6/steamapprun_pipeline_cache.RANDOMHASH.

Further testing revealed that each time the game was launched, a nearly identical foz file was regenerated in that folder. After multiple runs, the space taken up by that folder became very large.

It feels very strange that the generated shader cache can't be reused but has to be regenerated per launch.

Steps for reproducing this issue:

  1. Add any non-steam game to Steam.
  2. Run the game and close it. Repeat multiple times.
  3. Check the ~/.steam/steam/steamapps/shadercache/<non-steam-game-appid>/fozpipelinesv6/steamapprun_pipeline_cache.RANDOMHASH folder, there should be multiple (nearly) identical foz files there, like this: steamapprun_pipeline_cache_daf05e8efce08522.1.foz, steamapprun_pipeline_cache_daf05e8efce08522.2.foz, steamapprun_pipeline_cache_daf05e8efce08522.3.foz, the only difference is the suffix number.

ayssia avatar Feb 10 '24 17:02 ayssia