profiles: steam: whitelist .cache/nvidia (#7114)

Improves launch performance for Team Fortress 2 on legacy OpenGL launch option
and possibly other games.

Went from 100 seconds to launch the game and ~8% cpu usage during launch (~1
core on my machine?) to 60 seconds and ~16% cpu usage (~2 cores).

Apparently the path was changed on 460.27.04 (from `~/.nv/GLCache` to
`~/.cache/nvidia/GLCache`):

* https://download.nvidia.com/XFree86/Linux-x86_64/455.45.01/README/openglenvvariables.html
* https://download.nvidia.com/XFree86/Linux-x86_64/460.27.04/README/openglenvvariables.html
This commit is contained in:
acuifex 2026-04-23 10:56:58 +03:00 committed by GitHub
parent 4a5ed8364c
commit 263f576d25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,6 +103,7 @@ mkdir ${HOME}/.steam
mkdir ${HOME}/Zomboid mkdir ${HOME}/Zomboid
mkfile ${HOME}/.steampath mkfile ${HOME}/.steampath
mkfile ${HOME}/.steampid mkfile ${HOME}/.steampid
whitelist ${HOME}/.cache/nvidia
whitelist ${HOME}/.config/Epic whitelist ${HOME}/.config/Epic
whitelist ${HOME}/.config/Loop_Hero whitelist ${HOME}/.config/Loop_Hero
whitelist ${HOME}/.config/MangoHud whitelist ${HOME}/.config/MangoHud