[Bug 29582] Star Wars Battlefront (I and II) "Loading" screen very slow.

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 27 21:30:13 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=29582

--- Comment #46 from Maxim Stewart <gamer1119 at gmail.com> ---
OK, Here is what I did after install Ubuntu 16.04.4 (was previously on Mint 18)
and it works.


I first installed Wine 1.8 which setup it's default stuff. (The compiled Wine
references the .wine archive and settings there. I couldn't find Wincfg in the
compiled program so used the system wine to do configurations. The biggest
thing for me was needing to set Pulseaudio because once SW: BF2 was launched it
wouldn't detect audio unless I set Pulseaudio. In addition, you need to change
the game's sound settings to use Software Emulation than Hardware. As maps wont
have sound but the menus will.) I then installed PlayOnLinux and used it to
install Steam. I IGNORED the PoL SW: BF2 installer and went straight to Steam.
Once in Steam I then downloaded SW: BF2. While that was downloading, I did the
following:

1.  wget https://dl.winehq.org/wine-builds/Release.key
    sudo apt-key add Release.key
    sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'

2.  sudo apt-get update

3.  sudo apt-get install flex bison gcc-multilib g++-multilib wine-devel \
                 libx11-dev:i386 libfreetype6-dev:i386 libasound2-dev:i386

4.  git clone https://github.com/daniel-santos/wine
5.  cd /the/location/of/wineBuildDir/
6.  mkdir -p bin/{wine32,wine64}
7.  git checkout hybrid-sync
    git fetch
    git reset --hard origin/hybrid-sync

8.  cd <wineBuildDir>/build/wine32

     CFLAGS="-m32 -O2" ../../configure   // Note: -02 means use compiler
optimize
                                         // level 2 && -00 means no
optimization
                                         // -03 I think is the highest.
                                         // --with-wine64=../64 (any other
arguments)
                                         // -m32 means do 32bit build

9. make -j<number of CPU cores + 1>      // Hyper threading doubles your core
count so take note.
    Example: make -j7  // I have a hex core AMD processor



[  Launch  ]

10. cd loader/

11. WINEDEBUG=fixme-all STAGING_SHARED_MEMORY=1 STAGING_SHM_SYNC=1
WINEPREFIX="/home/<YOUR USER NAME>/.wine"  ./wine "C:\Program Files
(x86)\Steam\Steam.exe" -no-cef-sandbox


NOTES:   Ignore the warnings when configure is done. Other libs that are stated
missing seemed to make the game load in a stuttering way when I installed them.
In addition, installing alsa might help with wonky audio issues but it's been a
crapshot for me. 

sudo apt-get install alsa-base alsa-tools alsa-tools-gui alsa-utils alsa-oss  
// Reboot after install


To summaries, I think when I was on Mint 18, the wine package build tools were
wonky. It IS working and loading the game quickly now since I am in Ubuntu
16.04.4!! THANK YOU Daniel Santos for all the guidance while I was working on
trying to compile and get this working!

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list