r/linuxquestions • • 17h ago

Advice Vulkan Shaders question

I'm fairly new to Linux. I just started using CachyOS because I heard it was a good gaming distro, and I've noticed that launching games on Steam brings up a notification "Processing Vulkan Shaders." I loaded a graphically intensive game from 2018, Kingdom Come: Deliverance, and the Vulkan Shaders processed in about a minute or two. I then quit and loaded Injustice: Gods Among Us, from 2013, and the Vulkan Shaders took about 15 minutes to process. Why does the older game load more slowly than a newer, more graphically intensive game?

1 Upvotes

6 comments sorted by

1

u/m4uri 8h ago

Age and graphics don't matter much here, what counts is how many shader variants the game ships. Steam downloads a pile of precompiled pipeline data for each game and then your CPU has to rebuild it for your exact GPU and driver. Injustice is a DX9/DX11 title and those go through DXVK or vkd3d on Linux, and an older engine can have a surprisingly huge pile of permutations. Kingdom Come simply has less to chew through.

Two things to know. It's mostly CPU work, so it's slower on a machine with few cores. And it only repeats after a Mesa or driver update (CachyOS updates those often), so the long wait is usually a one-timer per game. Skipping it is fine, you just may see some stutter at first while it compiles on the fly.

1

u/PixelBrush6584 17h ago

Depends on the game, who knows for sure. Either way, you can safely skip this step, or turn it off outright, if it takes too long for you.

2

u/varsnef 17h ago

In "Plain English": This means to disable "Shader Pre-caching" in Steam via: Setting>Downloads>Sahader Pre-caching

1

u/Dragon-of-Shuu 13h ago

Though note the potential performance loss: the game can studder as it processes the shaders on the fly. Eventually it will stop, but for the first while it could be stuttery. Precaching allows you to avoid that problem entirely, and thus I personally recommend it, even if it takes a long time

1

u/AdvancedConfusion752 11h ago

you can skip it but you may have some stutters for some time as it will compile on the fly.