How long does it take to build the entire shader cache?
Just switched all my games over to Linux for the first time, I've always since dual booted or used GPU passthrough.
On my RX 480 my performance tends to be slightly worse, the averages stay around the same but it's much more stuttery. I haven't played a lot of the games I've tested, though, since I already completed them before on Windows and I've just been tinkering.
My understanding is that in Proton with Vulkan, shaders get compiled on demand instead of all at once. Is it normal to have to play for a few hours to get all the shaders cached? Do games under Proton with Vulkan get less-stuttery the more you play them? What can I do to help it? I haven't had a shader cache download come from Steam since I joined the beta.
Posted Oct 2, 2021, 4:51 PM UTC
specs , OS, cpu, gpu,gpu driver , ram ,ssd ,swap file size , game settings / options ?
Pop OS 21.04
Ryzen 5 3600
2x8 3600Mhz DDR4
RX 480 8GB
Mesa 21.2.1 iirc, whichever Pop OS has on latest update
SSD is a Crucial MX500 or TX500 or something, it has DRAM cache, 1TB
Swap no but I've never seen memory usage go higher than like 12 gigs
Settings I tweak for each game, I aim for 1080p60
You always want a swapfile. You can just use a flat file (dd to create a zeroed file, mkswap to format the file, swapon to do something) instead of a partition.
Swap allows the system to behave much better when something is going wrong and leaking memory.
Ok I'll do this. Thanks for the tip 😃
And control its usage.
https://www.howtoforge.com/tutorial/linux-swappiness/
Low swappiness = only used when absolutely necessary. Which is hopefully never.
Here is a quick guide I made for creating a swapfile, hope it's useful.