I'm using Steam and Proton and want to get hardware PhysX working in the Arkham games. What needs to be installed, and are there different steps for each game?
How do I enable hardware PhysX in the Batman Arkham games on Linux?
Answers
There is a reported setup for an NVIDIA GPU using the proprietary driver, GE-Proton 10-32 and nvidia-libs 1.0 or newer. Set the game's compatibility tool to GE-Proton 10-32, then put this in its Steam launch options:
PROTON_ENABLE_NVAPI=1 PROTON_HIDE_NVIDIA_GPU=0 PROTON_NVIDIA_LIBS=1 %command%
For Arkham Knight, install PhysX into its Proton prefix with: WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/208650/pfx" "$HOME/.local/share/Steam/compatibilitytools.d/GE-Proton10-32/protonfixes/winetricks" -q physx
Then run the NVIDIA library installer from its x64 directory: cd ~/.local/share/nvidia-libs/x64 && WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/208650/pfx" ./setup_nvlibs.sh install
These paths assume the default Steam location and that nvidia-libs is already installed. Adjust them if your Steam or nvidia-libs files are elsewhere. Launch the game once with the selected Proton version first so its prefix exists.
Reply to this answer
Origins needs one extra step beyond the Knight procedure. Use the same launch options, but replace the prefix app ID 208650 with 209000 when installing PhysX and running the x64 setup_nvlibs.sh installer.
After that, install the 32-bit CUDA DLL into the Origins prefix too: cd ~/.local/share/nvidia-libs/x86 && WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/209000/pfx" ./setup_nvcuda.sh install
Make sure each command points at the Origins prefix, not another game's. The x86 directory matters for that last installer even though the preceding library step uses x64.
Reply to this answer
For Asylum GOTY and City GOTY, the app IDs are 35140 and 200260 respectively. The reported setup says all four games worked, but doesn't provide their individual library installation steps, so I wouldn't assume the Knight or Origins procedure is complete for those two.
The reported configuration was a specific NVIDIA laptop setup. Different drivers, Proton versions or nvidia-libs layouts may need different handling.
Reply to this answer
Add your answer
Answers are reviewed before publication.
LANlatency+Socks:
That launch option was proposed for all four games, but the supplied steps only give a complete installation procedure for Knight and Origins.