dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

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

Open ranplayer opened this issue 3 years ago • 2 comments

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...)

ranplayer avatar Sep 07 '22 13:09 ranplayer

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

pchome avatar Sep 07 '22 14:09 pchome

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

doitsujin avatar Sep 07 '22 15:09 doitsujin