From 1cd0b569b822df2faadbbe3b7c55299a39954b6d Mon Sep 17 00:00:00 2001 From: Htylol Date: Tue, 22 Jul 2025 07:48:01 +0500 Subject: [PATCH 1/3] gui_edit_db: Instead of disabling, used hiding settings --- data_from_portwine/scripts/functions_helper | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 9cc7b16c..8e06bffb 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -122,6 +122,7 @@ rm_from_array () { if [[ \$rm_names =~ \$element ]] ; then unset $array_name[\$count] $array_name=(\${$array_name[@]}) + ((count--)) fi ((count++)) done" @@ -5413,6 +5414,13 @@ gui_edit_db () { PW_USE_WINED3D_VULKAN PW_USE_SUPPLIED_DXVK_VKD3D PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR ) + if check_wayland_session + then rm_from_array "PW_EDIT_DB_LIST" PW_USE_US_LAYOUT + else rm_from_array "PW_EDIT_DB_LIST" PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR + fi + if [[ $PW_WINE_USE =~ (PROTON_LG|WINE_LG) ]] || [[ $PW_VULKAN_USE == "0" ]] ; then + rm_from_array "PW_EDIT_DB_LIST" PW_USE_SUPPLIED_DXVK_VKD3D + fi check_flatpak && rm_from_array "PW_EDIT_DB_LIST" PW_USE_RUNTIME # GALLIUM NINE @@ -5487,18 +5495,8 @@ gui_edit_db () { ;; esac - if [[ $PW_WINE_USE =~ (PROTON_LG|WINE_LG) ]] \ - || [[ $PW_VULKAN_USE == "0" ]] ; then - DISABLE_EDIT_DB_LIST+=" PW_USE_SUPPLIED_DXVK_VKD3D" - fi - [[ ! -e "/dev/ntsync" ]] && DISABLE_EDIT_DB_LIST+=" PW_USE_NTSYNC" - if check_wayland_session - then DISABLE_EDIT_DB_LIST+=" PW_USE_US_LAYOUT" - else DISABLE_EDIT_DB_LIST+=" PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR" - fi - unset ADD_CHK_BOX_EDIT_DB for int_to_boole in "${PW_EDIT_DB_LIST[@]}" ; do if [[ "${!int_to_boole}" == "1" ]] From 89539538a82f239921470cfdf679bf3246808553 Mon Sep 17 00:00:00 2001 From: Htylol Date: Tue, 22 Jul 2025 09:23:06 +0500 Subject: [PATCH 2/3] AMD_VULKAN_CB: Instead of off, the state is now not displayed --- data_from_portwine/scripts/functions_helper | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 8e06bffb..fc455ea0 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2937,7 +2937,7 @@ pw_skip_get_info () { export AMD_VULKAN_DRIVER_LIST export AMD_VULKAN_CB=":CB" else - export AMD_VULKAN_CB=":DCB" + export AMD_VULKAN_CB=":LBLH" fi logical_cores=$(grep -c ^"processor" /proc/cpuinfo) @@ -5565,6 +5565,8 @@ gui_edit_db () { AMD_VULKAN_VAR="disabled" fi + [[ $AMD_VULKAN_CB == ":LBLH" ]] && translations[Select needed AMD vulkan implementation]="" + "${pw_yad}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 \ --field="${translations[Change the version of WINDOWS emulation]}!${translations[Changing the WINDOWS emulation version may be required to run older games. WINDOWS versions below 10 do not support new games with DirectX 12]} :CB" "${ADD_WINVER_EDIT_DB}" \ --field="${translations[AUTOINSTALL WITH WINETRICKS]}!${translations[Automatically install with WINETRICKS additional libraries required to run the game/program. List of libraries separated by spaces]} :CBE" "$(combobox_fix --empty "${PW_DLL_INSTALL}" "vcrun2019 corefonts lucida")" \ From 9c1cd17ea4ad461af3549d3fb9a0225fb5c29d95 Mon Sep 17 00:00:00 2001 From: Htylol Date: Tue, 22 Jul 2025 11:48:23 +0500 Subject: [PATCH 3/3] Added NUDA_CPU_CB for hide the setting when it is not useful --- data_from_portwine/scripts/functions_helper | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index fc455ea0..9ceabfdd 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -5566,6 +5566,12 @@ gui_edit_db () { fi [[ $AMD_VULKAN_CB == ":LBLH" ]] && translations[Select needed AMD vulkan implementation]="" + if [[ $NUMA_NODE_LIST == "0" ]] ; then + NUDA_CPU_CB=":LBLH" + translations[NUMA node for CPU affinity]="" + else + NUDA_CPU_CB=":CB" + fi "${pw_yad}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 \ --field="${translations[Change the version of WINDOWS emulation]}!${translations[Changing the WINDOWS emulation version may be required to run older games. WINDOWS versions below 10 do not support new games with DirectX 12]} :CB" "${ADD_WINVER_EDIT_DB}" \ @@ -5591,7 +5597,7 @@ mailbox - Triple buffering. Unlimited frame rate + no tearing. relaxed - Same as fifo but allows tearing when below the monitors refresh rate.]} :CB" "$(combobox_fix --disabled "${PW_MESA_VK_WSI_PRESENT_MODE}" "fifo!immediate!mailbox!relaxed")" \ --field="${translations[Select needed AMD vulkan implementation]}!${translations[Choosing which implementation of vulkan will be used to run the game]} $AMD_VULKAN_CB" "$(combobox_fix --disabled "$AMD_VULKAN_VAR" "$AMD_VULKAN_DRIVER_LIST")" \ --field="${translations[NUMA node for CPU affinity]}!${translations[In multi‑core systems, CPUs are split into NUMA nodes, each with its own local memory and cores. -Binding a game to a single node reduces memory‑access latency and limits costly core‑to‑core switches.)]} :CB" "$(combobox_fix --disabled "${NUMA_NODE_INDEX}" "${NUMA_NODE_LIST}")" \ +Binding a game to a single node reduces memory‑access latency and limits costly core‑to‑core switches.)]} $NUDA_CPU_CB" "$(combobox_fix --disabled "${NUMA_NODE_INDEX}" "${NUMA_NODE_LIST}")" \ 1> "$PW_TMPFS_PATH/tmp_output_yad_fps_limit" 2>/dev/null & "${pw_yad}" --notebook --key="$KEY_EDIT_DB_GUI" --title "${translations[EDIT DB]}" --text-align=center \