
w177us
Published
So the game was basically running fine, except for these extremely annoying random ERR_GFX_STATE
crashes all the time. Nothing I found online helped me. But now, I'm absolutely convinced that I fixed the problem. Played on two different days for three hours without a single crash now, I even upped all the graphics settings. Apparently, the cause is NVIDIA's "TDR". NVIDIA tells us so themselves in their driver version 497.09 changelog:
[Red Dead Redemption 2/Doom Eternal]: The game crashes with TDR or the system crashes while running the game. [200766423]
The problem is, this driver isn't available for Linux yet (the latest one is 495.46 as of writing). Luckily we can simply disable TDR. I generated a fresh xorg.conf
using nvidia-settings
(since Ubuntu usually doesn't have one) and added the following parameter to the Device
section:
Option "Interactive" "0"
This disables TDR. You can also add it to the Screen
section, it doesn't matter. If you don't believe me check the documentation for that parameter: http://http.download.nvidia.com/XFree86/Linux-x86/270.41.06/README/xconfigoptions.html#Interactive
If you already have a /etc/X11/xorg.conf
make sure to make a backup. Copy the new file now to /etc/X11/xorg.conf
and reboot. For completeness sake I'm also posting my launch settings, but honestly I don't think they play a big role (they're a testimony to all the things I tried):
WINEDLLOVERRIDES=dxgi=n,b PULSE_LATENCY_MSEC=60 %command% -adapter 0 -vulkan -width 2560 -height 1440 -USEALLAVAILABLECORES -cpuLoadRebalancing -ignorepipelinecache
Note that TDR (Timeout Detection & Recovery) seems to be a fault recovery feature and I guess disabling it could make your system more unstable, I personally haven't experienced any problems though. Also, needless to say that this solution only works if you're using X11 (instead of e.g. Wayland). Enjoy.
On Win10 the game is barely playable on my machine (lots of startup crashes and periodic freezes). On Linux it runs surprisingly good!
I simply installed winetricks from the repository (without "--self-update").
Locate the "pfx" directory and export it as WINEPREFIX. On my machine:
$ export WINEPREFIX="$HOME/.steam/steam/steamapps/compatdata/244850/pfx"
$ winetricks dotnet472 vcrun2015 faudio d3dcompiler_47
I also added <gcServer enabled="true" /> to SpaceEngineers.exe.config.
Not really significant. The intro movie doesn't show up. It's still possible to skip it though. Also, I'm having the exit bug as described here: https://github.com/Linux74656/SpaceEngineersLinuxPatches
Native version works fine, there were just a couple libraries missing.
I copied the following libs to "XCOM 2/lib/x86_64/"
libcrypto.so.1.0.0
libcurl.so.4.5.0
libgconf-2.so.4
libSDL2_image-2.0.so.0
They're probably already somewhere on your system. Then, I went to "XCOM 2/bin/"
and started the game manually via:
LD_LIBRARY_PATH='/lib:usr/lib:../lib/x86_64/' ./XCOM2