Created
May 11, 2021 23:19
-
-
Save gort818/8d364e2ea6343538e9f09ea8ca2b2d8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ENV variables | |
Env=( | |
'mangohud' | |
'DXVK_ASYNC=1' | |
'WINEDEBUG=-all' | |
'gamemoderun' | |
'ENABLE_VKBASALT=1' | |
'WINEFSYNC=1' | |
'DXVK_LOG_LEVEL=none' | |
'DXVK_STATE_CACHE=0' | |
'WINEDLLOVERRIDES=dxgi=n' | |
) | |
function AmdgpuPro { | |
Env+=('VK_ICD_FILENAMES=/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json') | |
} | |
function AmdVlk { | |
Env+=('VK_ICD_FILENAMES=/opt/amdvlk/etc/vulkan/icd.d/amd_icd64.json') | |
} | |
# Call functions | |
#AmdgpuPro | |
#AmdVlk | |
#Set your WINEPREFIX | |
prefix=/mnt/nvme/star_citizen/ | |
# Set your wine bin | |
wine=/usr/bin/wine | |
#Set your game exe | |
game="/mnt/nvme/star_citizen/drive_c/Program Files/Roberts Space Industries/RSI Launcher/RSI Launcher.exe" | |
#Command line args | |
args=("--use-gl=osmesa") | |
#run the game | |
echo Running ${Env[@]} WINEPREFIX="$prefix" "$wine" "$game" | |
${Env[@]} WINEPREFIX="$prefix" "$wine" "$game" ${args[@]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment