From afa9519efc48595ac7f4168cfd3a57fde73cfbd4 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 27 Sep 2026 10:58:14 +0500 Subject: [PATCH] chore: enable NVAPI Reflex Signed-off-by: Boris Yumankulov --- build-aux/share/portproton/scripts/functions_helper | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build-aux/share/portproton/scripts/functions_helper b/build-aux/share/portproton/scripts/functions_helper index dc228534..ef387493 100755 --- a/build-aux/share/portproton/scripts/functions_helper +++ b/build-aux/share/portproton/scripts/functions_helper @@ -2955,6 +2955,9 @@ start_portproton () { if [[ "${PW_USE_NVAPI_AND_DLSS}" == "1" ]] ; then export DXVK_ENABLE_NVAPI="1" + if [[ -f "${WINEDIR}/share/dxvk-nvapi-vkreflex-layer/implicit_layer.d/VkLayer_DXVK_NVAPI_reflex.json" ]] ; then + PW_VKREFLEX=1 + fi if echo "$LSPCI_VGA" | grep -i -q 'nvidia' ; then FIND_NVNGX="$(dirname $(find /usr/* -type f -name "nvngx.dll" 2>/dev/null | head -n 1 | awk '{print $1}'))" if [[ -n "$FIND_NVNGX" ]] ; then @@ -2966,6 +2969,7 @@ start_portproton () { fi else export DXVK_ENABLE_NVAPI="0" + unset PW_VKREFLEX DXVK_NVAPI_VKREFLEX fi if [[ "${PW_HEAP_DELAY_FREE}" == 1 ]] @@ -4045,6 +4049,10 @@ steamplay_launch () { else export PW_VK_LAYER_PATH="${PW_PLUGINS_PATH}/portable/share/vulkan/implicit_layer.d" fi + if [[ "${PW_VKREFLEX}" == "1" ]] ; then + export DXVK_NVAPI_VKREFLEX="1" + export PW_VK_LAYER_PATH="${PW_VK_LAYER_PATH:+${PW_VK_LAYER_PATH}:}${WINEDIR}/share/dxvk-nvapi-vkreflex-layer/implicit_layer.d" + fi pw_mangohud_check pw_vkbasalt_check -- 2.54.0