Added Reduce pulseaudio latency to fix choppy/laggy audio on some games

This commit is contained in:
Boria138
2023-09-18 13:32:16 +06:00
parent 1e7c6acea7
commit 6556952471
3 changed files with 8 additions and 1 deletions

View File

@ -321,6 +321,11 @@ start_portwine () {
unset PROTON_BATTLEYE_RUNTIME PROTON_EAC_RUNTIME
fi
if [[ "${PW_REDUCE_PULSE_LATENCY}" == 1 ]] ; then
export PULSE_LATENCY_MSEC=60
else
unset PULSE_LATENCY_MSEC
fi
if [[ "${PW_USE_D3D_EXTRAS}" == 1 ]] ; then
if [[ -z "`grep d3dx9 "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log"`" ]] ; then