inversion for all *SYNC settings
This commit is contained in:
@ -1644,7 +1644,7 @@ init_wine_ver () {
|
||||
export WINELOADER="$WINE"
|
||||
WINESERVER="$RT_PREFIX$(command -v wineserver)"
|
||||
export WINESERVER
|
||||
export PW_NO_FSYNC=1
|
||||
export PW_USE_FSYNC=0
|
||||
unset WINEDLLPATH
|
||||
else
|
||||
if [[ -d "${PORT_WINE_PATH}/data/dist" ]] ; then
|
||||
@ -2397,6 +2397,16 @@ pw_init_db () {
|
||||
source "${PORTWINE_DB_FILE}"
|
||||
elif [[ -f "${portwine_exe}".ppdb ]] ; then
|
||||
PORTWINE_DB_FILE="${portwine_exe}".ppdb
|
||||
if grep -q "PW_NO_" "${PORTWINE_DB_FILE}" ; then
|
||||
sed -i \
|
||||
-e "s/PW_NO_ESYNC=.*1.*/PW_USE_ESYNC=\"0\"/g" \
|
||||
-e "s/PW_NO_ESYNC=.*0.*/PW_USE_ESYNC=\"1\"/g" \
|
||||
-e "s/PW_NO_FSYNC=.*1.*/PW_USE_FSYNC=\"0\"/g" \
|
||||
-e "s/PW_NO_FSYNC=.*0.*/PW_USE_FSYNC=\"1\"/g" \
|
||||
-e "s/PW_NO_NTSYNC=.*1.*/PW_USE_NTSYNC=\"0\"/g" \
|
||||
-e "s/PW_NO_NTSYNC=.*0.*/PW_USE_NTSYNC=\"1\"/g" \
|
||||
"${PORTWINE_DB_FILE}"
|
||||
fi
|
||||
# shellcheck source=/dev/null
|
||||
source "${PORTWINE_DB_FILE}"
|
||||
if echo "${portwine_exe}" | grep "/prefixes/" &>/dev/null ; then
|
||||
@ -3364,12 +3374,12 @@ start_portwine () {
|
||||
if [[ $ULIMIT_HN -lt 524288 ]] ; then
|
||||
print_warning "ESYNC dont work! (ulimit -Hn $ULIMIT_HN < 524288)"
|
||||
export WINEESYNC="0"
|
||||
elif [[ $PW_NO_ESYNC == "1" ]]
|
||||
elif [[ $PW_USE_ESYNC == "0" ]]
|
||||
then export WINEESYNC="0"
|
||||
else export WINEESYNC="1"
|
||||
fi
|
||||
|
||||
if [[ $PW_NO_FSYNC == "1" ]] ; then
|
||||
if [[ $PW_USE_FSYNC == "0" ]] ; then
|
||||
export WINEFSYNC="0"
|
||||
export WINEFSYNC_FUTEX2="0"
|
||||
else
|
||||
@ -3378,7 +3388,7 @@ start_portwine () {
|
||||
check_variables WINEFSYNC_FUTEX2 0
|
||||
fi
|
||||
|
||||
if [[ $PW_NO_NTSYNC == "0" ]] ; then
|
||||
if [[ $PW_USE_NTSYNC == "1" ]] ; then
|
||||
if [[ -e "/dev/ntsync" ]] ; then
|
||||
export WINENTSYNC="1"
|
||||
export WINEFSYNC="0"
|
||||
@ -5395,7 +5405,7 @@ export -f gui_proton_downloader
|
||||
gui_edit_db () {
|
||||
KEY_EDIT_DB_GUI=$RANDOM
|
||||
PW_EDIT_DB_LIST=(PW_MANGOHUD PW_MANGOHUD_USER_CONF PW_VKBASALT PW_VKBASALT_USER_CONF PW_DGVOODOO2 PW_GAMESCOPE
|
||||
PW_NO_ESYNC PW_NO_FSYNC PW_NO_NTSYNC PW_USE_RAY_TRACING PW_USE_NVAPI_AND_DLSS PW_USE_OPTISCALER
|
||||
PW_USE_ESYNC PW_USE_FSYNC PW_USE_NTSYNC PW_USE_RAY_TRACING PW_USE_NVAPI_AND_DLSS PW_USE_OPTISCALER
|
||||
PW_USE_LS_FRAME_GEN PW_WINE_FULLSCREEN_FSR PW_HIDE_NVIDIA_GPU PW_VIRTUAL_DESKTOP PW_USE_TERMINAL PW_GUI_DISABLED_CS
|
||||
PW_USE_GAMEMODE PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME PW_REDUCE_PULSE_LATENCY PW_USE_US_LAYOUT PW_USE_GSTREAMER
|
||||
PW_USE_SHADER_CACHE PW_USE_WINE_DXGI PW_USE_EAC_AND_BE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE
|
||||
@ -5422,9 +5432,9 @@ gui_edit_db () {
|
||||
<b>Super + S :</b> Take screenshot (currently goes to /tmp/gamescope_DATE.png)
|
||||
<b>Super + G :</b> Toggle keyboard grab
|
||||
<b>Super + C :</b> Update clipboard]}
|
||||
PW_NO_ESYNC_INFO=${translations[Do not use in-process synchronization primitives based on eventfd. (It is recommended not to change the value.)]}
|
||||
PW_NO_FSYNC_INFO=${translations[Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems without FUTEX_WAIT_MULTIPLE support) (It is recommended not to change the value)]}
|
||||
PW_NO_NTSYNC_INFO=${translations[Do not use in-process synchronization via the Linux ntsync driver. (Automatically disabled on systems without loaded ntsync module) (Experimental)]}
|
||||
PW_USE_ESYNC_INFO=${translations[Enable in-process synchronization primitives based on eventfd. (It is recommended not to change the value.)]}
|
||||
PW_USE_FSYNC_INFO=${translations[Enable futex-based in-process synchronization primitives. (Automatically disabled on systems without FUTEX_WAIT_MULTIPLE support) (It is recommended not to change the value)]}
|
||||
PW_USE_NTSYNC_INFO=${translations[Enable in-process synchronization via the Linux ntsync driver. (Automatically disabled on systems without loaded ntsync module) (Experimental)]}
|
||||
PW_USE_RAY_TRACING_INFO=${translations[Enable vkd3d support - Ray Tracing]}
|
||||
PW_USE_NVAPI_AND_DLSS_INFO=${translations[Enable DLSS on supported NVIDIA graphics cards]}
|
||||
PW_USE_OPTISCALER_INFO=${translations[Enable OptiScaler. It is a tool that lets you replace upscalers in games that already support DLSS2+ / FSR2+ / XeSS, now also supports enabling frame generation in those same games (through Nukem dlssg-to-fsr3 or OptiFG)]}
|
||||
@ -5482,7 +5492,7 @@ gui_edit_db () {
|
||||
DISABLE_EDIT_DB_LIST+=" PW_USE_SUPPLIED_DXVK_VKD3D"
|
||||
fi
|
||||
|
||||
[[ ! -e "/dev/ntsync" ]] && DISABLE_EDIT_DB_LIST+=" PW_NO_NTSYNC"
|
||||
[[ ! -e "/dev/ntsync" ]] && DISABLE_EDIT_DB_LIST+=" PW_USE_NTSYNC"
|
||||
|
||||
if check_wayland_session
|
||||
then DISABLE_EDIT_DB_LIST+=" PW_USE_US_LAYOUT"
|
||||
@ -7315,8 +7325,8 @@ pw_autoinstall_from_db () {
|
||||
export PW_NO_WRITE_WATCH=0
|
||||
export PW_VULKAN_USE=1
|
||||
export PW_USE_EAC_AND_BE=0
|
||||
export PW_NO_FSYNC=1
|
||||
export PW_NO_ESYNC=1
|
||||
export PW_USE_FSYNC=0
|
||||
export PW_USE_ESYNC=0
|
||||
unset PORTWINE_CREATE_SHORTCUT_NAME
|
||||
export PW_DISABLED_CREATE_DB=1
|
||||
export PW_MANGOHUD=0
|
||||
|
Reference in New Issue
Block a user