Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ranplayer opened this issue Sep 7, 2022 · 2 comments · Fixed by #3581
Closed

Comments

@ranplayer
Copy link

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

@pchome
Copy link
Contributor

pchome commented Sep 7, 2022

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}

🤷‍♂️

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

@doitsujin
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants