protonscr

[feature] able to define configuration properties through an environment variable

dxvkclosed enhancement
doitsujin/dxvk#2894 · opened 2022-09-07 by ranplayer · updated 2023-08-01 · 2 comments · github
2 matching comments, n / p to jump
Rranplayer 2022-09-07 github

It would be useful if we were able to define the configuration properties through an environment variable (e.g: DXVK_CONFIG=dxgi.syncInterval=1,d3d11.samplerAnisotropy=16).

It would be easier and faster for testing and customizing than creating a dxvk.conf file for every game. Also for integrating with GUIs (Steam, Lutris, etc...)

Ppchome 2022-09-07 github

alias dxvk='echo -e ${DXVK_CONFIG//,/\\n} > /tmp/dxvk.conf; $@'

export DXVK_CONFIG=dxgi.syncInterval=1,d3d11.samplerAnisotropy=16
export DXVK_CONFIG_FILE=/tmp/dxvk.conf
dxvk less ${DXVK_CONFIG_FILE}

:man_shrugging:

EDIT: maybe not with alias like this, but you got it

Ddoitsujin maintainer 2022-09-07 github

This was actually planned and I just kind of forgot about it.