Somewhere between mesa-19.1.6 and mesa-19.2.0-rc2 a severe performance regression in X4:Foundations snuck in.
The main menu (and gameplay) renders at <1 fps after 74470baebbdacc8fd31c9912eb8c00c0cd102903, ac/nir: Lower large indirect variables to scratch
I tried adjusting graphics settings to perhaps isolate one specific option, but it didn't seem to matter.
I then checked out mesa-19.2-rc2 and reverted the commit, after which the game rendered normally at 60fps.
GPU: AMD RX480
I'll be happy to help diagnose further but I'm at my wits' end.
Should be fixed by
Is already fixed differently in master.
I see that merge request was just merged, so I did a quick look into staging/19.2 and can confirm it works fine now.