Difference between revisions of "Proton"

From FEX-Emu Wiki
Jump to navigation Jump to search
(Created page with "Proton is the Windows on Linux compatibility layer that Steam uses to run Windows titles. Read more about it [https://en.wikipedia.org/wiki/Proton_(software) here] == Prereq...")
 
Line 25: Line 25:
 
== DXVK ==
 
== DXVK ==
 
Lots of games require Vulkan in order to run since they will be executed using DXVK. Make sure your AArch64 device has a new enough Vulkan driver to handle DXVK.
 
Lots of games require Vulkan in order to run since they will be executed using DXVK. Make sure your AArch64 device has a new enough Vulkan driver to handle DXVK.
 +
 +
== Running outside of pressure-vessel ==
 +
=== Environment variables ===
 +
* STEAM_COMPAT_DATA_PATH
 +
** This needs to point to a path where proton will set up a wine prefix
 +
** export STEAM_COMPAT_DATA_PATH=$HOME/test_proton
 +
** mkdir $STEAM_COMPAT_DATA_PATH
 +
* STEAM_COMPAT_INSTALL_PATH
 +
** Needs to point to the game install path
 +
** export STEAM_COMPAT_INSTALL_PATH=<STEAM_LIBRARY>/steamapps/common/Spelunky/
 +
* STEAM_COMPAT_CLIENT_INSTALL_PATH
 +
** Needs to point to steam
 +
** export STEAM_COMPAT_CLIENT_INSTALL_PATH=$HOME/.steam
 +
 +
=== Running ===
 +
* ./proton waitforexitandrun <STEAM_LIBRARY>/steamapps/common/Spelunky/Spelunky.exe

Revision as of 17:16, 28 June 2022

Proton is the Windows on Linux compatibility layer that Steam uses to run Windows titles. Read more about it here


Prerequisites

Updating pressure-vessel

Pressure-vessel is the container software that Proton uses to containerize itself. Steam doesn't ship a version of pressure-vessel that supports FEX-Emu, so this needs to be built and overwrite the version that Steam ships.

Gotchas

  • When Steam updates its runtimes, it may overwrite the one you've installed. rsync again to overwrite again
  • If pressure-vessel complains about missing lib64 files or unable to execute some adverb then two things could have happened
    • Your pressure-vessel changes got overwritten, rsync again
    • Your version of FEX is too old, needs at least FEX-2207

Running

Selecting a Proton game inside of the Steam install and running it should be all that is necessary. Be patient as due to how pressure-vessel and FEX interacts with each other, building the chroot environment can take a few minutes. Watch the processes in htop if you want to make sure.

DXVK

Lots of games require Vulkan in order to run since they will be executed using DXVK. Make sure your AArch64 device has a new enough Vulkan driver to handle DXVK.

Running outside of pressure-vessel

Environment variables

  • STEAM_COMPAT_DATA_PATH
    • This needs to point to a path where proton will set up a wine prefix
    • export STEAM_COMPAT_DATA_PATH=$HOME/test_proton
    • mkdir $STEAM_COMPAT_DATA_PATH
  • STEAM_COMPAT_INSTALL_PATH
    • Needs to point to the game install path
    • export STEAM_COMPAT_INSTALL_PATH=<STEAM_LIBRARY>/steamapps/common/Spelunky/
  • STEAM_COMPAT_CLIENT_INSTALL_PATH
    • Needs to point to steam
    • export STEAM_COMPAT_CLIENT_INSTALL_PATH=$HOME/.steam

Running

  • ./proton waitforexitandrun <STEAM_LIBRARY>/steamapps/common/Spelunky/Spelunky.exe