Ported from SteamOS fixes for gamescope and some games in PortProton

This commit is contained in:
Boria138 2023-12-09 14:39:38 +06:00
parent de28df9329
commit 555c5c5974
2 changed files with 19 additions and 6 deletions

View File

@ -898,12 +898,24 @@ pw_init_db () {
if [[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] && [[ ! -z "${WINE_CPU_TOPOLOGY}" ]] ; then
export PW_WINE_CPU_TOPOLOGY="${WINE_CPU_TOPOLOGY}"
fi
if ls "${PATH_TO_GAME}"/*_Data/Resources/ 2>/dev/null | grep "unity" &>/dev/null \
&& [[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] \
&& [[ $(grep -c "^processor" /proc/cpuinfo) -gt "8" ]]
if ls "${PATH_TO_GAME}"/*_Data/Resources/ 2>/dev/null | grep "unity" &>/dev/null && \
[[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] && \
[[ $(grep -c "^processor" /proc/cpuinfo) -gt "8" ]]
then
export PW_WINE_CPU_TOPOLOGY="8:0,1,2,3,4,5,6,7"
print_info "Automatic added fix for unity games: WINE_CPU_TOPOLOGY=8:0,1,2,3,4,5,6,7"
print_info "Automatic fix added for Unity games: WINE_CPU_TOPOLOGY=8:0,1,2,3,4,5,6,7"
elif "${portwine_exe}" | grep "Cyberpunk" && \
[[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] && \
[[ $(grep -c "^processor" /proc/cpuinfo) -gt "8" ]]
then
export PW_WINE_CPU_TOPOLOGY="8:0,1,2,3,4,5,6,7"
print_info "Automatic fix added for Cyberpunk 2077: WINE_CPU_TOPOLOGY=8:0,1,2,3,4,5,6,7"
elif "${portwine_exe}" | grep "HorizonZeroDawn" && \
[[ "${PW_WINE_CPU_TOPOLOGY}" == "disabled" ]] && \
[[ $(grep -c "^processor" /proc/cpuinfo) -gt "8" ]]
then
export PW_WINE_CPU_TOPOLOGY="8:0,1,2,3,4,5,6,7"
print_info "Automatic fix added for Horizon Zero Dawn: WINE_CPU_TOPOLOGY=8:0,1,2,3,4,5,6,7"
fi
if check_nvidia_rtx ; then

View File

@ -128,9 +128,10 @@ start_portwine () {
fi
export PW_RUN_GAMESCOPE="gamescope -o 30 ${PW_ID_VIDEO} ${GAMESCOPE_ARGS} --"
export PW_WINE_FULLSCREEN_FSR=0
export vk_xwayland_wait_ready=false
else
export PW_USE_GAMESCOPE=0
unset PW_RUN_GAMESCOPE INTEL_DEBUG
unset PW_RUN_GAMESCOPE INTEL_DEBUG vk_xwayland_wait_ready
fi
enabled_fake_nvidia_videocard ()