Noob issues with Proton

I haven’t put much energy into wine/winetricks or proton config so far. But recently started to test some games with Proton, and I have couple questions.

  1. Is there a comprehensive list of launching options?
  2. How to change DX12 to DX11, or force games to use DX11? Couldn’t find anything about it.
  3. Is there a way to disable CPU cores, or force a game to use particular amount of cores?
  4. Is there a possibility to declare which GPU drivers a game should use without installing/uninstalling them? I have standard mesa and vulkan-amdgpu ones installed.

Thanks in advance for help.

1 Like
  1. There can be a lot of options that aren’t specifically proton, such as for PulseAudio ones. You can find proton specific ones at GitHub - ValveSoftware/Proton: Compatibility tool for Steam Play based on Wine and additional comp. Also checking on ProtonDB is helpful.
  2. That’s up to the game itself and nothing to do with proton.
  3. taskset -c 0-7 %command% will use 8 cores , for example. Change as needed.
  4. As long as you aren’t using amdvlk for the Vulkan driver, then you’re already using the correct driver as the Vulkan driver isn’t directly included in Mesa.
2 Likes

Not sure what you want/need exactly to be honest. Most things are controlled by environment variables and not so much any launching options. And there is an infinite number of them unfortunately. It really depends what issue you need to solve, I’m not aware of a list of every single environment variable :wink:

As 2FA already mentioned this is up to the game. The games decides which API it supports or rather the developer decides which APIs it uses for their game. You cannot force it to use an API it does not support (other then translation layers like DXVK of course but I assume that’s what you’re going for).
That being said, if a game does support both APIs then there is usually an option in a separate launcher, if it has one (most titles do in that case because it has to be decided before launching the game), or there is a configuration variable in a configuration file. In that case you’d have to check PC Gaming Wiki or other sites to find where and how that option is changed, as it just depends on the game in question.

This is defined with the Vulkan ICD loader you are using.

In most cases though you don’t really need to worry about setting the ICD loader manually as it should be set to a sane default already, and will just use the GPU where the monitor is attached to. There are some edge cases if you have multiple GPUs (this is especially true for laptops), and you can manually override the ICD loader to be used with the VK_ICD_FILENAMES environment variable. The value of that variable is the path to the ICD loader JSON file you want to use.
See also the Arch Wiki on Vulkan.

RADV is part of Mesa, so while it might not be installed by default depending how the system was installed, it is one of many components provided by Mesa.


On a side note: If you are not already, I would highly recommend using Lutris for your non-steam games to manage installation and settings. For Steam games it doesn’t matter as Steam takes care of everything, but for non-steam games it provides installation scripts that set up most if not all of the things required to make a game run in WINE.

3 Likes

As 2FA mentioned, the proton page has the long list.

The launch option you might want is:

PROTON_USE_WINED3D=1 %command%

But you might check the protondb page for the particular game

long answer, from the link 2fa posted here:

comprehensive list of launching options

Runtime Config Options

Proton can be tuned at runtime to help certain games run. The Steam client sets some options for known games using the STEAM_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 renaming user_settings.sample.py to user_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 can use the Set Launch Options setting in the game’s Properties dialog in the Steam client. Set the variable, followed by %command% . For example, input " PROTON_USE_WINED3D=1 %command% " to use the OpenGL-based wined3d renderer instead of the Vulkan-based DXVK renderer.

To enable an option, set the variable to a non-0 value. To disable an option, set the variable to 0. To use Steam’s default configuration, do not specify the variable at all.

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

Compat config string Environment Variable Description
PROTON_LOG Convenience method for dumping a useful debug log to $PROTON_LOG_DIR/steam-$APPID.log For more thorough logging, use user_settings.py .
PROTON_LOG_DIR Output log files into the directory specified. Defaults to your home directory.
PROTON_DUMP_DEBUG_COMMANDS When running a game, Proton will write some useful debug scripts for that game into $PROTON_DEBUG_DIR/proton_$USER/ .
PROTON_DEBUG_DIR Root directory for the Proton debug scripts, /tmp by default.
PROTON_CRASH_REPORT_DIR Write crash logs into this directory. Does not clean up old logs, so may eat all your disk space eventually.
wined3d PROTON_USE_WINED3D Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11, d3d10, and d3d9.
nod3d11 PROTON_NO_D3D11 Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9.
nod3d10 PROTON_NO_D3D10 Disable d3d10.dll and dxgi.dll, for d3d10 games which can fall back to and run better with d3d9.
noesync PROTON_NO_ESYNC Do not use eventfd-based in-process synchronization primitives.
nofsync PROTON_NO_FSYNC Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.)
noxim PROTON_NO_XIM Enabled 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.
enablenvapi PROTON_ENABLE_NVAPI Enable NVIDIA’s NVAPI GPU support library.
nativevulkanloader Use 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.
forcelgadd PROTON_FORCE_LARGE_ADDRESS_AWARE Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default.
heapdelayfree PROTON_HEAP_DELAY_FREE Delay freeing some memory, to work around application use-after-free bugs.
gamedrive PROTON_SET_GAME_DRIVE Create an S: drive which points to the Steam Library which contains the game.
noforcelgadd Disable forcelgadd. If both this and forcelgadd are set, enabled wins.
oldglstr PROTON_OLD_GL_STRING Set some driver overrides to limit the length of the GL extension string, for old games that crash on very long extension strings.
vkd3dfl12 Force the Direct3D 12 feature level to 12, regardless of driver support.
vkd3dbindlesstb Put force_bindless_texel_buffer into VKD3D_CONFIG .
hidenvgpu PROTON_HIDE_NVIDIA_GPU Force 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_SCALING Enable 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.
nowritewatch PROTON_NO_WRITE_WATCH Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
seccomp PROTON_USE_SECCOMP Note: Obsoleted in Proton 5.13. In older versions, enable seccomp-bpf filter to emulate native syscalls, required for some DRM protections to work.
d9vk PROTON_USE_D9VK Note: Obsoleted in Proton 5.0. In older versions, use Vulkan-based DXVK instead of OpenGL-based wined3d for d3d9.
1 Like

TBH I can’t think of a situation where you’d actually want this. The OpenGL renderer is slow as hell and DXVK is pretty much feature complete at this point so you will extremely rarely run across a game where it won’t work.

I think two more common ones would be PROTON_NO_ESYNC and PROTON_NO_FSYNC since there’s still some games that don’t work with them properly.

1 Like

Thanks to everyone for the tips.

If what you are saying is true than what about the launching options PROTON_NO_D3D11 and PROTON_NO_D3D10 which are described as a fallback to legacy DX versions? I don’t get it.

I have problems with DeusEx Mankind Divided - it crashes during launch with Proton. And I found on ProtonDB that switching from DX12 to DX11 can fix this.
Native Linux versions have problems with AMD GPU and hangs up after 10-20 minutes of playtime. Also loading saves hangs up the game.

Read the description of those options:

PROTON_NO_D3D11 Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9.

Read: a game that can run on DX9 if it supports it on its own, if there is no DX11 runtime, for example if you’re running it on (native) Windows Vista or XP (as 7 and onwards includes DX11 by default).

What it does is simply not injecting the DXVK dll that translates native DX11 calls to Vulkan.
In simple terms what happens when DXVK is enabled (which Proton does by default):

  • DXVK injects DLLs for a game to use
  • The game (natively) running in DX11 calls the DX11 APIs
  • The injected DLLs translate those DX11 calls to Vulkan
  • magic happens
  • you get a picture

The same goes for DX10 and DX9 at this point (those used to be separate projects but were merged into DXVK).

So what happens when you disable DXVK:

  • There’s no DX11 runtime for the game to use, so if the game supports it, it can fall back to DX9. But note not a lot of (especially modern) games don’t even have a DX9 mode anymore.

DXMD is a native DX11 title and the DX12 mode was experimental even on Windows so I’m not surprised. That being said, DX12 shouldn’t even be enabled by default.
This is an option in the launcher and (again) entirely independent of Proton (or otherwise it wouldn’t be available on Windows…):

2 Likes

Ohhh . Thanks for clarification, now it makes sense.

As for the screenshot and options panel - I can’t see it. The game crashes before it is displayed. After launching the game without any options I find this in the log file:

Proton: 1629748146 proton-6.3-6c
SteamGameId: 337000
Command: ['/games/steamapps/common/Deus Ex Mankind Divided/retail/DXMD.exe']
Options: {'forcelgadd'}
depot: 0.20210723.18
pressure-vessel: 0.20210722.0
scripts: v0.20210722.0-0-gb142f90
soldier: 0.20210719.0 soldier 0.20210719.0

Which log exactly? Cause Steam keeps roughly 1337 logs in even more separate places.

It sounds to me like it’s trying to launch without the launcher, because DX shouldn’t even be used at that point.

Usually holding Ctrl or Shift or Alt will make it launch with the launcher again if some checkbox was ticked at some point.

If not, you can check in your SteamLibrary/steamapps/compatdata/337000/pfx/ directory and open user.reg. There is a section [Software\\Eidos Montreal\\Deus Ex: MD], and under it "FirstRun"=dword:00000000. You can change this to "FirstRun"=dword:00000001 and it should act as if it is the first ever launch and bring up the launcher. If not, you can also change "EnableDX12"=dword:00000001 back to "EnableDX12"=dword:00000000, which should disable DX12.

Also for reference: When I played it, I was using Proton-5.11-GE-3-MF, which is one of GloriousEggroll’s builds of Proton.

1 Like

The log left in home folder, enabled by PROTON_LOG=1 %command% in launch options.

Strange, in user.reg I dont have any of these:

[Software\\Eidos Montreal\\Deus Ex: MD]

"FirstRun"=dword:00000000
"EnableDX12"=dword:00000001

OK so that at least looks about the same as for me:

======================
Proton: 1593899709 5.11-GE-3-MF-12-ge66a9b2
SteamGameId: 337000
Command: ['/home/tarulia/Games/_games-drive/SteamLibrary/steamapps/common/Deus Ex Mankind Divided/retail/DXMD.exe']
Options: {'forcelgadd'}
======================

Just to be save, your /games mountpoint doesn’t happen to be an NTFS volume?
What’s odd about your path is that normally when creating a new library path in Steam, it adds the sub-directory SteamLibrary automatically and to my knowledge that can’t be suppressed… But maybe that was just back when I installed it, which has been a while.

I’m confused since you’re showing exactly the ones I’m talking about…

But just for completeness sake, mine looks like this:

[Software\\Eidos Montreal\\Deus Ex: MD] 1603662283
#time=1d6ab180cba49ea
"FirstRun"=dword:00000000

[Software\\Eidos Montreal\\Deus Ex: MD\\Graphics] 1603684883
#time=1d6ab4cab6a78ce
[...]
"EnableDX12"=dword:00000000
"EnableDX12StablePowerState"=dword:00000000

If that’s not there then either the game didn’t install correctly or you might be no the wrong prefix if you ever changed the game install location (the Prefix doesn’t go with the game when moved, unfortunately, it’s a quirk of Steam right now).

/games is on a sparate drive with EXT4 filesystem.

I meant that inside DE:MD user.reg file there are no entires you listed. Nothing about Eidos, FristRun or DX12 is present in a file.

I’ve never changed games directory, but reinstalled the game several times to troubleshoot it.

What’s the best option here? Remove the game and clean any remaining files manually?

It’s possible those weren’t created because it’s crashing for you on first run already. Why that is though I have no idea because the launcher should work independently of the actual game.
You can try an older Proton version or the GE version for testing sake, otherwise I’m not sure what the issue could be.
Maybe the log will tell you more because what you posted is just the start parameters, not what happened after launch.

With older Proton versions the log file I mentioned is completly empty, and the game is crashing even faster.
I’ll remove it entirely and reinstall. It’ll take me a while.

That’s really strange… because I know for a fact the game works perfectly fine in proton (not so much the joke of a Linux version though… at this point I support Valve in their argument of “stop making native Linux ports”, but that’s a different can of worms).

1 Like

Yeah, I don’t get it too. I have other games (DOOM 2016, DE:HR, Black Mesa) installed in the same directory, running same proton versions completly fine.

Black Mesa native Linux version works pretty well :+1:
Only had one strange performance issue but that went away on its own, still no idea what that was, but it does run fine (which is sort of expected being based on Source Engine).

I have no idea why the log would be empty on older Proton versions though, but maybe that variable is fairly new or was renamed at some point, would have to check the readme version history on GitHub…

Ok. I removed and installed the game again.
Didn’t run it yet, and just looked inside /steamapps/compatdata. There is no folder with ID 337000.

ED: Holly shitto! The reinstall werkd! I can run the game, and loading saves works.
The only problem so far is abysmal framerates. Around 12, no matter what quality settings are chosen. Same 12 FPS on low and ultra.

Do you have an iGPU? If yes it’s possible it’s running on that. In that case see post #3

Otherwise it might just still be building/compiling shaders. You can enable a DXVK overlay to see when its compiling shaders, using DXVK_HUD='compiler' %command% as the launch option. Should be better once shaders are compiled.

1 Like

No, the game is running on dGPU.
Shaders were compiled long before I was able to open the game.
But I found the culprit. It looks that this game don’t like CPUs with more than 8 threads. I fixed this with @2FA advice: taskset -c 0-7 %command%. Now the game is accually playable.

Thanks @mihawk90 for your help!

3 Likes