Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accumulating many .foz files with Gamescope #749

Closed
cchulo opened this issue Jan 16, 2023 · 3 comments
Closed

Accumulating many .foz files with Gamescope #749

cchulo opened this issue Jan 16, 2023 · 3 comments

Comments

@cchulo
Copy link

cchulo commented Jan 16, 2023

So I am running Emulationstation-DE, Resident Evil HD, and Nier Automata all with Gamescope. I have been noticing that every time I start up with gamescope it creates a new .foz file inside of the steamapps/shadercache/fozpipelinesv6 directory. It looks like the way it is creating them is a bug because the hash is the same, but it keeps making copies. Take RE HD for example:

it is executed with gamescope -H 1440 -h 1440 -r 60 -f -- %command%
The Foz files that are created every time look like:
image

With emulationstation-DE, something that's been installed longer than RE HD and has been used quite a bit:
image

Note that for ES-DE the hash changed at some point, this may have been due to me installing new GPU drivers

With Nier its the same situation, a new .foz file everytime I launch the game

All the .foz files are the same size, the question is though is this a bug with gamescope or with steam? It looks as if gamescope doesn't bother to check if a foz file already exists, it just keeps creating them. Since I don't think steam is what is creating these files, I don't think steam will know how to clean these files up. ES-DE for example has 300 mb accumulated.

@cchulo
Copy link
Author

cchulo commented Jan 21, 2023

this may not be a problem with gamescope, but fossilize, will open a PR over at that repo

@cchulo
Copy link
Author

cchulo commented Jan 21, 2023

reopening, as I think I know what these files are. These are pre-compiled shaders, and for some reason gamescope might be making steam runtime think that the last pre-compiled shaders were invalid, and thus creating a new .foz each time a game is launched with gamescope.

@cchulo cchulo reopened this Jan 21, 2023
@cchulo
Copy link
Author

cchulo commented Jan 21, 2023

determined that this is not a gamescope problem, the issue is happening with Quake as well, and I have definitely never run that game with gamescope. Will open an issue with steam-runtime.

@cchulo cchulo closed this as completed Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant