Merge branch 'tuned' of github.com:Boria138/PortWINE into Boria138-tuned
This commit is contained in:
@ -2041,6 +2041,9 @@ stop_portwine () {
|
||||
pw_exit_tray
|
||||
pw_auto_create_shortcut
|
||||
add_in_stop_portwine
|
||||
if [[ -n "$PW_TUNED_PROFILE" ]] ; then
|
||||
tuned-adm profile $PW_TUNED_PROFILE
|
||||
fi
|
||||
|
||||
if [[ $PW_LOG != 1 ]] && [[ -n $START_PW_TIME_IN_GAME ]] ; then
|
||||
debug_timer --end -s "PW_TIME_IN_GAME"
|
||||
@ -3621,6 +3624,15 @@ start_portwine () {
|
||||
else
|
||||
export PW_POWERPROFILECTL_SLR=""
|
||||
fi
|
||||
elif command -v tuned-adm &>/dev/null ; then
|
||||
export PW_TUNED_PROFILE=$(tuned-adm active | awk -F': ' '{print $2}')
|
||||
if tuned-adm list | grep -q 'throughput-performance' ; then
|
||||
tuned-adm profile throughput-performance
|
||||
print_info "Gamemode replaced by tuned to avoid conflict with ananicy and sched-ext."
|
||||
export PW_POWERPROFILECTL_SLR=""
|
||||
else
|
||||
export PW_POWERPROFILECTL_SLR=""
|
||||
fi
|
||||
fi
|
||||
elif check_flatpak ; then
|
||||
export GAMEMODERUN=1
|
||||
|
Reference in New Issue
Block a user