Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Compatibility tool for Steam Play based on Wine and additional components

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
LICENSE
BSD-3-Clause
LICENSE.proton
NotificationsYou must be signed in to change notification settings

ValveSoftware/Proton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proton is a tool for use with the Steam client which allows games which areexclusive to Windows to run on the Linux operating system. It uses Wine tofacilitate this.

Most users should use Proton provided by the Steam Client itself. Seethis Steam Community post for more details.

The source code is provided to enable advanced users the ability to alterProton. For example, some users may wish to use a different version of Winewith a particular title.

The changelog is available onour wiki.

Obtaining Proton sources

Acquire Proton's source by cloninghttps://github.com/ValveSoftware/Protonand checking out the branch you desire.

You can clone the latest Proton to your system with this command:

git clone --recurse-submodules https://github.com/ValveSoftware/Proton.git proton

Be sure to update submodules when switching between branches:

git checkout experimental_6.3git submodule update --init --recursive

If you want to change any subcomponent, now is the time to do so. Forexample, if you wish to make changes to Wine, you would apply them to thewine/ directory.

Building Proton

Most of Proton builds inside the Proton SDK container with very fewdependencies on the host side.

Preparing the build environment

You need either a Docker or a Podman setup. We highly recommendthe rootlessPodman setup. Please refer to your distribution'sdocumentation for setup instructions (e.g. ArchPodman /Docker, DebianPodman /Docker).

The Easy Way

We provide a top-level Makefile which will execute most of the build commandsfor you.

After checking out the repository and updating its submodules, assuming thatyou have a working Docker or Podman setup, you can build and install Protonwith a simple:

make install

If your build system is missing dependencies, it will fail quickly with a clearerror message.

After the build finishes, you may need to restart the Steam client to see thenew Proton tool. The tool's name in the Steam client will be based on thecurrently checked out branch of Proton. You can override this name using thebuild_name variable.

Seemake help for other build targets and options.

Manual building

Configuring the build

mkdir ../build&&cd ../build../proton/configure.sh --enable-ccache --build-name=my_build

Runningconfigure.sh will create aMakefile allowing you to build Proton.The scripts checks if containers are functional and prompt you if anyhost-side dependencies are missing. You should run the command from adirectory created specifically for your build.

The configuration script tries to discover a working Docker or Podman setupto use, but you can force a compatible engine with--container-engine=<executable_name>.

You can enable ccache with--enable-cache flag. This will mount your$CCACHE_DIR or$HOME/.ccache inside the container.

--proton-sdk-image=registry.gitlab.steamos.cloud/proton/soldier/sdk:<version>can be used to build with a custom version of the Proton SDK images.

Check--help for other configuration options.

NOTE: IfSELinux is in use, the Proton build container may fail to accessyour user's files. This is caused bySELinux's filesystemlabels. You may pass the--relabel-volumes switch toconfigure to cause thecontainer engine to relabel itsbind-mounts and allow access to those files from within thecontainer. This can be dangerous when used with system directories. Proceedwith caution and refer your container engine's manual.

Building

make

Important make targets:

make install - install Proton into your user's Steam directory, see theinstall Protonlocally section for details.

make redist - create a redistribute build (redist/) that can be copied to~/.steam/root/compatibilitytools.d/.

make deploy - create a deployment build (deploy/). This is what we use todeploy Proton to Steam users via Steamworks.

make module=<module> module - build both 32- and 64-bit versions of thespecified wine module. This allows rapid iteration on one module. This targetis only useful after building Proton.

make dxvk /make vkd3d-proton - rebuild DXVK / vkd3d-proton.

Debug Builds

To prevent symbol stripping addUNSTRIPPED_BUILD=1 to themakeinvocation. This should be used only with a clean build directory.

E.g.:

mkdir ../debug-proton-build && cd ../debug-proton-build../proton/configure.sh --enable-ccache --build-name=debug_buildmake UNSTRIPPED_BUILD=1 install

Install Proton locally

Steam ships with several versions of Proton, which games will use by default orthat you can select in Steam Settings' Steam Play page. Steam also supportsrunning games with local builds of Proton, which you can install on yourmachine.

To install a local build of Proton into Steam, make a new directory in~/.steam/root/compatibilitytools.d/ with a tool name of your choosing andplace the directory containing your redistributable build under that path.

Themake install target will perform this task for you, installing theProton build into the Steam folder for the current user. You will have torestart the Steam client for it to pick up on a new tool.

A correct local tool installation should look similar to this:

compatibilitytools.d/my_proton/├── compatibilitytool.vdf├── filelock.py├── LICENSE├── proton├── proton_dist.tar├── toolmanifest.vdf├── user_settings.sample.py└── version

To enable your local build in Steam, go to the Steam Play section of theSettings window. If the build was correctly installed, you should see"proton-localbuild" in the drop-down list of compatibility tools.

Each component of this software is used under the terms of their licenses.See theLICENSE files here, as well as theLICENSE,COPYING, etc filesin each submodule and directory for details. If you distribute a builtversion of Proton to other users, you must adhere to the terms of theselicenses.

Debugging

Proton builds have their symbols stripped by default. You can switch to"debug" beta branch in Steam (search for Proton in your library,Properties... -> BETAS -> select "debug") or build without stripping (seeDebug Builds section).

The symbols are provided through the accompanying.debug files which mayneed to be explicitly loaded by the debugging tools. For GDB there's a helperscriptwine/tools/gdbinit.py (source it) that providesload-symbol-files(orlsf for short) command which loads the symbols for all the mapped files.

For tips on debugging seedocs/DEBUGGING.md.

compile_commands.json

For use withclangd LSP server and similar tooling.

Projects built using cmake or meson (e.g. vkd3d-proton) automatically come withcompile_commands.json. For autotools (e.g. wine) you have toconfigure thebuild with--enable-bear that usesbear to create the compilation database.It's not on by default as it make the build slightly slower.

The build system collects all the created compile_commands.json files in abuild subdirectory namedcompile_commands/.

The paths are translated to point to the real source (i.e. not the rsyncedcopy). It still may depend on build directory for things like auto-generatedconfig.h though and for wine it may be beneficial to runtools/make_requestsin you source directories as those changes are not committed.

You can then configure your editor to use that file for clangd in a few ways:

  1. directly - some editors/plugins allow you to specify the path tocompile_commands.json
  2. via.clangd file, e.g.
cd src/proton/wine/cat> .clangd<<EOFCompileFlags:  CompilationDatabase: ../build/current-dev/compile_commands/wine64/EOF
  1. by symlinking:
ln -s ../build/current-dev/compile_commands/wine64/compile_commands.json.

Runtime Config Options

Proton can be tuned at runtime to help certain games run. The Steam client setssome options for known games using theSTEAM_COMPAT_CONFIG variable.You can override these options using the environment variables described below.

The best way to set these environment overrides for all games is by renaminguser_settings.sample.py touser_settings.py and modifying it appropriately.This file is located in the Proton installation directory in your Steam library(often~/.steam/steam/steamapps/common/Proton #.#).

If you want to change the runtime configuration for a specific game, you canuse theSet Launch Options setting in the game'sProperties dialog in theSteam client. Set the variable, followed by%command%. For example, input"PROTON_USE_WINED3D=1 %command%" to use the OpenGL-based wined3d rendererinstead of the Vulkan-based DXVK renderer.

To enable an option, set the variable to a non-0 value. To disable anoption, set the variable to0. To use Steam's default configuration, donot specify the variable at all.

All of the below are runtime options. They do not effect permanent changes tothe Wine prefix. Removing the option will revert to the previous behavior.

Compat config stringEnvironment VariableDescription
PROTON_LOGConvenience method for dumping a useful debug log to$PROTON_LOG_DIR/steam-$APPID.log. Set to1 to enable default logging, or set to a string to be appended to the defaultWINEDEBUG channels.
PROTON_LOG_DIROutput log files into the directory specified. Defaults to your home directory.
PROTON_WAIT_ATTACHWait for a debugger to attach to steam.exe before launching the game process. To attach to the game process at startup, debuggers should be set to follow child processes.
PROTON_CRASH_REPORT_DIRWrite crash logs into this directory. Does not clean up old logs, so may eat all your disk space eventually.
wined3dPROTON_USE_WINED3DUse OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11, d3d10, and d3d9.
nod3d11PROTON_NO_D3D11Disabled3d11.dll, for d3d11 games which can fall back to and run better with d3d9.
nod3d10PROTON_NO_D3D10Disabled3d10.dll anddxgi.dll, for d3d10 games which can fall back to and run better with d3d9.
dxvkd3d8PROTON_DXVK_D3D8Use DXVK'sd3d8.dll.
noesyncPROTON_NO_ESYNCDo not use eventfd-based in-process synchronization primitives.
nofsyncPROTON_NO_FSYNCDo not use futex-based in-process synchronization primitives. (Automatically disabled on systems with noFUTEX_WAIT_MULTIPLE support.)
noximPROTON_NO_XIMEnabled by default. Do not attempt to use XIM (X Input Methods) support. XIM support is known to cause crashes with libx11 older than version 1.7.
disablenvapiPROTON_DISABLE_NVAPIDisable NVIDIA's NVAPI GPU support library.
nativevulkanloaderUse the Vulkan loader shipped with the game instead of Proton's built-in Vulkan loader. This breaks VR support, but is required by a few games.
forcelgaddPROTON_FORCE_LARGE_ADDRESS_AWAREForce Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
heapdelayfreePROTON_HEAP_DELAY_FREEDelay freeing some memory, to work around application use-after-free bugs.
gamedrivePROTON_SET_GAME_DRIVECreate an S: drive which points to the Steam Library which contains the game.
noforcelgaddDisable forcelgadd. If both this andforcelgadd are set, enabled wins.
oldglstrPROTON_OLD_GL_STRINGSet some driver overrides to limit the length of the GL extension string, for old games that crash on very long extension strings.
vkd3dfl12Force the Direct3D 12 feature level to 12, regardless of driver support.
vkd3dbindlesstbPutforce_bindless_texel_buffer intoVKD3D_CONFIG.
nomfdxgimanWINE_DO_NOT_CREATE_DXGI_DEVICE_MANAGEREnable hack to work around video issues in some games due to incomplete IMFDXGIDeviceManager support.
noopwrWINE_DISABLE_VULKAN_OPWREnable hack to disable Vulkan other process window rendering which sometimes causes issues on Wayland due to blit being one frame behind.
hidenvgpuPROTON_HIDE_NVIDIA_GPUForce Nvidia GPUs to always be reported as AMD GPUs. Some games require this if they depend on Windows-only Nvidia driver functionality. See also DXVK's nvapiHack config, which only affects reporting from Direct3D.
WINE_FULLSCREEN_INTEGER_SCALINGEnable integer scaling mode, to give sharp pixels when upscaling.
cmdlineappend:Append the string after the colon as an argument to the game command. May be specified more than once. Escape commas and backslashes with a backslash.
xaliaPROTON_USE_XALIAEnable Xalia, a program that can add a gamepad UI for some keyboard/mouse interfaces.
seccompPROTON_USE_SECCOMPNote: Obsoleted in Proton 5.13. In older versions, enable seccomp-bpf filter to emulate native syscalls, required for some DRM protections to work.
d9vkPROTON_USE_D9VKNote: Obsoleted in Proton 5.0. In older versions, use Vulkan-based DXVK instead of OpenGL-based wined3d for d3d9.

About

Compatibility tool for Steam Play based on Wine and additional components

Topics

Resources

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
LICENSE
BSD-3-Clause
LICENSE.proton

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp