ValveSoftware / Proton

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

[Whitelisted] Star Wars Battlefront 2 really long loading time, breaks multiplayer. Wine patch available? (6060) #280

Open eugeneromero opened 6 years ago

eugeneromero commented 6 years ago

First off, thank you very much for your work on Proton, excellent to see Linux support for more games!

SWB2 has a bug which makes loading times before starting a match really long. In single player mode, this means that loading a game goes from 5-10 secs (Windows) to 60-100 secs (Linux). Additionally, this breaks multiplayer mode, because the game times out when trying to join a match, making it impossible to play.

This bug is a long-standing one in Wine, with a report from 2012 here. It appears there is a recent (Jan 2018) patch at the very end of that thread, which I have not tested but according to the comments there seems to fix this issue. Maybe worth looking into adding it to Proton?

Thank you for looking into this!

DarkRTA commented 5 years ago

I tried a couple of environment vars to see if I can fix this with with no success.

Anything I haven't tried either will not affect load times or isn't applicable to this game. This more than likely seems like an issue with synchronization being really slow.

Edit: I looked into this a bit more and it seems to be doing over 50,000 context switches per second while loading. This is definitely seems to be part of the bottleneck.