ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
24.2k stars 1.06k forks source link

Proton with Steam OS issue #1209

Open Nyanekoy opened 6 years ago

Nyanekoy commented 6 years ago

I use on my system steam OS. however as soon proton is active every game has terrible audio stutters and glitches. native supported games are fine but proton messes all up for me.

Does anyone has the same issue?

GloriousEggroll commented 6 years ago

many proton games need PULSE_LATENCY_MSEC=60

i ended up opening /usr/bin/steam and appending: export PULSE_LATENCY_MSEC=60 to the top of it so it's always using it. fixes crackly audio on a lot of games.

Nyanekoy commented 6 years ago

ok im trying that. i report back

Nyanekoy commented 6 years ago

Got no luck with that

setsunati commented 6 years ago

Try this https://www.youtube.com/watch?v=UQ-Ml78kiEE

Nyanekoy commented 6 years ago

nope didnt work

ryanmusante commented 6 years ago

Low latency ALSA patch: https://blog.thepoon.fr/osuLinuxAudioLatency/

Nyanekoy commented 6 years ago

nope i tried for a couple of hours now. not sure if its Steam OS causing the issue but even reinstalling didnt work

zaggynl commented 6 years ago

Had the same issue in Doom: https://github.com/ValveSoftware/Proton/issues/396 Workaround for me was:

sudo nano /etc/pulse/default.pa change: (Ctrl+W to search in nano) load-module module-udev-detect to: load-module module-udev-detect tsched=0 save (Ctrl+O) (to exit: Ctrl+X) killall pulseaudio restart audio playing applications

Explanation of the tsched option: https://askubuntu.com/questions/371595/for-pulseaudio-what-does-tsched-do-and-what-are-the-defaults

Proper fix could be: winetricks xact WINEDLLOVERRIDES="xaudio2_7=n,b" Which basically tells wine to use the Windows(?) audio dll it appears. Had success with it for Squad: https://www.reddit.com/r/SteamPlay/comments/9cuigr/downloadrun_windows_versions_using_proton/

Also mentioned here: https://github.com/ValveSoftware/Proton/issues/54

Zauberfisch commented 5 years ago

I'm using pulseaudio on top of jack on top of alsa and also experienced crackling in some games.

like GloriousEggroll suggested, "PULSE_LATENCY_MSEC" fixed the issue for me. Though I chose not to modify /usr/bin/steam but rather create a new file:

/usr/local/bin/steam

#!/bin/bash
export PULSE_LATENCY_MSEC=60
/usr/bin/steam

(don't forget to make that file executable)

DGarry82 commented 5 years ago

Completely fixed crackled sound in "The Vanishing of Ethan Carter Redux" with $ PULSE_LATENCY_MSEC=300 steam (lesser values like =60 or =120) also had effect but with some crackles System is rather old (C2D E8500 3.16GHZ/8GB DDR2/NVIDIA GT1030) All other stuff (sample sizes, resampling rates in /etc/pulse/daemon.conf) had no effect at all. Only PULSE_LATENCY_MSEC has finally helped.

Sorry, OS is Ubuntu 18.04.1 LTS, NVIDIA Drivers 415

ryanmusante commented 5 years ago

like GloriousEggroll suggested, "PULSE_LATENCY_MSEC" fixed the issue for me. Though I chose not to modify /usr/bin/steam but rather create a new file: export PULSE_LATENCY_MSEC=60

60 is the sweet spot, I concur.

actuallySIG commented 5 years ago

many proton games need PULSE_LATENCY_MSEC=60

i ended up opening /usr/bin/steam and appending: export PULSE_LATENCY_MSEC=60 to the top of it so it's always using it. fixes crackly audio on a lot of games.

I'm on Ubuntu 16.04 and I've encountered this issue in 3 games: Red Alert 3 Uprising, Burnout Paradise and Doki Doki Literature Club. This fixed it.

Sharcoux commented 4 years ago

Shouldn't this PULSE LATENCY fix be merged?

ryanmusante commented 4 years ago

@Sharcoux No this doesn't apply well to every game.

Sharcoux commented 4 years ago

Did someone notice some games where it actually worsen the sound instead of making it better?