Commit 4cad02a6 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Htylol-fixes-for-ananicy' into devel

parents ad4cdf43 fbc5d9a9
...@@ -457,7 +457,8 @@ msgid "Using FPS and system load monitoring (Turns on and off by the key " ...@@ -457,7 +457,8 @@ msgid "Using FPS and system load monitoring (Turns on and off by the key "
msgstr "" msgstr ""
msgid "Using automatic system optimization to improve performance in games " msgid "Using automatic system optimization to improve performance in games "
"(provided the gamemode package is installed on the system)" "(provided the gamemode package is installed on the system, doesn't "
"work with ananicy)"
msgstr "" msgstr ""
msgid "Forced use of built-in DXGI library (in rare cases it solves " msgid "Forced use of built-in DXGI library (in rare cases it solves "
......
...@@ -526,9 +526,11 @@ msgstr "" ...@@ -526,9 +526,11 @@ msgstr ""
"Uso de monitoreo de FPS y carga del sistema (Se activa y desactiva con la " "Uso de monitoreo de FPS y carga del sistema (Se activa y desactiva con la "
"combinación de teclas - Shift derecho + F12)" "combinación de teclas - Shift derecho + F12)"
#, fuzzy
msgid "" msgid ""
"Using automatic system optimization to improve performance in games " "Using automatic system optimization to improve performance in games "
"(provided the gamemode package is installed on the system)" "(provided the gamemode package is installed on the system, doesn't work with "
"ananicy)"
msgstr "" msgstr ""
"Uso de optimización automática del sistema para mejorar el rendimiento en " "Uso de optimización automática del sistema para mejorar el rendimiento en "
"juegos (siempre que el paquete gamemode esté instalado en el sistema)" "juegos (siempre que el paquete gamemode esté instalado en el sistema)"
......
...@@ -533,11 +533,12 @@ msgstr "" ...@@ -533,11 +533,12 @@ msgstr ""
msgid "" msgid ""
"Using automatic system optimization to improve performance in games " "Using automatic system optimization to improve performance in games "
"(provided the gamemode package is installed on the system)" "(provided the gamemode package is installed on the system, doesn't work with "
"ananicy)"
msgstr "" msgstr ""
"Использование автоматической оптимизации системы для повышения " "Использование автоматической оптимизации системы для повышения "
"производительности в играх (при условии, что в системе установлен пакет " "производительности в играх (при условии, что в системе установлен пакет "
"gamemode)" "gamemode, не работает вместе с ananicy)"
msgid "" msgid ""
"Forced use of built-in DXGI library (in rare cases it solves problems with " "Forced use of built-in DXGI library (in rare cases it solves problems with "
......
...@@ -2860,60 +2860,62 @@ start_portwine () { ...@@ -2860,60 +2860,62 @@ start_portwine () {
export int_xneur=1 export int_xneur=1
fi fi
if check_gamescope_session ; then if check_gamescope_session ; then
export PW_GAMEMODERUN_SLR="" export PW_GAMEMODERUN_SLR=""
elif [[ "$PW_USE_GAMEMODE" = "1" ]] && [[ -n "$DBUS_SESSION_BUS_ADDRESS" ]]; then elif [[ "$PW_USE_GAMEMODE" = "1" ]] && [[ -n "$DBUS_SESSION_BUS_ADDRESS" ]]; then
if systemctl is-active --quiet ananicy.service \ if ! check_flatpak ; then
|| systemctl is-active --quiet ananicy-cpp.service if systemctl is-active --quiet ananicy.service \
then || systemctl is-active --quiet ananicy-cpp.service
export GAMEMODERUN=0 then
export PW_GAMEMODERUN_SLR="" export GAMEMODERUN=0
export PW_GAMEMODERUN_SLR=""
if command -v powerprofilesctl &>/dev/null ; then
if powerprofilesctl list | grep -q 'performance:'; then if command -v powerprofilesctl &>/dev/null ; then
export PW_POWERPROFILECTL_SLR="powerprofilesctl launch -p performance --" if powerprofilesctl list | grep -q 'performance:'; then
print_info "Gamemode replaced by powerprofilectl to avoid conflict with ananicy." export PW_POWERPROFILECTL_SLR="powerprofilesctl launch -p performance --"
else print_info "Gamemode replaced by powerprofilectl to avoid conflict with ananicy."
export PW_POWERPROFILECTL_SLR="" else
fi export PW_POWERPROFILECTL_SLR=""
fi fi
else fi
if command -v gamemoded &>/dev/null ; then fi
export GAMEMODERUN=1 else
PW_GAMEMODERUN_SLR="gamemoderun" if command -v gamemoded &>/dev/null ; then
systemctl enable --now --user gamemoded &>/dev/null export GAMEMODERUN=1
print_info "Gamemode will be launched." PW_GAMEMODERUN_SLR="gamemoderun"
elif check_flatpak ; then systemctl enable --now --user gamemoded &>/dev/null
export GAMEMODERUN=1 print_info "Gamemode will be launched."
PW_GAMEMODERUN_SLR="gamemoderun" elif check_flatpak ; then
print_info "Gamemode will be launched." export GAMEMODERUN=1
elif [[ "$PW_USE_RUNTIME" == 1 ]] ; then PW_GAMEMODERUN_SLR="gamemoderun"
export GAMEMODERUN=1 print_info "Gamemode will be launched."
if ! pidof gamemoded &>/dev/null ; then elif [[ "$PW_USE_RUNTIME" == 1 ]] ; then
GAMEMODEAUTO_NAME="libgamemodeauto.so.0" export GAMEMODERUN=1
if [[ -n "${PW_LD_PRELOAD}" ]]; then if ! pidof gamemoded &>/dev/null ; then
export PW_LD_PRELOAD="${PW_LD_PRELOAD}:${GAMEMODEAUTO_NAME}" GAMEMODEAUTO_NAME="libgamemodeauto.so.0"
else if [[ -n "${PW_LD_PRELOAD}" ]]; then
export PW_LD_PRELOAD="${GAMEMODEAUTO_NAME}" export PW_LD_PRELOAD="${PW_LD_PRELOAD}:${GAMEMODEAUTO_NAME}"
fi else
export PW_LD_PRELOAD="${GAMEMODEAUTO_NAME}"
env LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64:${PW_PLUGINS_PATH}/portable/lib/lib32" \ fi
"${PW_PLUGINS_PATH}/portable/bin/gamemoded" &>/dev/null &
env LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64:${PW_PLUGINS_PATH}/portable/lib/lib32" \
print_info "Gamemode will be launched." "${PW_PLUGINS_PATH}/portable/bin/gamemoded" &>/dev/null &
sleep 0.1
fi print_info "Gamemode will be launched."
else sleep 0.1
export GAMEMODERUN=0 fi
export PW_GAMEMODERUN_SLR="" else
print_info "Gamemode is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE" export GAMEMODERUN=0
fi export PW_GAMEMODERUN_SLR=""
fi print_info "Gamemode is not installed or disabled in vars script or db file: PW_USE_GAMEMODE=$PW_USE_GAMEMODE"
else fi
export GAMEMODERUN=0 fi
export PW_GAMEMODERUN_SLR="" else
fi export GAMEMODERUN=0
pw_other_fixes export PW_GAMEMODERUN_SLR=""
fi
pw_other_fixes
# enabled BattleEye_Runtime and EasyAntiCheat_Runtime # enabled BattleEye_Runtime and EasyAntiCheat_Runtime
if [[ "${PW_USE_EAC_AND_BE}" == 1 ]] ; then if [[ "${PW_USE_EAC_AND_BE}" == 1 ]] ; then
...@@ -4466,7 +4468,7 @@ gui_edit_db () { ...@@ -4466,7 +4468,7 @@ gui_edit_db () {
PW_FORCE_LARGE_ADDRESS_AWARE_INFO=${translations[Increases RAM usage limits for 32-bit applications from two to four gigabytes]} PW_FORCE_LARGE_ADDRESS_AWARE_INFO=${translations[Increases RAM usage limits for 32-bit applications from two to four gigabytes]}
PW_USE_RUNTIME_INFO=${translations[Use container launch mode (It is recommended not to change the value)]} PW_USE_RUNTIME_INFO=${translations[Use container launch mode (It is recommended not to change the value)]}
PW_MANGOHUD_INFO=${translations[Using FPS and system load monitoring (Turns on and off by the key combination - right Shift + F12)]} PW_MANGOHUD_INFO=${translations[Using FPS and system load monitoring (Turns on and off by the key combination - right Shift + F12)]}
PW_USE_GAMEMODE_INFO=${translations[Using automatic system optimization to improve performance in games (provided the gamemode package is installed on the system)]} PW_USE_GAMEMODE_INFO=${translations[Using automatic system optimization to improve performance in games (provided the gamemode package is installed on the system, doesn\'t work with ananicy)]}
PW_USE_WINE_DXGI_INFO=${translations[Forced use of built-in DXGI library (in rare cases it solves problems with DX12 games)]} PW_USE_WINE_DXGI_INFO=${translations[Forced use of built-in DXGI library (in rare cases it solves problems with DX12 games)]}
PW_MANGOHUD_USER_CONF_INFO=${translations[Forced use of MANGOHUD system settings (GOverlay, etc.)]} PW_MANGOHUD_USER_CONF_INFO=${translations[Forced use of MANGOHUD system settings (GOverlay, etc.)]}
PW_VKBASALT_USER_CONF_INFO=${translations[Forced use of VKBASALT system settings (GOverlay, etc.)]} PW_VKBASALT_USER_CONF_INFO=${translations[Forced use of VKBASALT system settings (GOverlay, etc.)]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment