WineHQ

StarCraft II

Wings of Liberty, Heart of the Swarm, and Legacy of the Void, including Starter Editions


Please try the Stater Edition before buying the game to make sure it works on your system (link below). It includes the first campaign (Wings of Liberty) and the Arcade (Mods)


Consider including the following in your test results:

  • OS / Distribution (Including Kernel version)
  • GPU
  • Video Driver (including Mesa or NVIDIA Version)
  • FPS (press Control+Alt+F to display FPS in-game)
  • In-game graphics settings (low, medium, high, ultra, custom, etc)
  • WINE prefix (32 or 64 bit)


Application Details:

Version: Current
License: Retail
URL: http://www.starcraft2.com/
Votes: 151
Latest Rating: Silver
Latest Wine Version Tested: 7.17

Maintainers: About Maintainership

Link StarCraft II: Starter Edition Free Download Battle.Net App

Test Results

Old test results
The test results you have selected are very old and may not represent the current state of Wine.
Selected Test Results

What works

Installing

Patching

Logging in (with Patch)

Sound (with OSS, emulation, mmdevapi override)

Playing (Multiplayer)

What does not

Nothing

Workarounds

What was not tested

Replays

Hardware tested

Graphics:

  • GPU:
  • Driver:

Additional Comments

Intel E6750 @ 2.66GHz GeForce 9800 GTX+ 4 GB Ram Runs perfect Game Version 0.14.0.15392

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
ShowUbuntu 20.04 "Focal" (+ variants like Kubuntu)Sep 15 20227.17Yes Yes NoSilverDidi Kohen 
ShowArch LinuxJan 29 20227.0-rc5-stagingYes Yes NoSilverDmitry 
ShowGarudaJul 15 20216.12Yes Yes YesGoldGr Armpit 
ShowDebian 10.x "Buster"May 30 20216.9-stagingN/A No NoGarbageJoshua 
ShowGentoo LinuxMay 13 20216.8-stagingYes Yes NoPlatinumAlex 

Known Bugs

Bug # Description Status Resolution Other apps affected
11674 Dual-core unsupported in WoW and SC2 STAGED View
30853 Wine doesn’t always handle "right alt" properly NEW View
32342 Multiple applications and games using 'Webkit' or 'Blink' web browser engine crash on startup ('Arial' and 'Times New Roman' font face name validation) STAGED View
33759 Some applications reset the X color profile UNCONFIRMED View
44920 StarCraft II crashes on some maps (requires HLSL compiler) REOPENED View
49476 Overwatch doesn't start with Wine version set to Windows 7 UNCONFIRMED View
49994 Starcraft2 shows blank screen: DVI-D out of range 89.5Khz, 60Hz UNCONFIRMED View
53970 Purchases in StarCraft II do not work UNCONFIRMED View
54339 Wine doesn't recognize RTX 3xxx and 4xxx UNCONFIRMED View

Show all bugs

HowTo / Notes

WINE overrides X gamma settings

If using custom gamma settings or using an application that automatically changes gamma (e.g. redshift) then at specific times, your gamma setting may reset for a short time.

To fix this, open the registry editor and navigate to:

HKEY_CURRENT_USER/Software/Wine

Then add the "X11 Driver" key.

Inside the newly created "X11 Driver" add the chain value "UseXVidMode" and set it to "N".


Leftover processes after updates

After a Battle.net update or a crash, there are sometimes old processes left running that may interfere with your next launch. These processes can be killed before trying again:

killall -i -r '.exe'

Or you can do this manually (and more safely):

ps x #and then....kill as necessary after you got the process ID in the first column

#of course it doesn't hurt to take a look at the manual for these commands:
man kill
man killall
man ps

Test if the game works before buying

You can download the StarCraft II Starter Edition for free via the Battle.net Launcher, which includes the first campaign (Wings Of Liberty) and the Arcade (Mods).

Please test how / if the game works before buying it.

End of Windows XP Support

As of October Windows XP is no longer supported

See the follow post on the Battle.NET forums

Comments

The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.

Install on Lutris use Diablo 2: Resurrected script
by aerique on Saturday February 18th 2023, 4:04
I don't know what's up with the StarCraft II installer for Lutris. It just keeps hanging on "Updating Battle.net Updater...".

I was able to install it using Lutris' Diablo 2: Resurrected installer (which just installs Battle.net) and it runs fine so far. Then I added StarCraft II as an existing game and copied over all the settings from the D2R install.

Perhaps the plain Battle.net installer works as well, I didn't check.
Degraded support
by Matthew on Friday September 30th 2022, 0:19
StarCraft II used to be one of the very top flagship games that could be run in WINE with little to no effort, but support for StarCraft II has now fallen into disarray in seemingly all implementations of WINE.

Contrary to notes from prior years, support for 64-bit StarCraft II presently appears broken and the game can only be launched from Battle.net after selecting the "Launch in 32bit" game option. Following the workarounds involving moving .dll files from Heroes of the Storm to the system32 folder and adding the stated dll overrides noted in other comments were not effective resolving this. Meanwhile in the 32-bit client, I get "core out of memory" crashes during games. I have adjusted ulimit security policy for unlimited core size and expanded other limits for user processes, however this did not change "core out of memory" crash behavior. I suspect the spurious out of memory crash is a result of limitations with the 32bit client, rather than an actual ulimit security policy on my system which is reporting no user core limits with "ulimit -a".

Frustratingly, there seems to be no identifiable current community knowledge on the issue or known workarounds on the crashes or getting the 64bit client to work, other than the reports of DLL transfers from Heroes of the Storm and override settings which have not worked for me. Threads opened on these issues are often unanswered and the reported issues unresolved, or if there is a resolution, I can't replicate it.

I did discover the WINE configuration in Lutris is able to launch StarCraft II in 64bit, so the WINE configuration there could potentially be evaluated for a workaround for non-Lutris users. I can actually play full games in the Lutris implementation of WINE, however if don't restart the client between games, I am liable to have the game freeze without any observable error dialog. I've also found inconsistent behavior with successfully launching Battle.net.

This is on an i7-12700k and 32gb DDR6, so physically available memory is not a constraint. Nvidia RTX 3080 12gb with nvidia-drivers-510.85.02. Historically, even during periods were StarCraft II worked well in WINE, there was some kind of memory leak and I would get crashes if I played more than like 4 games in a row. But after a new computer build, it's down to crashes after 0-1 games for the 32bit client in WINE Vanilla/Staging, and 1-3 games the Lutris-implemented 64bit client respectively.
Constant flickering in UI
by Samuel Vincent on Sunday November 1st 2020, 3:25
Recently when I launch SC2, many parts of the UI constantly flicker, and I am unable to join games. I'm using Intel graphics with wine-staging 5.20. Has anyone ever had to fix this before?
RE: Constant flickering in UI
by Samuel Vincent on Wednesday November 4th 2020, 12:15
Fixed by downgrading a single wine version
Starcraft II crash when game start
by Antonin Duval on Friday July 10th 2020, 8:48
When starting a 1v1 online or custom game, the game crash after loading the map. I've started the game in 32 bits because it didn't start otherwise.
ubuntu 16.04 linux 4.15.0-47-generic intel graphics
by Alexander on Monday February 24th 2020, 12:41
1 v 1 works. Critical detail to start via launcher was to check box "launch 32-bit client" in blizzard launcher settings.

Still, custom games wont load
texture glitches
by Jaxted on Friday November 29th 2019, 4:45
my nvidia driver is 390.132-1. because I have an old GT 630 and cannot use 4xx drivers(
texture glitches
by Jaxted on Wednesday November 27th 2019, 15:53
Hello! I faced unpleasant glitches when units cannot pass from/on highgrounds (usually near your base). In addition there are some square transparent places which shows the background (pitch black or something like water). I'm using Arch linux, last version of SC2 (from Battle.net client) 4.11.0.77379 and different wine versions, including 3.19 staqging (from pol), 4.17 (default lutris) and in-system 4.20-1 staging, every possible in-game graphic settings (fullscreen, windowed etc) - its all the same. Sorry if I forget something or say wrong
RE: texture glitches
by Mauricio V. Genta on Wednesday November 27th 2019, 19:11
Same here, after updating mi Debian bulleye/sid, last week. I think it happened after upgrading to nvidia's 430.64-1.
RE: texture glitches
by Jaxted on Friday November 29th 2019, 13:26
these settings helps me well
irectDrawRenderer______________opengl
Multisampling___________________disabled
OffScreenRenderingMode_________pbuffer
UseGLSL______________________disabled
VertexShaderMode_______________hardware
RE: texture glitches
by Jaxted on Friday November 29th 2019, 13:30
in VertexShaderMode I set 1,2 and 3 checkboxes. I think its primary option in this case
Fixed
by Eneko Lacunza on Tuesday October 15th 2019, 14:58
This issue is fixed adding in winecfg as native first library api-ms-win-crt-private-l1-1-0
Just made an account to say no issues. :)
by Neojade on Sunday October 13th 2019, 5:47
I had to add a few libraries from the winecfg option but been playing for an hour or so now with no issues whatsoever.

Got the latest version of Linux Mint Mate and used the commands to get the latest wine based on bionic from ubuntu. That was it. =] Was the cleanest time I've ever had to use wine and pretty happy about that. :)

Also, SWTOR is working just as flawlessly, installed it after SC2 thru battle.net app.
Seems last Battle.net update broke SC2
by Eneko Lacunza on Friday October 11th 2019, 15:35
I could play yesterday to SC2, but there was a background update to battle.net and now it crashes after login. I can't even try to start SC2 :-)

Unhandled exception: unimplemented function api-ms-win-crt-private-l1-1-0.d._o_getenv called in 32-bit code (0x7b453d8c).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:7b453d8c ESP:12a8f7c4 EBP:12a8f838 EFLAGS:00000212( - -- I -A- - )
EAX:12a8f7dc EBX:6c60c000 ECX:00000004 EDX:12a8f868
ESI:12a8fd64 EDI:12a8fa4c
Stack dump:
0x12a8f7c4: 00000000 00000000 00000000 00000000
0x12a8f7d4: 00000000 00000000 80000100 00000001
0x12a8f7e4: 00000000 7b453d8c 00000002 6c60c000
0x12a8f7f4: 6c60f30a 00000000 00000000 00000000
0x12a8f804: 00000080 f7c593a7 00110070 00000001
0x12a8f814: 00000000 f7b7df75 7bc6e6ef 000000f0
Backtrace:
=>0 0x7b453d8c GetFirmwareEnvironmentVariableW+0x10c() in kernel32 (0x12a8f838)
1 0x6c609d20 _o__mbspbrk_l+0x1b() in api-ms-win-crt-private-l1-1-0.d (0x12a8f894)
2 0x12cbd7aa EntryPoint+0xffffffff() in libglesv2 (0x12a8facc)
3 0x12ca4b8a EntryPoint+0xffffffff() in libglesv2 (0x12a8fc58)
4 0x12cb9de5 EntryPoint+0xffffffff() in libglesv2 (0x12a8fd80)
5 0x12cbbf03 EntryPoint+0xffffffff() in libglesv2 (0x12a8fdb8)
6 0x12c75f47 EntryPoint+0xffffffff() in libglesv2 (0x12a8fdc0)
7 0x12c774ff EntryPoint+0xffffffff() in libglesv2 (0x12a8fe04)
8 0x12c780b6 EntryPoint+0xffffffff() in libglesv2 (0x12a8fe18)
9 0x12c77015 EntryPoint+0xffffffff() in libglesv2 (0x12a8fe28)
10 0x12df7d1f EntryPoint+0xffffffff() in libglesv2 (0x12a8fe48)
11 0x7bcd5ee8 NtGetCurrentProcessorNumber+0x2637() in ntdll (0x12a8fed8)
12 0x7bcc57b4 call_thread_func_wrapper+0xb() in ntdll (0x12a8feec)
13 0x7bcc9367 RtlCaptureStackBackTrace+0x246() in ntdll (0x12a8ffdc)
14 0x7bcc57a6 call_thread_exit_func+0x31() in ntdll (0x12a8ffec)
0x7b453d8c GetFirmwareEnvironmentVariableW+0x10c in kernel32: addl $12,%esp
Connecting to blizzard services
by Ken-Patrick on Friday June 21st 2019, 11:28
Hi everyone,

since the last update of SC2, I can't login.
On the new first screen, I can only chose the region, option or quit. The part on the right is empty, and after a few second I have a popup "Connecting to blizzard services. The game is awaiting a response from Blizzard services. etc.."

I tried with and without staging (on debian stable fwiw), same behaviour.

Is there a solution to this ? Am I doing something wrong ?
RE: Connecting to blizzard services
by dura on Friday June 21st 2019, 16:51
Same here. And windows users seem to be affected too.
The only way to launch the game is with the battle.net app.
RE: Connecting to blizzard services
by Ken-Patrick on Saturday June 22nd 2019, 2:19
Oh indeed, connecting through Battlenet works.
Thanks you !
RE: Connecting to blizzard services
by james on Wednesday June 26th 2019, 16:47
How do you mean when you say connecting through Battlenet? I am still having this problem and am in need of a fix or workaround for this issues.
Thanks!
RE: Connecting to blizzard services
by Ken-Patrick on Thursday June 27th 2019, 13:20
In the past, I was not able to connect in battlenet (I could enter my mail & password, but there was no button to click to connect). I could launch battlenet (it would still upgrade my games).
With the last version of wine staging (and maybe before, I hadn't tried for a while), the login screen is very fine, and I can connect. So I can launch battlenet, connect on my account, and then launch my game (click on the Launch button in battlenet), that way SC2 (at least) is already connected to my battlenet account.

Hope it helps.
4.9 staging
by Beomsik Kim on Saturday June 1st 2019, 23:38
Sorry to my terrible English
Starcraft2 and starcraft1 doesn't working on 4.9 staging. On 4.8 staging, it works.
So I think problem is in the 4.9 version

My system :
CPU : ryzen 2200g
OS : linux mint 19.1 cinamon
Wine version : 4.9 staging

Problem :
when I click the start Starcraft2, It doesn't work and error message(send to blizzard) appear on the window

Ask :
1. What is the problem? 4.9 staging? or my setting? You guys can work starcraft2 on 4.9 staging?
2. How can I downgrade 4.9 staging -> 4.8 staging? I can't find the way

Help me sensei
RE: 4.9 staging
by Ben Parsons on Sunday June 2nd 2019, 21:39
Hi Beomsik,

Yes, this is a known issue with Wine 4.9.

For your questions, it seems like you do not have much experience with Wine and/or Linux package management. As such I would recommend that you use the program Lutris lutris.net/ (or similar) to manage your Wine versions / games. Although please note that it is not officially supported by the developers of Wine

Or:
To downgrade I would follow these instructions:
forums.linuxmint.com/viewtopic.php?t=67363

I am not familiar with Linux Mint so I cannot provide any much assistance in this regard, sorry.
Regarding random stuttering - make sure you're using esync/PBA build and PBA is enabled (!)
by Tomasz Pieczerak on Sunday March 3rd 2019, 4:04
I just managed to resolve random stuttering issue and at the same time improve framerate significantly. It turned out that since version 3.16 of esync builds, PBA is not enabled by default - you have to set environment variable PBA_ENABLE=1 to turn is on. More info on that: github.com/lutris/lutris/wiki/Performance-Tweaks#wine-pba-for-dx-with-opengl

As a side note, I installed SC2 using Lutris - be aware that install script has just recently been updated to include PBA_ENABLE=1 setting. Currently I'm using 'esync-staging-pba-3.18' build and everything works great.
"Random stuttering"
by Jeremy Villa on Friday February 8th 2019, 13:37
The "random stuttering" that the current rating indicates, in my case, was because of Windowed (fullscreen) mode. I just needed to switch it to Fullscreen, and the game ran smoothly.

The game would stutter only briefly whenever I scrolled the map, and in a few other instances. But the switch to Fullscreen got rid of it completely.
stuck on loading screen
by Kovács Adorján Márk on Thursday January 31st 2019, 7:48
To those who come back now to this game because of AlphaStar and use Arch or something similar, this might be useful:

In the past the game went well with wine, but now when I came back after maybe a year, it did not start (got stuck on loading screen, after launching from battle.net). This is what I tried:
Updated wine to the latest in arch repo (4.0-3) -> no change
Reinstalled sc2 to a completely new wineprefix without previous dll overloads -> no change
Tried SC2Switcher.exe -> loaded successfully, but now it got stuck on login auth

After this I replaced wine with wine-staging (latest in arch repo, 4.0-2), and it worked perfectly from Battle.net without any other trick.
Starcraft II doesn't start
by Travis Dilley on Saturday December 22nd 2018, 6:26
Battle.net launches just fine. However when I click the play button for Starcraft II I get an error about the graphics device being unavailable at this time. Is there a particular setting that I need to change to make the game launch? I have tried changing the game settings from using both 64 bit and 32 bit client versions. My system info is as follows:

OS: Ubuntu 18.04
Graphics card: Nvidia GeForce GTX 660
Graphics driver: Nvidia binary driver - version 340-107
CPU: Intel Xeon E5-2687W

Any assistance will be greatly appreciated.
RE: Starcraft II doesn't start
by JoKe on Wednesday January 23rd 2019, 8:36
Yeah, starting SCII from the Launcher never worked for me either. I always had to execute it directly, via the non-intuitive name SC2Switcher:

`wine .wine/dosdevices/c:/Program\ Files/StarCraft\ II/Support/SC2Switcher.exe`
Low Framerate
by Benjamin Dover on Monday September 24th 2018, 21:27
I just got starcraft 2 running on my 18.04 ubuntu install, but the framerate never goes above 30fps and regularly drops below 17. Changing graphics settings doesn't affect framerate at all, and the same hardware ran this game on 60 with all graphics at max and did so easily. Could there be some kind of throttling going on? Any ideas would be appreciated. Thanks.
RE: Low Framerate
by Ben Parsons on Monday September 24th 2018, 21:31
What graphics card do you have and what driver are you using?
RE: Low Framerate
by Benjamin Dover on Monday September 24th 2018, 21:49
Two AMD Radeon R9 290s (crossfire); using the AMDGPU drivers.
RE: Low Framerate
by Benjamin Dover on Monday September 24th 2018, 21:51
I mistyped - AMD R9 390s, not 290s. My mistake.
RE: Low Framerate
by dopella on Wednesday October 3rd 2018, 13:20
Hello there, I'm having the exact same problem. Lowering the graphics help, but not too much, and I still have sub-30 drops. Nothing has helped substantially. As far as I understand, the CPU is the actual bottleneck here, as I can have fps drops with my GPU at relatively low temperatures(it goes hotter with more demanding games so it's not malfunctioning or anything). The thing is, the game was made to run on a single core and was never updated in that regard, so with wine eating into the CPU(likely on the same core) I can see it running worse than on Win. Might not have any kind of fix.
RE: Low Framerate
by dopella on Wednesday October 3rd 2018, 15:57
Continuing my CPU bottleneck thought and looking some shit up, I came across the wine-pba thingie which supposedly makes the game perform much better. You can't install it except if you manually compile Wine or use Lutris(I went with that). Gonna get back with the result.
platinum?
by gfunk on Monday September 24th 2018, 12:22
Hi guys not sure why this game is listed as platinum? very difficult to get working and no definite guide either
RE: platinum?
by spiritsc on Monday September 24th 2018, 15:12
It's quite easy with lutris (which i'm running at least), make sure to install the dependencies first for the bnet launcher, after making that working you can install sc2 trought the launcher and will work just like that.
Lutris > lutris.net/downloads/, after that installed go install the dependencies (guide for the them github.com/lutris/lutris/wiki/Game:-Blizzard-App), once that's done go to lutris.net/games/battlenet/ click in install open with lutris launcher and it will handle everything just click next and wait for the script finish, them just launch the Bnet.
RE: platinum?
by Ben Parsons on Monday September 24th 2018, 21:32
if you believe that the current rating is incorrect, it would be much appreciated if you would submit test results showing otherwise.
Cracking sound after some time with pulseaudio
by Sviat on Thursday September 20th 2018, 19:28
Running on Fedora wine-3.14 with pulseaudio. After some minutes at every sound start to hear cracking noise.
I tried restarting pa with `pulseaudio --resample-method=trivial`, became a bit better but still the same.
With alsa seems to be no issues, but not an option as I need other apps running that rely on alsa.
Thanks!
RE: Cracking sound after some time with pulseaudio
by Timur Kristóf on Friday September 21st 2018, 13:16
Off the top of my head two things can help: (1) you have power savings on your audio card which you can disable with powertop or similar (2) try reducing the number of audio channels in the Starcraft II game options.
RE: Cracking sound after some time with pulseaudio
by Markus Linnala on Tuesday September 25th 2018, 12:07
There is a bug at 3.13 and 3.14 with staging patches (for example Fedora package).

bugs.winehq.org/show_bug.cgi?id=45623
Some new skins crash my SC2
by Aleks on Thursday September 20th 2018, 14:17
The Simulant swarmHost for sure, and golden age colossus for sure.
for now it crashes in Collections War chest and I can disable them, but it also crashes in unit preloader, which means that it will crash during ladder match when the opponent spawns a skinned unit :-(
RE: Some new skins crash my SC2
by Aleks on Thursday September 20th 2018, 14:22
And terran umojan cylcone too. That one crashes in the collection skins tab.
Shift + 6 bug?
by spiritsc on Monday September 17th 2018, 16:30
Hi i've been facing this problem for a while now, i can assing a hotkey for my control group 6 just fine but adding new units with Shift +6 doesn't work, seems to be a problem only with 6.
RE: Shift + 6 bug?
by Aleks on Thursday September 20th 2018, 14:14
It is keyboard preferences thing. I had it too in Mint+KDE. Change the layout and find what character is on shift+6. It was two years ago.
RE: Shift + 6 bug?
by Ben Parsons on Monday September 24th 2018, 21:33
Hi, I tried this last night and did not experience the same issue.
RE: Shift + 6 bug?
by spiritsc on Tuesday September 25th 2018, 1:55
It's something to do with the input method, in my case I use US with dead keys because I need things like ç and é, I had to change to standard US keyboard so I could use shift + 6 it's a pain to switch every time but it's a workaround.
Bad performance. Worse than on Win, anyway
by dopella on Wednesday September 12th 2018, 13:25
Using Nvidia 860M with proprietary driver 390.87, I experience fps drops even if I set everything but shaders to Low. Vsync is off. Unit preloader doesn't help since the drops are directly linked to having a lot of units on the screen. Game ran fine on medium-high when I was using Windows. I can understand having a performance drop since I'm using wine, but this bad? Is there to do something about it? Wine 3.15 staging.
RE: Bad performance. Worse than on Win, anyway
by Ben Parsons on Monday September 24th 2018, 21:35
Performance loss is generally in the range of 10-30%
Have you tried using DXVK? or updating your drivers?
RE: Bad performance. Worse than on Win, anyway
by Markus Linnala on Tuesday September 25th 2018, 12:16
As SC2 uses D3D9 why would DXVK help as it handles only D3D10 and D3D11?
Arcade Games
by Nick on Friday August 24th 2018, 21:06
After updating from wine 3.13 to wine 3.14 at least one arcade game (Mines and Magic) stop working for me. I have the same result for wine-staging.

After reverting to 3.13 the arcade game in question works.
RE: Arcade Games
by Ben Parsons on Saturday August 25th 2018, 6:03
Hi,

I would suggest following the FAQ and comparing the terminal / debug outputs:

wiki.winehq.org/FAQ#How_can_I_get_a_debugging_log_.28a.k.a._terminal_output.29.3F
RE: Arcade Games
by Jason Stryker on Monday September 3rd 2018, 9:27
I am having the same issue with wine 3.14+, e_gfxerrorshadercompilefailed despite d3dcompiler_43 installed via winetricks

by asasaa on Thursday August 2nd 2018, 15:20
Hi,

Thanks for the help! Unfortunately I can't seem to successfully bring back the older version. The other only blizz game I play (Hearthstone) seems to work fine. I've tried several tutorials, especially this one: linuxconfig.org/how-to-install-blizzard-battle-net-app-on-ubuntu-18-04-bionic-beaver-linux (although I'm still on Ubuntu 16, most steps should be the same). No luck.

Also, Idk if I'm the only one. The game loads (without sound), but there are some background animations that just don't show, and the ladder button is disabled. So yeah totally unplayable.

I tried to install wine 1.6 (no staging) with synaptic but that doesn't work either.

Thanks!

by asasaa on Monday July 30th 2018, 15:01
I also have no sound since the last release, any specific pointers on how to fix it or how to easily downgrade from 3.13 to 3.12?
RE:
by Ben Parsons on Monday July 30th 2018, 15:52
You can either build wine-staging from source or use your distribution's package manager to downgrade wine.

The issue is with wine staging so try running the game in wine (non-staging) instead.
No sound with wine-3.13 (Staging)
by Hugo Osvaldo Barrera on Thursday July 26th 2018, 21:55
As of wine-3.13 (Staging), I've absolutely no sound. I tried reinstalling on a clean prefix with the same result.

Is anybody else seeing this behaviour?
RE: No sound with wine-3.13 (Staging)
by Ben Parsons on Thursday July 26th 2018, 22:03
This is bug #45502 and has been fixed in most recent wine staging
Sound not working in Staging 3.13 // Switch output hangs game.
by Dox on Saturday July 21st 2018, 15:49
I don't actually play SCII atm, but I was testing it quickly to see if it worked. Seems with 3.13 there is no sound. And trying to switch sound output fully hangs the game without even an error in winelogs. 3.12 has no issues.

It could have to do with the updated winepulse patch in 3.13: github.com/wine-staging/wine-staging/tree/master/patches/winepulse-PulseAudio_Support

So, for whoever does play SCII and wants to bug reports this, you can have a look there.
RE: Sound not working in Staging 3.13 // Switch output hangs game.
by Maciej Stanczew on Monday July 23rd 2018, 16:13
Thanks, I submitted a bug: bugs.winehq.org/show_bug.cgi?id=45502
Works well
by Niklas Hambuechen on Thursday May 31st 2018, 19:46
It's working pretty well for me on wine-staging 3.9.0~xenial on Ubuntu 16.04.

Can play (free-to-play version) multiplayer and single player, sometimes it gets a bit slow and the audio clips a bit, but these are tiny issues.

I followed the steps "Migration from ArchWiki by Svitozar Cherepii on Saturday December 23rd 2017, 20:18" here in the comments; the Windows version is set to "Windows 7" in winecfg.

It even works in 64-bit mode with wine64 (see linux-tips.com/t/couldnt-run-64-bit-programs-with-wine/320). But so far I've played mainly in 32-bit mode.

It took me some effort to get this working, because when I tried to install it, it only worked with one Wine version, and playing only worked with a different one. But I suspect that this is fixed with wine-staging 3.9. I haven't reinstalled from scratch yet to test it, ping me if somebody needs results for that.
Stuck when closing the game
by Campuche on Monday April 30th 2018, 4:23
After many many many tries i finally was able to run the game with wine 2.21-staging ( i tried many versions/configurations/components) i have just 2 minor problems:

1- Stuck everytime i close the game, to avoid this i must open the terminal and < killall -i -r '.exe' > or something like that.
2-i use the method to bypass battlenetlogin and run battlenet withoutconection and afterthat i loging ingame, but game doesnt remember my password and region.
Profile not loading
by nonplus on Monday March 19th 2018, 11:39
The game starts fine, but the problem for me is, that the profile won't load.
If i show my own profile its completely empty. It is not possible to start a game because the play-button is not visible.
Anyone having the same problem?
RE: Profile not loading
by Kirill on Sunday April 15th 2018, 17:17
Yep. I have the same problem. Chat works fine and i can see who in the chat room now. But I can't see other people's profile and my profile too. "Play" button just unavailable.
RE: Profile not loading
by Kirill on Thursday April 19th 2018, 20:01
UPD
My problem with grayed 'play' buttons was resolved with changing DNS settings. I use DNSProxy and it was a problem. So I have changed DNS settings and everything works fine for now.
RE: Profile not loading
by Moritz Bruder on Friday April 20th 2018, 1:20
Kill Agent.exe and try deleting everything in $WINEPREFIX/drive_c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/. That should at least temporarily work.
Mass Recall
by Anton Bruckner on Saturday March 17th 2018, 8:10
...same for me. Tryed 2.20staging and 3.4. Always breaks after installing on loading screen. Hope, they will fix this. I love the Mass Recall Campaigns.
RE: Mass Recall
by Anton Bruckner on Saturday March 17th 2018, 8:18
Sorry, was my first post, so I thought, it would be under the other Mass Recall Thread.
POL says: e_gfxErrorShaderCompileFailed
SC2 itself works fine (with low graphic-settings!).
RE: Mass Recall
by Anton Bruckner on Saturday March 17th 2018, 8:44
I solved it!! I had to install the "d3dcompiler_43". So it worked! I'm really glad.
[Dear Moderator: if u wish, delete my comments here. I will write it under the Mass Recall Thread]
Performance
by Iksf on Monday January 8th 2018, 3:22
Despite the glowing recommendation of the most recent test, its still a stuttering mess for me with 3.0 rc5 and 2.21 staging. Could someone having a good experience post more about their setup and configure options.

Personally I get fair FPS on the counter, however the game is not running at that FPS. I have a 144hz monitor and I can safely say whatever the FPS readout says, the games not running more than maybe 40fps tops. Also on multiplayer the game frequently stalls for a good fraction of a second.

Nvidia 1080 (with latest proprietary blobs), intel 8700k, tried latest KDE Gnome and MATE desktops. Am using the preloader map. No DLL overrides. Game's fully downloaded, only playing on all lowest, really don't care about the graphics quality.
RE: Performance
by mean_booty on Monday January 8th 2018, 15:06
I wasn't even able to launch now with the 3.0 RC5 or RC2. 2.21 staging was the last one I was able to get to work.

Component list is vcrun2008 vcrun2012 corefonts
RE: Performance
by mean_booty on Monday January 8th 2018, 15:07
and vcrun2008
RE: Performance
by Iksf on Tuesday January 9th 2018, 1:02
I don't think the battlenet client works without wine-staging but you can just run SC2Switcher_64.exe in sc2/Support64 to open the game
Migration from ArchWiki
by Svito on Saturday December 23rd 2017, 20:18
You can add useful information to HowTo/Notes and delete this comment:

[eu.battle.net/sc2/en/ StarCraft II] is a real-time strategy game from Blizzard Entertainment released in 2010. A native Linux version isn't available, but the game is fully playable using [[Wine]].

== Installation ==

==== Packages ====

You need to [[install]] {{Pkg|wine}}, {{Pkg|lib32-libjpeg-turbo}}, {{Pkg|lib32-libpng}}, {{Pkg|lib32-gnutls}} and {{Pkg|lib32-libldap}}. If you are using [[PulseAudio]], install {{Pkg|lib32-libpulse}} and {{Pkg|lib32-alsa-plugins}} available in [[multilib]]. Optionally, instead of regular {{Pkg|wine}}, you might prefer {{Pkg|wine-staging}} - [[Wine#CSMT_patch|enabling CSMT via the Staging tab in winecfg]] may greatly improve performance, but is not required. You'll also need to use {{Pkg|winetricks}} and install the following components (to use the Map Editor and avoid crashes on certain system configurations):

$ winetricks corefonts vcrun2005 vcrun2008 vcrun2015

==== Configuration ====

If you have a GPU which doesn't properly report the amount of memory available (older integrated or early AMD APUs), you'll need to tell Wine how much VRAM you have available. Open the Registry Editor:

$ regedit

Go to ''HKEY_CURRENT_USER/Software/Wine/Direct3D'' (right-click on Wine and New -> Key, ''Direct3D'', Enter, if it doesn't exist) right-click on ''Direct3D'' (if such a key doesn't exist, right-click on ''Wine'', New -> Key, ''Direct3D'', OK), select New -> String Value, ''VideoMemorySize'', which you should set to the amount of VRAM your GPU has, in MB (for example, "1024" or "2048"). If you're using an integrated GPU, try to preallocate a fair amount of RAM for your GPU in BIOS/UEFI Setup and use the same value here (512 is good enough for low-medium settings).

* If the Battle.net App doesn't work, use a new Wine prefix.
* '''If you are asked to install Gecko, then click Install to do so.'''
* If the Battle.net App window is white, open ''winecfg'', go to ''Applications'' and set ''Windows Version'' to "Windows XP". You may do so for Battle.net.exe only, as SC2 itself works fine with this being set to anything newer.

==== Installing with the Blizzard App (former Battle.net App) ====

Recent SC2 versions require the [eu.battle.net/en/app/ Blizzard App] to be installed, as it replaced the launchers for all Blizzard games. Furthermore, recent patches massively changed the file structure in their newer games - if you have a fast enough internet connection, it might be faster to download a new copy from the Blizzard App than trying to install the game from DVD. Simply install the app, select your region, log in with a Blizzard Account, then select StarCraft II on the left and click Install. You'll be able to select your game language and installation location. (Installing the game on a native Linux filesystem instead of NTFS might improve loading times.)

{{Note|You need to install {{Pkg|lib32-gnutls}} in order to use the online-mode of the [[Blizzard App]].}}

==== Installing from DVD ====

{{Note|If you have a reasonable internet connection (10Mbps or better), redownload the game. Recent patches were massive and you'll literally spend more time waiting for the game to reconfigure and patch than just redownloading the whole game again. Furthermore, you can stream the game while playing.}}

* Mount DVD/DVD Image, (unhide invisible data), for example:
$ mount -o ro,unhide,uid=1000 /dev/dvd /media/dvd (for the DVD)
$ mount -o loop,ro,unhide,uid=''your_id'' ''starcraft.iso'' /media/dvd (for an image)
* Start the installer:
$ wine start /unix /media/dvd/Installer.exe

==== Playing StarCraft II ====

Launch the game from the Battle.net App.
If the game crashes see troubleshooting section.

== Hints for Performance Tuning ==

* {{ic|Ctrl+Alt+F}} shows FPS.
* Make sure that you are using the latest available graphics drivers. Nvidia drivers should be 256.35 or later (drivers in repositories are up to date).
* Edit the variables.txt in your My Documents/Starcraft II/ following the guide [www.teamliquid.net/forum/viewmessage.php?topic_id=142046 here].
* If you're using Intel HD Graphics 3000, you may have to set the VideoMemorySize to 128 (see the Configuration above). The game will complain about not enough VRAM otherwise.
* If you have problems updating the game and see the following in the output:
{{bc|Agent started on port #6882
Executing operation: disable_firewall applicationPath="C:\users\Public\Application Data\Battle.net\Agent\Agent.4432\Agent.exe" applicationName="Battle.net Update Agent"
AgentAsAdmin failed to add a firewall exception for 'C:\users\Public\Application Data\Battle.net\Agent\Agent.4432\Agent.exe'.
Registered Event: "shutdown event"
Registered Event: "database flush event"
PostTo succeeded status: 0 for url: enGB.patch.battle.net:1119/patch
Post Data:

DownloadTo failed error: 0 of article: from:

DownloadTo failed error: 0 of article: from:

DownloadTo failed error: 0 of article: from:}}
Launch Agent.exe --nohttpauth:
$ killall Agent.exe && wine ~/.wine/drive_c/users/Public/AppData/Battle.net/Agent/Agent.exe --nohttpauth
You can now restart the Battle.net App. The updater should proceed smoothly.

==== Unit Preloader ====
SC2 never fully loads the game initially, but rather streams and loads required files on demand. Unit Preloader is a special map which forces SC2 to load '''all''' units, animations and effects, '''causing high RAM usage''', but prevents loading the data (and massive framerate drops) during multiplayer matches. Open ''Arcade'' and search for ''Unit Preloader''. There are 3 versions - start the one which corresponds to the game edition you'll want to play in multiplayer and wait for the Victory screen. All data will be preloaded until you exit the game to desktop.

== Hints for advanced hotkeys settings ==

==== Preliminary ====
Have a look at projects aiming at creating more ergonomic hotkeys for SCII:
* [www.teamliquid.net/forum/sc2-strategy/341878-thecore-advanced-keyboard-layout TheCore]
* [github.com/bobo38/TheCoreLite TheCore Lite]

Some other unmaintained options:
* [www.teamliquid.net/forum/sc2-strategy/404476-fleet-keys-refined-hotkey-systems Fleet Keys].
* [www.teamliquid.net/forum/sc2-strategy/257590-darkgrid-layout DarkGrid]

[www.teamliquid.net/forum/sc2-strategy/446530-rapid-fire-hotkey-trick Rapid Fire] Hotkeys are implemented in those hotkeys settings.

==== Rapid Fire Hotkey throughput ====
[[Xorg]] keyboard autorepeat can be modified. It may make sense to reduce delay before autorepeat starts (default=660 [ms]). Increasing a bit the repeat rate (default=25 [/s]) is a trade-off: speed vs accuracy.

To apply the settings:
$ xset r rate

{{Tip| {{ic|xset r rate}} get X back to default autorepeat settings}}
{{Tip| {{ic|xset q}} let you know the current X settings}}

==== Enable double-key Rapid Fire Hotkey behaviour ====
Fancy double-key Rapid Fire Trick are not possible by default for Linux.
The [git.framasoft.org/bobo/xkb_repeat/tree/master xkb_repeat] git project may help you unlock this behaviour, providing patches to recompile your X server.
{{Warning|This double key repeat usage for RapidFire inject is no longer possible since LoTV release}}

==== Enable CapsLock as a Rapid Fire Hotkey with xmodmap ====
TheCore and TheCore Lite hotkeys rely on CapsLock to be a rapid fire hotkey.
This does not work by default under Linux.
To make it work, CapsLock key could be remapped to another key with [[xmodmap]].
Hereafter an example with "Backspace" character.
$ xmodmap -e "remove Lock = Caps_Lock" -e "keycode 66 = BackSpace"

The .SC2Hotkeys file would need to be modified, to take it into account to add "Backspace" as an alternate wherever CapsLock is used.
You may consider tune your .SC2Hotkeys file with one of those command lines:
$ sed -i -e "s:CapsLock:Backspace:" .SC2Hotkeys # replacement of CapsLock by BackSpace
$ sed -i -e "s:CapsLock:CapsLock,Backspace:" .SC2Hotkeys # easy command copy
$ sed -i -e "s:\([=,]\([=,]\)*CapsLock\):\1,\2Backspace:" .SC2Hotkeys # this one copies any modifier with CapsLock to equivalent with BackSpace

{{Tip| {{ic|1= xmodmap -e "add Lock = Caps_Lock" -e "keycode 66 = Caps_Lock" }} to get back to default CapsLock behavior, once you exit the game}}

==== Use temporary XKB options ====

This tip could be used to perform some modifications:
* map CapsLock to Backspace with {{ic|1=caps:backspace}}
* swap left Control and Alt keys with {{ic|1=ctrl:swap_lalt_lctl}}
* turn CapsLock into an additional Control key with {{ic|1=caps:ctrl_modifier}}
$ setxkbmap -option -option "$(localectl | grep Options | sed -e 's/.*Options:\s*//'),ctrl:swap_lalt_lctl,caps:backspace"
{{Tip| All possible options could be found looking in /usr/share/X11/xkb/rules/base.lst}}
{{Tip| to get back to the default XKB options, once you exit the game you can use the following code in a script}}
setxkbmap -option -option "$(localectl | grep Options | sed -e 's/.*Options:\s*//')"

==== Enable Scrollclick ====
Some scrollclick demo videos:
* [www.youtube.com/watch?v=7pQKnS1CPEQ infestor spawning infested terran]
* [www.youtube.com/watch?v=9aPd8_9_vB4 scrollclick applied to protoss]

Using [[Xmodmap#Reverse_scrolling|Xmodmap]], it possible to set your regular 3-buttons mouse with scroll wheel to practice scrollclick.
First change scroll fonction to "forward mouse button" and "back mouse button":
$ xmodmap -e "pointer = 1 2 3 8 9 6 7 4 5"
Then add alternate key SCII hotkeys for:
* Global=>Unit Management=>Choose Ability or AI target
* Global=>Unit Management=>Smart Command
{{Tip|{{ic|1=xmodmap -e "pointer = default"}} resets to default mouse functionality}}
{{Warning|scrollclick applications previously demoed could be better executed with RapidFire Key method}}
{{Tip|you may consider using this tip to use wheel for previous/next subgroup browsing}}
{{Tip|for more 5+ button, you may consider use {{ic|evrouter}} to apply the same tip and map buttons to other usages}}

== Troubleshooting ==
* You may want to start the game without the launcher: cd ~/.wine/drive_c/Program\ Files/StarCraft\ II\Support (or Support64 for the 64-bit version) and wine SC2Switcher.exe - this might make debugging easier, but you may have to select your region in-game. Furthermore, if your game is not up-to-date, you'll be unable to log in, and no error message will be shown - simply start the Battle.net Launcher and let the game update completely.
* If SC2 instacrashes, or crashes upon game start, try clicking on the Battle.net logo in the Launcher -> Settings -> Game Settings -> Check Launch 32-bit client (instead of 64-bit), or '''uncheck''' it if it's already checked.
* For some, in-game resolution changing does not work. Editing 'width=x' and 'height=y' in Variables.txt in My Documents/Starcraft II solves this issue. Replace x and y with the prefered resolution.
* Should you experience graphics problems (no 3D background in menu, blue non-texturized units and other glitches), launch the game without Battle.net App (see above) like this: force_s3tc_enable=true wine SC2Switcher.exe. You can also add this option to the .desktop entry in ~/.local/share/applications/wine/Programs/StarCraft II, or edit your ~/.drirc file to enable this setting permanently for all apps. Using {{Pkg|driconf}}, you may just enable this setting with a simple GUI.

== See also ==

* [appdb.winehq.org/objectManager.php?sClass=application&iId=11123 StarCraft II] (WineHQ AppDB)
* [bugs.winehq.org/show_bug.cgi?id=23806 StarCraft II crashes because of ACCESS_VIOLATION before the loading screen] (WineHQ bug tracking database)
* [bugs.winehq.org/show_bug.cgi?id=23323 World of Warcraft crashes upon login after 3.3.5 patch.] (WineHQ bug tracking database)
* [bbs.archlinux.org/viewtopic.php?id=101822 starcraft2 crashing on loading] (Arch Linux forums)
* [bbs.archlinux.org/viewtopic.php?id=103354 starcraft2 fails to update to patch 1.03] (Arch Linux forums)
* [eu.battle.net/sc2/en/forum/topic/283440977 Patch News] (battle.net EU forums)
RE: Migration from ArchWiki
by Svito on Saturday December 23rd 2017, 20:19
Comments for article above:

Direct3D settings
In Wine 1.9.x VRAM amount is almost always detected properly, and StarCraft no longer breaks on low VRAM reported. Most GPUs not reporting VRAM properly usually are either early Intel/AMD integrated GPUs, or some AMD APUs - they almost universally can't handle SC2 on newer patches (system requirements increased). How about removing the VRAM block in the configuration section? DragoonAethis (talk) 20:36, 7 August 2016 (UTC)

Necessity of vcrun6sp6 library

A recent edit suggested that the vcrun6sp6 library needs to be installed with winetricks. However, the game seems to run fine without this library. According to the edit comment, the additional library is supposed to resolve an error 'skin.dll not found', but I am unable to find any evidence that this is an issue for anyone else. I am reverting the edit for now.

If the library really is required, perhaps it should be marked optional in the article? Along with a description of what bug it resolves. --Sirrus233 (talk) 08:08, 17 October 2016 (UTC)
New Install Debian Buster Wine 3.0-rc2
by Forestry Dude on Sunday December 17th 2017, 20:35
Ok, so long story short....I get a "The program Battlenet.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience...what am i missing?

INstalled corefonts the vcrun 2005 2008 and 2015 and corefonts....any ideas?

I tried the wine developement vs that suppossed to be gold....anyways
Thanks
RE: New Install Debian Buster Wine 3.0-rc2
by Ben Parsons on Sunday December 17th 2017, 21:24
What prefix are you using? staging?
What version of Windows are you reporting?

My advice would be to start again with a clean prefix and only install corefonts via winetricks.
RE: New Install Debian Buster Wine 3.0-rc2
by Forestry Dude on Sunday December 17th 2017, 21:43
using the same version as you...its in the subject line wine developement 3.0 rc2...I will uninstall the libraries and only install corefonts and try again.....crossing fingers.....
RE: New Install Debian Buster Wine 3.0-rc2
by Forestry Dude on Sunday December 17th 2017, 21:44
I tried both wind 7 and win 10.....
RE: New Install Debian Buster Wine 3.0-rc2
by Ben Parsons on Sunday December 17th 2017, 21:44
Which prefix? 32 or 64?

I would recommend you try a clean WINE prefix rather then just uninstalling
RE: New Install Debian Buster Wine 3.0-rc2
by Forestry Dude on Sunday December 17th 2017, 21:53
Ok...remembering that I am SUPER noob..no laughing.......how do I make a new/clean wine prefix? aka a new "drive"? Thanks for responding to my questions!!!
RE: New Install Debian Buster Wine 3.0-rc2
by Ben Parsons on Sunday December 17th 2017, 21:58
Please refer to the documentation, although feel free to ask any questions (or click on my name to send me a PM)

wiki.winehq.org/FAQ#Wineprefixes
RE: New Install Debian Buster Wine 3.0-rc2
by Forestry Dude on Sunday December 17th 2017, 21:58
Thank you Thank you!!!
FPS drops in game
by Carbone on Sunday December 10th 2017, 12:58
Hi,

everything works but recently when I play I have a lot of FPS drops. It goes down to 0fps and then goes back up instantly.

Here are my specs :
32bit SC2 LotV
Ubuntu 16.04.01 64bit
Wineprefix 32bit 2.4-staging (with CSMT enabled)
16GB RAM.
Geforce with Nvidia driver v384.90

My winecfg is set with :
*msvcr80
*msvcr90
api-ms-win-crt-math-l1-1-0
api-ms-win-crt-stdio-l1-1-0
msvcp140
msvcr100
ucrtbase
vcruntime140

Set each to native, builtin with Windows 7 version

Thx for the help
RE: FPS drops in game
by Ben Parsons on Sunday December 10th 2017, 15:54
Hi,

Could you please try upgrading to a more recent version of WINE and removing your overrides as they are no longer needed in new versions.

Thanks,
Ben
RE: FPS drops in game
by Carbone on Friday December 15th 2017, 8:55
Ok, I will try, but wich wine version do you recommend ?
RE: FPS drops in game
by Nick on Wednesday December 13th 2017, 13:03
I too have received an annoying fps drop (at an interval like OP) after patch 4.1
I used to have overrides, but I reconfigured a prefix and re-installed SC2 with no overrides and the issue still persists

Here are my specs:
Wine Version: 2.21 (Staging)
Wine Prefix: 64 bit
Wine Windows Version: 7
Arch Linux
No Overrides
The only winetricks module installed was corefonts.

Once again this was working fine until patch 4.1. Is there any news on the cause? Is there a fix on the way?

PS: I've also had arcade games crash as described in comments below.


Thanks.
4.0 Crashes: in Skins menu; befores starting a game
by Aleks on Monday November 20th 2017, 14:19
Hi all,

After 4.0 my Bnet client stopped working. Today it updated and now I have Play button back.
Now SC2 crashes. I tried to see the new Ghost skin and my game froze, although the music kept on playing.
Then I tried Unit Preloader arcade and the game crashed fully. I tried starting a Training level and it also crashes:

My setup:
Linux Mint 16
Play on Linux
32 bit prefix
wine 2.18-staging (2.20-staging did no better)
Win7 env
overrides for
api-ms-win-crt-math-l1-1-0 (native, built-in)
api-ms-win-crt-studio-l1-1-0 (native, built-in)
d3dcompiler_43 (native, built-in) {read it helps arcade games lately}
msvcp140 (native, built-in)
ucrtbase (native, built-in)
vcruntime140 (native, built-in)

Thanks in advance.
RE: 4.0 Crashes: in Skins menu; befores starting a game
by Aleks on Sunday December 17th 2017, 10:34
overrides are no longer needed in new versions. It works with 2.4 for me. With lag spikes as f, but anyway.
e_gfxErrorShaderCompileFailed
by Forestry Dude on Wednesday November 15th 2017, 22:55
Sorry if I'm noob,....Running Debian Buster Wine-Staging 2.20 Installed fine, I can play regular vanilla starcraft, however, I can't play some arcade maps...for instance...my FAVORITE plz try....Star Battle Omega, it fails with the subject error and sometimes it just hangs, I can play Special Forces Elite 5 without issue, could anyone explain this????? the new patch has been uploaded, but the error was before the 4 patch....Diablo III is garbage and Hots fails also with unexpected error....I run in both 32 bit and 64 bit, some arcade games fail.....Desert Strike for another instance......anyways..thanks
RE: e_gfxErrorShaderCompileFailed
by Tornado_OLO on Saturday November 18th 2017, 8:19
You've have to install d3dcompiler_43
I also had this problem and installing d3dcompiler_43 resolved it.
RE: e_gfxErrorShaderCompileFailed
by smith on Wednesday January 9th 2019, 1:48
I have the same problem as you, well to an extent anyways...

Some maps crash like parasite zeta, and marine arena and zealot frenzy. I dunno why, it says something about gfx shader and the rest I don't remember.

I am using wine staging and still run into this problem...
RE: e_gfxErrorShaderCompileFailed
by smith on Wednesday January 9th 2019, 1:50
or at least, the problem you had, is still my problem...
Crash when loading a map on wine-staging 2.20, but working with wine-stating 2.15
by mathijs on Wednesday November 15th 2017, 17:54
After the 4.0 patch the games seem to always crash using staging 2.20, but I just played and finished 2 games vs AI using staging 2.15.
WinXP support
by Solovej on Wednesday November 15th 2017, 5:55
Starcraft2 no longer works under Wine since Blizzard stopped support for WinXP.
Starcraft Mass Recall no longer works in either recent wine or recent SC2
by Johnny on Wednesday November 15th 2017, 2:28
Previously the custom map/mod set called Starcraft: Mass Recall used to work, but no longer does.
I'm not exactly sure when it stopped working since I haven't played it in over 6 months.

www.sc2mapster.com/projects/starcraft-mass-recall

Installing works fine, but once you try to load into it by loading the custom save file it fails.

It now fails with a shader compile error. I can't get the exact text right now because now it fails with

err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 0074, blocked by 0083, retrying (60 sec)

I'll need to reboot to get the actual error again.


NOTE: that some other custom maps work fine via the editor, so it's not a problem with all custom maps.

Some Info:
* wine-staging 2.20 currently, but it failed in 2.19 as well.
* OS: Fedora 27
* tried with fresh wine prefix
* 32 bit client and 64 bit client
* no dll overrides (but i did try directx 9 via winetricks once)
* windows 7 wine version
* tried with CSMT on and off

I'd appreciate it if somebody can attempt to replicate it.
RE: Starcraft Mass Recall no longer works in either recent wine or recent SC2
by Anton Bruckner on Saturday March 17th 2018, 8:47
My POL says either with 2.20staging and 3.4: e_gfxErrorShaderCompileFailed
SC2 itself works fine (with low graphic-settings!).
I had to install d3dcompiler_43. Hope, that works for u also.
Wine staging 2.18
by Dev on Wednesday October 11th 2017, 19:46
Blizzard dropped XP and Vista support for SC2 in the latest 3.19 game patch. I had the game working under XP 32-bit. The blizzard agent and SC2 work fine in Window 7 32-bit on Ubuntu 16.04 and kernel 4.13. Haven't tried 64 bit.
64-bit version
by Hugo Osvaldo Barrera on Saturday September 23rd 2017, 11:57
Looks like the note above saying that the 64-bit version does not work is very out of date right now. I've been playing with the 64-bit version for quite some time now, and have just confirmed that it works platinum with the latest wine-staging. Could a maintainer please remove that note?
Missing menus
by Alex on Thursday September 14th 2017, 14:38
SC2 worked very well half a year ago. Today I tried to start it again. Everything works fine, except I cannot see any menus. Starting screen is just a planet in the background. I can navigate around with the F5, F9...-keys and even managed to start a game by blindly clicking everywhere. Game starts normally, just some of the interface is missing graphics. Its pretty much this bug:

us.battle.net/forums/en/sc2/topic/3595345544

I did change permissions with:
find /Documents/"StarCraft II" -type d -exec chmod 755 {} \;
find /Documents/"StarCraft II" -type f -exec chmod 644 {} \;
But it did not help. I also tried the following: delete variables.txt, delete battle.net folder, use "repair game" function in the launcher, reinstalled SC2, changed graphics driver from nvidia-375 to nvidia-340, changed linux kernel from 4.8.0-58 to 4.4.0-93. Nothing improved the situation. What is causing this strange issue? I'd be thankful for any help.

System: Linux Mint 18.1 MATE 32bit
Intel Xeon X5270 on Asus P45
Nvidia GTX 770 4 GB
4x 2GB RAM
RE: Missing menus
by Alex on Thursday September 14th 2017, 14:41
Updating wine-staging2.4 to 2.16 also had no effect.
RE: Missing menus
by weedahmu on Tuesday October 31st 2017, 15:33
Try installing libtxc-dxtn - on ubuntu it is libtxc-dxtn-s2tc and libtxc-dxtn-s2tc:i386 I think.
battle.net launcher is completely broken with 2.15 dev and staging
by Matthew Toseland on Tuesday August 29th 2017, 15:26
With 2.15, it crashes. With 2.15-staging, it loads a CAPTCHA, ignores my password and never lets me log in.

So it looks broken to me.

Debian stretch, 64-bit, winehq packages.
RE: battle.net launcher is completely broken with 2.15 dev and staging
by Ben Parsons on Wednesday August 30th 2017, 2:28
Which WINE prefix are you using?
Multiplayer Matchmaking Queues currently unavailable, Custom maps not loading
by Kevin on Sunday April 9th 2017, 20:01
Hi,

I'm running WINE version 2.0 on Lubuntu.
Battle.net (Blizzard App) has installed fine and is working.
SC2 appears to be installing fine (I've installed up until "optimal" says their is still about 10GB left)
Game starts up fine.
I haven't tested the single player campaign options.
However the none of the multiplayer options work.
Multiplayer appears to be working for other people.
Maybe if the game fully installs this problem will fix itself?
I was wondering if anyone else was experience a similar issue.

Thanks
RE: Multiplayer Matchmaking Queues currently unavailable, Custom maps not loading
by Kevin on Monday April 10th 2017, 2:57
OK I think I've fixed it.

I didn't have winbind.
Just installed that and Multiplayer options are appearing.
RE: Multiplayer Matchmaking Queues currently unavailable, Custom maps not loading
by Kevin on Monday April 10th 2017, 3:04
And in fact working.
Core: out of memory errors
by Darin Avery on Saturday April 8th 2017, 7:04
Hi,

Since the update last month, the battlenet client stopped working until changing the windows mode to windows xp. That then prevents you from running sc2 in 64 bit mode.

I get consistent "Core: out of memory" errors in co-op mode after making that switch. Some on the blizzard forums say that switching to a 64 bit OS fixes that issue. I'm running in a 64 bit prefix but due to running in windows xp mode, i cannot uncheck the "run 32 bit client" button. So i'm stuck with that problem.

One workaround that has worked for a couple matches is to lower the texture quality from ultra to high.

Good luck.
Core: out of memory errors
by Jon on Monday April 24th 2017, 12:18
Same problem here. Switching it to Windows XP mode let me play again, and lowering the texture quality lets me get through a whole match before it goes OOM, but there is also a notable regression to what was already a pathetic (~15fps) framerate during game play. I tried with wine 2.0 and a fresh build of 2.6 with the same results. CSMT makes no difference, to the point I question it's mere existence. Framerates in the main game menus though are paradoxically high. I hope someone comes up with a solution. :(
Core: out of memory errors
by Jon on Monday April 24th 2017, 18:39
CORRECTION

Turns out CSMT isn't actually in this wine 2.6 build after all, which explains why my regedit did nothing and there wasn't a "staging" tab in winecfg.

I tried wine-staging from the winehq repo though and at least that works in win7 mode again. It's not any faster for me, but it might still be worth a try for you.
Core: out of memory errors
by Gian Paolo Mureddu on Thursday August 10th 2017, 23:12
Ever since I bought LotV, SC2 in 32-bit will crash with an out of memory error, regardless of the Windows version I set Wine to. Sure enough, the 64-bit client works as expected, but even in a 32-bit arch with Wine, it will cause this error, it is true, that lowering the texture quality will delay the error, but it will still appear even if set at low (eventually), like I said, running under a 32-bit arch (I did just to test this, by the way).
Crashes after / while loading screen (FreeBSD 11)
by Tobias Gion on Friday March 17th 2017, 3:29
Hey Guys,

iam messing with this for quite a time and just cant get it running. But lets start with my specs:

* FreeBSD 11 (64-bit) with 32-bit wine 2.1-Staging
* NVIDIA QUADRO 1000M (nvidia-driver 375.26)
* Clean 32-bit wine installation with corefonts vcrun2005 vcrun2008 vcrun2015
* Added overrides: api-ms-win-crt-math-l1-1-0 api-ms-win-crt-stdio-l1-1-0 msvcp140 ucrtbase vcruntime140

Battle-net installer installs and runs fine. After that installing SC2 went smooth. When i start the game through Battle.net it switches to the loading screen and immediately after that brings me back to Battle.net.
I dont get any crash reports (from SC2 or Battle.net) nor do i get any error messages i can relate to anything (or find solutions on google).

---- snip -----

fixme:d3d:debug_d3dformat Unrecognized 0x36314644 (as fourcc: DF16) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x36314644) in the format lookup table.
fixme:d3d:debug_d3dformat Unrecognized 0x36314644 (as fourcc: DF16) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x36314644) in the format lookup table.
fixme:d3d:debug_d3dformat Unrecognized 0x34324644 (as fourcc: DF24) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x34324644) in the format lookup table.
fixme:d3d:debug_d3dformat Unrecognized 0x34324644 (as fourcc: DF24) WINED3DFORMAT!
fixme:d3d:wined3d_get_format Can't find format unrecognized (0x34324644) in the format lookup table.
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:thread:NtGetCurrentProcessorNumber need multicore support (4 processors)
fixme:thread:NtGetCurrentProcessorNumber need multicore support (4 processors)
fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub
fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",0xf35f650): stub
fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",0xf35f650): stub
fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",0xf35f650): stub
fixme:secur32:schannel_get_mac_algid unknown algorithm 200
fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x4f46f9

---- snip ----

I hope someone here has FreeBSD running with wine and SC2 and can help me out or somebody else got a clue. If needed i can post all the config and log files.

Thanks a lot in advance!
RE: Crashes after / while loading screen (FreeBSD 11)
by Renan Samuel Silva on Saturday March 18th 2017, 8:52
I got the same error while using wine 2.0, and I can affirm that it started somewhere the 17th and the 18th of march. I played a couple of games in the morning of the 17th and it was all working.
RE: Crashes after / while loading screen (FreeBSD 11)
by Jon on Saturday March 18th 2017, 9:23
On a similar time frame, with 2.0 as well, the Battle.net client started outright crashing on me immediately at launch. With WINEDEBUG=-all, I just get this:

Object moved
Object moved to here.

Object moved
Object moved to here.

Object moved
Object moved to here.
RE: Crashes after / while loading screen (FreeBSD 11)
by Jon on Saturday March 18th 2017, 9:24
sorry, there were supposed to be html tags around the "object moved to here" and a www.blizzard.com/404 link, but the form stripped them instead of escaping them I guess.
RE: Crashes after / while loading screen (FreeBSD 11)
by Renan Samuel Silva on Saturday March 18th 2017, 9:25
That is normal.
RE: Crashes after / while loading screen (FreeBSD 11)
by Aleks on Monday March 20th 2017, 18:10
In the thread about battle.net app appdb.winehq.org/commentview.php?iAppId=15365&iVersionId=28855&iThreadId=99813 there is a workaround setting battlenet.exe to use Windows XP environment, not windows 7. I hope that helps. Rushing to type here before even trying to fix mine :-/
Awful performance
by Hugo Osvaldo Barrera on Wednesday February 22nd 2017, 20:55
Since one of the most recent updates, my performance has gotten awful. With the same mid-low settings, I've gone from 50-60fps, to 10-20fps, permanently.

Is anyone else having this issue?
RE: Awful performance
by dura on Thursday March 9th 2017, 14:56
With GTX970 1440p I got on the nexus in the first LOTV protoss mission:
wine 2.0 staging and CSMT: ~65 FPS
wine 2.1 2.2 2.3 staging CSMT: ~40FPS.
Ctrl+Alt+F will show FPS.
RE: Awful performance
by Iksf on Sunday March 12th 2017, 17:23
Also experiencing huge FPS decreases since 2.0
Works but only for a minute or 2
by Shane Fagan on Tuesday January 31st 2017, 9:21
I followed the instructions in the thread, put in the overrides and ran SC2 directly. I tried 3 different versions of WINE and got the same issue with all 3, I tried the DRI3 patched version, CSMT patched wine-staging and vanilla WINE. It crashes in the same way each time which is a pretty simple freeze and then quit. Anyone else getting similar behaviour with WINE 2.0?
RE: Works but only for a minute or 2
by Ben Parsons on Thursday February 23rd 2017, 1:20
Try the following dll override:

api-ms-win-crt-math-l1-1-0
RE: Works but only for a minute or 2
by Shane Fagan on Thursday February 23rd 2017, 3:39
I already have that on native, builtin. It's a pretty strange issue because it works fine until I get into game and then it causes issues.
RE: Works but only for a minute or 2
by Ben Parsons on Thursday February 23rd 2017, 7:00
Strange, try some of these overrides:

api-ms-win-crt-math-l1-1-0
api-ms-win-crt-stdio-l1-1-0
msvcp140
ucrtbase
vcruntime140

are you running the 64 bit or the 32 bit executable and what wine prefix are you using?
RE: Works but only for a minute or 2
by Shane Fagan on Friday February 24th 2017, 6:37
Hmmm I seems to be working now on wine-staging for what ever reason after clearing everything other than the SC2 install itself
RE: Works but only for a minute or 2
by Shane Fagan on Friday February 24th 2017, 7:00
Just played 1 game fine, then the next game it crashed. Looks like it is still doing it.
RE: Works but only for a minute or 2
by Shane Fagan on Friday February 24th 2017, 16:28
Ok, I figured out the issue, so for the people who want to know how to run SC2 if they are hitting the issue of quitting after a minute or 2 try this out:

1. Install at least WINE 2.0
2. Use a 32bit wine prefix (WINEARCH=win32 if you don't already have a .wine directory otherwise you have to set the WINEPREFIX to something else)
3. Use WINEDEBUG=-all vblank_mode=0 to get the best performance out of it.

I eventually landed on the WINE DRI PPA. It gives great performance and coupled with the MESA_GLSL_CACHE_ENABLE=1 from the new changes to the AMD driver you have pretty much a Windows level of performance.
multiplayer crash
by demonchy on Wednesday January 11th 2017, 17:29
hey, first of all I'm sorry for my bad english I'm French so I'll try to do my best but please be indulgent.

Os : Debian 8.6 Jessie ~ cinnamon
I've installed the battle net client with wine64 (wine 2-0-rc4). Nothing to say about the client, everything is fine I can read all the stuff and configure what I want, a little bit after testing the client I've installed Sc2. After put different settings on the client, two main bugs have appeared : when I select "launch the game in 32 bits instead of 64" the game crash after the login screen. Fine, now I'm unchecking the box, restarting the game... I can login!
But after a little bit testing, when I try to to play on multiplayer mode, even against the computer, it loads everything and just before beginning the battle, crash. It's very frustrating, and I don't find a similar case, perhaps I've not been searching enough.
RE: multiplayer crash
by Ben Parsons on Thursday January 12th 2017, 3:44
What dll overrides are you using?

by Tim Terhorst on Tuesday January 3rd 2017, 21:28
@Ben Re: appdb.winehq.org/objectManager.php?sClass=version&iId=20882&iTestingId=96322 I do indeed appear to have a 64bit WINEPREFIX by default. I have a syswow64 directory in all of my other WINEPREFIX's - I tested this by forcing WINEARCH=win32 in a new WINEPREFIX and didn't have that syswow dir in the test.
Test results modified
by Hugo Osvaldo Barrera on Monday December 26th 2016, 7:41
Looks like my test results were modified, not only in rating, but in content. I'm not a big fan of these test results being published with my name, but different content (I'd much rather have had the results rejected and edit them myself).

I did not write any of the following, and the appdb lists my as an author, which is, to say the least, quite dishonest:

*****
using 64 bit prefix

if not using wine-staging following overrides are required (corefonts must also be installed):

api-ms-win-crt-math-l1-1-0.dll
ucrtbase.dll

Don't use more overrides as they may cause more issues
*****

What worries me specifically, is that I did not actually confirm this, nor have I given any evidence that points to this (except the first line).
This may even possibly be flat out wrong, but the test results with my name on it publishes this.
Please delete these tests results OR alter the author to whomever wrote this. It's completely unacceptable to publish something with my name on it without my consent.

If posting results relevant to the staing branch is unacceptable, please let me know and I'll refrain from doing so in future.
RE: Test results modified
by Ben Parsons on Monday December 26th 2016, 23:27
I was the one who edited your test results, I took the added data from the previous test (which is now showing as I deleted your test, as requested - I cannot edit author).

I edited your results as you did not explicitly say that you were using wine-staging (which does not require any overrides, non staging still does.) I would like to keep the main page relevant to nonstaging so I added the extra info for people landing on the page wondering why SCII does not launch / what overrides they need.
You also did not mention what prefix you are using or the executable version (32/64) of the game you are using.

I am trying to clean this page up as it is still a bit of a mess with incorrect / outdated information.

I apologise for at the least, not notifying you / asking permission before posting.
If there is anything else I can do to rectify this, please let me know.
New install quide
by Jarkko Korpi on Sunday December 25th 2016, 22:57
If you are using pure wine, you get constant crashes with battle.net at libcef. Unless you do winetricks -q corefonts. This is bug 32342. With wine-staging you don't seem to need this.
You may get some internal crash at battl.net after installing corefonts and it shows some id number, just restart the client.
You need to override api-ms-win-crt-math-l1-1-0.dll and ucrtbase.dll to native via winecfg.

These are bugs 41725 and 42001.

After all these steps you should be able to play.
64 bit
by Iksf on Friday December 23rd 2016, 13:31
Not sure why people are having problem with 64 bit, works fine for me.

www.youtube.com/watch?v=AbV5kq9l1zE&feature=youtu.be
RE: 64 bit
by Ben Parsons on Friday December 23rd 2016, 17:14
Feel free to submit new test results on 64 bit prefix, however, I could not get the game running in 64 bit in most recent update. Nor do I have the time to test right now

I have had it running in x64 previously.
RE: 64 bit
by Andrew Smart on Saturday December 24th 2016, 18:47
For me on x86_64 the first time I tried winetricks vcrun2015 it didn't install all the dlls. Not sure why. Had to reinstall vc2015 before it would work.
RE: 64 bit
by Iksf on Sunday December 25th 2016, 6:43
I haven't used any DLL overrides.
Multiplayer crashes with wine1.9.24
by Cory on Sunday December 11th 2016, 14:53
So I try to join a game, it searches for a game, serious graphics issues for 30ms every 6s, and then it just crashes when it tries to load the game.
I'm gonna wait until wine2.0r1 comes to the Ubuntu packages and then I'm gonna try it.
Also, the editor crashes too, so... (I'll test that better when I get wine2.0r1 loaded up)
I'm using the same wineprefix (that is, ~/.wine/ directory) as I did with wine1.9.23, and I'm not sure if that can be an issue as I did use winetricks to install the vcrun2015
Do you think I'll have to reinstall starcraft II when I have wine2.0r1? Because that's like 24+ GB :|

Maybe just for fun I can try:
- Running 32-bit SC2Switcher.exe
- Try Windows 7 in `winecfg'
RE: Multiplayer crashes with wine1.9.24
by Ben Parsons on Monday December 12th 2016, 15:10
Are you using the recommended overrides?
Are you using CSMT?
Are you using wine-staging?
What wineprefix are you using? 32/64 bit?

No,you will not have to reinstall WINE, just like every other WINE update it should be an in-place insall
WINE 2.0 is not big update, just a number change.
RE: Multiplayer crashes with wine2.0r1
by Cory on Monday December 12th 2016, 17:38
> Are you using the recommended overrides?
I winetricked (lol) installed msvc2015 so it has the minimum and then some.

> Are you using CSMT/wine-staging?
No.

> What wineprefix are you using? 32/64 bit?
Ummmmmm.......64-bit? How can you tell?

> WINE 2.0 is not big update, just a number change.
Oh! good to know.

I don't care. I'm gonna totally destroy my ~/.wine and try it fresh. I'm 70% sure it could clear some headaches..especially since I used winetricks. Fingers crossed.
RE: Multiplayer crashes with wine2.0r1
by Ben Parsons on Tuesday December 13th 2016, 0:35
>I winetricked (lol) installed msvc2015 so it has the minimum and then some.
That doesnt mean you are using overrides, goto winecfg and look under the "libraries" tab

> Are you using CSMT/wine-staging?
Using it will drastically increase performance. (2-5x)

WINE defaults to an x64 prefix. Starcraft II (atleast in my case) is dramatically more stable with a 32bit prefix.

here is how I run battlenet:

WINEARCH=win32 WINEPREFIX=~/.wine32 wine ~/.wine32/drive_c/Program\ Files/Battle.net/Battle.net\ Launcher.exe
RE: Multiplayer crashes with wine1.9.24
by Electric Prism on Sunday July 2nd 2017, 16:29
It seems the editor is working again, however I can't run it with CSMT or GalliumNine in wine-staging. I am once again able to login to publish maps to Battle.net (Haven't tested in a while but 2.10-staging works)
RE: Multiplayer crashes with wine1.9.24
by Cory on Sunday July 2nd 2017, 19:25
oh really? That sounds like fun to try! There is a 4% chance I will try running the editor in the latest wine within 4 years.
SC2 crashs on authentification screen
by Carbone on Thursday December 8th 2016, 12:22
SC2 crashs after loading screen, just after the authentification screen .

Here are my specs :
32bit SC2 LotV
Ubuntu 16.04.01 64bit
Wineprefix 32bit 1.9.23 or 1.9.24
16GB RAM.

My winecfg is set with :
api-ms-win-crt-math-l1-1-0
api-ms-win-crt-stdio-l1-1-0
msvcp140
ucrtbase
vcruntime140

Set each to native, builtin with Windows 7 version

Thx for the help
RE: SC2 crashs on authentification screen
by Ben Parsons on Friday December 9th 2016, 0:47
How are you running the game?
What graphics card & drivers do you have?
RE: SC2 crashs on authentification screen
by Andrew Smart on Saturday December 24th 2016, 18:42
Make sure you've used winetricks to install vcrun2015. All those dll entries should have an asterisk (*) prefixing them. If they don't then vcrun2015 isn't installed.
Graphic card information is not updated
by Robin on Monday December 5th 2016, 20:06
I recently change my Radeon HD 5450 into a RX 480 4G. I noticed that RX 480 info is added in Wine 1.9.24-devel, but in SC2 LotV it shows my card as "ATI Radeon HD 5600 Series" (the same as before with HD 5450) and prevent me applying higher graphic settings. I tried to add DeviceID and VendorID in registry, but it didn't work. How can I make it to "forget" my old card and recognize my new card?

My system is Ubuntu 16.04.1 x64, Wine 1.9.24-devel x64, AMDGPU-Pro 16.40, SC2 x64. All of them are up-to-date.

Thanks!
RE: Graphic card information is not updated
by Ben Parsons on Wednesday December 7th 2016, 1:42
Hi,

I would recommend deleting your configuration data in %USERPROFILE%\Documents\StarCraft II\Accounts

Other then that all i can say is try reinstalling the game or a clean WINE prefix.

On another note, could you please share how you are launching the game and the DLL overrides you are using as I do no know how you got the game working in a 64 bit prefix.
RE: Graphic card information is not updated
by Robin on Wednesday December 7th 2016, 21:20
Hi Ben,

Thank you for your reply. I tried deleting the Account folder, and it doesn't work. I'll try reinstall the game later. I don't know how compatible wine is with amdgpu-pro driver, so hopefully it's not driver issue.

As for my game launch, I launch it from a 64bit Bnet with default configuration. DLL overrides are as recommended (native, builtin):

api-ms-win-crt-math-l1-1-0
api-ms-win-crt-stdio-l1-1-0
msvcp140
ucrtbase
vcruntime140

I'm not 100% sure my launch is 64bit, but in Bnet game settings, launch 32-bit client (instead of 64-bit) is unchecked. Except for the wrong graphic card info, I have no problem launching the game and playing campaign. The only issue is when I quit the game, most of the time it freezes, and I have to switch to another display and kill the process.
RE: Graphic card information is not updated
by Ben Parsons on Thursday December 8th 2016, 0:06
The game crashing on exit is a common problem, I believe that if you run the game like so:

WINEDEBUG=-all wine Battle.net.exe

then the game does not crash on exit.

other then that, I would suggest trying the radeon driver or a clean wine prefix.
RE: Graphic card information is not updated
by Robin on Thursday December 8th 2016, 8:13
My game still crashes on exit when adding WINEDEBUG=-all. I think whether to crash is related to how much resources it has used.

As for driver, I'm afraid amdgpu-pro is the only driver currently available that supports rx480. I believe the driver is correctly installed, as Ubuntu recognize my graphics as "AMD Radeon (TM) RX 480 Graphics".
RE: Graphic card information is not updated
by Ben Parsons on Friday December 9th 2016, 0:49
Other then trying the open source driver (AMDGPU), I don't have any other ideas if you have tried a clean wine prefix.
RE: Graphic card information is not updated
by Jarkko Korpi on Sunday December 25th 2016, 21:51
I got rx480 too. How do I check how SC2 sees my card? I got closed source driver because the audio code isnt in kernel yet.
RE: Graphic card information is not updated
by Jarkko Korpi on Sunday December 25th 2016, 23:40
I noticed the same problem. And I was able to fix it. I am trying to upstream the fix. You need to compile wine yourself and patch it with this patch.

The fix is here.

From b4a36fb09b2ba57cbd6711d1ebda9e9191e3e50b Mon Sep 17 00:00:00 2001
From: Jarkko
Date: Mon, 26 Dec 2016 07:31:44 +0200
Subject: [PATCH] Add Rx 480 binary driver

---
dlls/wined3d/directx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 1aae20d..2d81a6d 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1966,6 +1966,7 @@ cards_nvidia_binary[] =
* eg HD 4800 is returned for multiple cards, even for RV790 based ones. */
cards_amd_binary[] =
{
+ {"RX 480", CARD_AMD_RADEON_RX_480},
/* Southern Islands */
{"HD 7900", CARD_AMD_RADEON_HD7900},
{"HD 7800", CARD_AMD_RADEON_HD7800},
--
2.7.4
RE: Graphic card information is not updated
by Robin on Monday December 26th 2016, 0:07
Would you mind to tell me which version of wine are you using? Thanks!
RE: Graphic card information is not updated
by Jarkko Korpi on Monday December 26th 2016, 0:12
The latest wine 2.0.rc3. That patch is not currently at any wine version. I submited it to staging also. You need to compile wine and add that patch. It adds support for closed source driver for rx480. The gpu settings arent limited after that patch in SC2.
RE: Graphic card information is not updated
by Jarkko Korpi on Monday January 2nd 2017, 15:25
The rx480 fix got committed. It will be in next wine relase 2.0. Also if you compile wine yourself, the patch is already wine-git.
lotv crashes after 5 minutes of play
by starcraft player on Wednesday November 30th 2016, 22:44
I installed PlayOnLinux for legacy of the void, and have no problems starting battle.net and stacraft 2. However, after about 5 minutes of excellent gameplay, the sc2 freezes and I'm unable to exit without a hard reboot.

I'm on ubuntu 14.04 and using wine 1.9.24 64 bit (all the other version of wine didn't work for me). My computer is fairly good, with 32GB memory, intel i7, and Nvidia card with 4 GB, so I don't believe it's related to hardware.

Has anyone else experienced this problem, and if so, how did you resolve it?

Thanks,
Stanley
RE: lotv crashes after 5 minutes of play
by Ben Parsons on Thursday December 1st 2016, 0:56
What dll overrides are you using?
Also try using the staging branch with CSMT enabled (this also gives drastically better performance)
I have found personally that using a 64 bit prefix causes the game to crash, try using a 32 bit prefix
RE: lotv crashes after 5 minutes of play
by starcraft player on Friday December 2nd 2016, 17:00
Didn't know I needed to override dlls and also run with CSMT until you mentioned it-- I did both and everything has been running fine for about an hour... fingers crossed. It does seem to crash when I try to exit, but at least I get to play. Thanks for the post!
RE: lotv crashes after 5 minutes of play
by Ben Parsons on Friday December 2nd 2016, 22:47
CSMT is not required but can give huge performance increase (my FPS tripled while in game, others say it can give a 500% increase)
Arch x64 + Wine 32 bits 1.9.23-staging & CSMT enabled. Works great... After the following.
by Ryo on Friday November 25th 2016, 7:01
Bnet runs fine without overrides. The game crashed on the login screen though so you effectively need on SC2.exe (native,builtin):

api-ms-win-crt-math-l1-1-0
api-ms-win-crt-stdio-l1-1-0
msvcp140
ucrtbase
vcruntime140

---------------------------------------------------------------------------------------------------
Then I got the freeze on quit. I resolved the issue by adding (disabled):

dbghelp


DO NOT add this override on battle.net or it won't launch anymore. This needs to be set on SC2.exe only.

----------------------------------------------------------------------------------------------------
I got the weird behavior from redshift too. May it be on lauch or during ladder game loading, the color temp resetted for a sec which was very annoying. The fix was in one of the bug issue (bugs.winehq.org/show_bug.cgi?id=37849). You need to add a registry key to prevent wine from touching at this.

Go to HKEY_CURRENT_USER/Software/Wine.
Then add the "X11 Driver" key.

Inside the newly created "X11 Driver" add the chain value "UseXVidMode" and set it to "N".

That fixed it for me. Good luck.
RE: Arch x64 + Wine 32 bits 1.9.23-staging & CSMT enabled. Works great... After the following.
by Ben Parsons on Friday November 25th 2016, 7:38
Why didn't you just add this as test results?

Thanks for the extra info, do you want me to add it to my test results instead?
RE: Arch x64 + Wine 32 bits 1.9.23-staging & CSMT enabled. Works great... After the following.
by Ryo on Friday November 25th 2016, 8:23
Saw your test on similar setup, didn't want to overlap.

I was kinda hoping you would ask that, yes please.
RE: Arch x64 + Wine 32 bits 1.9.23-staging & CSMT enabled. Works great... After the following.
by Ben Parsons on Friday November 25th 2016, 8:56
I added them as notes :)
RE: StarCraft II still freezes on quit even with dbghelp disabled
by Cory on Friday November 25th 2016, 8:30
So StarCraft II still freezes when I hit the Quit button when in StarCraft II login (not the Battle.net App).
Even when I have dbghelp disabled in winecfg.
I run StarCraft II like this:
cd ~
cd '.wine/drive_c/Program Files (x86)/StarCraft II/Support64'
WINEDEBUG=-all wine SC2Switcher_x64.exe


I wish StarCraft II didn't freeze when I quit the game.
RE: StarCraft II still freezes on quit even with dbghelp disabled
by Ben Parsons on Friday November 25th 2016, 8:55
Yep, same here, still crashes on exit.
RE: StarCraft II still freezes on quit even with dbghelp disabled
by Ryo on Friday November 25th 2016, 9:54
I run the game from the bnet app and I use the 32bits client.
RE: StarCraft II still freezes on quit even with dbghelp disabled
by Ryo on Friday November 25th 2016, 10:47
So after reading your comment I went and tried to launch the game your way (I use PoL). This time I used wine 1.9.23 (no staging) and still the 32 bits executable (in /Support/).

cd ~
cd path-to-starcraft2-folder/Support/
WINEDEBUG=-all wine SC2Switcher.exe

It ended up working the same.

I tried with and without dbghelp and yeah, that dll is clearly the cause of the hang on my computer.

Btw I didn't mention it but Windows version was always set on 7.

Hope it helps.
The StarCraft II Quit-Freeze Problem
by Cory on Friday November 25th 2016, 15:02
So I tried SC2Switcher.exe in Support/ versus Support64/ (with dbghelp disabled)
I tried quitting and it worked! It quit!
So I was like: "yay problem solved."

And then I started SC2Switcher.exe again and hit Quit. And guess what happened?
It froze!

So I killed "C:\Program Files (x86)\StarCraft II\Versions\Base48258\SC2.exe"
Waited a little while.
Ran it again. Tried Quit. And guess what happened?
Another freeze!

I really want StarCraft II to actually quit every single time.
But hey Wine-1.9.24 just came out. So I'm excited. I'm 4-7% sure it'll solve this StarCraft II quit-freeze problem.
RE: The StarCraft II Quit-Freeze Problem
by Ryo on Saturday November 26th 2016, 2:48
Urgh, got my hopes up for a second. I'm sorry this doesn't work for you.
It is just so weird that the app doesnt behave the same on two identical wine version.

Is it a clean prefix? Did you install vcrun2015?

I actually installed it instead of just using the overrides (and removed the unnecessary ones that winetricks adds) even though I read somewhere that you can do without, hence my question.
At this point, I'm just looking at the possible differences between our setups. It works 100% of the time for me. That much I guarantee.

Yeahhh, I'm definitely not updating anything until it breaks.
RE: The StarCraft II Quit-Freeze Problem
by Ben Parsons on Saturday November 26th 2016, 5:17
vcrun2015 should no longer be required as of WINE version 1.9.24, see bug #40032
starcraft won't start
by matthew on Friday November 4th 2016, 14:54
It's on linux mint 18 with the newest update. When i press it says player for a few seconds and then goes back to a play button. I can replicate it indefinitely.
RE: starcraft won't start
by Jinxie on Wednesday November 9th 2016, 3:42
Same here , battle.net seems to work but it wont launch the game, intallation ran flawlessly.Im using ubuntu 16.10
RE: starcraft won't start Battle.net App Play button does nothing
by Cory on Saturday November 19th 2016, 14:38
Same. (StarCraft II won't start).
I got a fresh 1.9.23 wine using Linux Mint 17.3 (basically Ubuntu 14.04 packages).

Sooooooo......
I downloaded the Battle.net desktop thing.
Installed it all good.
had it download StarCraft TWO.
all good.
Press the Play Button.....................
The button turns to "Launching" or whatever.
And then it goes back to "Play"
:(
GOTO Press the Play Button.............

bash winetricks vcrun2015 #doesn't help
#switching to 32-bit mode through the Battle.net App didn't help
#calling 'StarCraft II.exe' with -launch didn't help
#Hmmmmmmmmmmmmmm.

#Things I could try:
#-changing Windows version in winecfg
#-Killing all of the .exe's that are running and then re-run
#-Try the DLL-overrides described on this page.
#-Research various StarCraft II.exe command-line options to see
# if it could run another way

#But sadly it should just WORK :(
Solution
by Cory on Tuesday November 22nd 2016, 18:24
Aha! So I'm 73% sure this should work:
1) make sure SC2 is not running:
`ps aux | grep .exe'
So kill as necessary.
2) in the battle.net app configure starcraft II to have extra command-line options. In this case, add this:
-win
This will tell StarCraft II to run in window mode (although it looks full-screen). And that's how I got StarCraft II to actually run, versus the button going from "Launching.." to "Play" and nothing happening.

Good luck!
RE: Solution.......Actualllllly......
by Cory on Tuesday November 22nd 2016, 19:29
No need to add -win to the Additional command-line arguments for calling StarCraft II.

All you need to do...I think..
Is make sure all of the StarCraft II processes are dead before clicking the "Play" button on the battle.net Desktop App.

ps x #should show you the processes. and you'll know which ones to kill.
Can't connect.
by Joscha Becker on Monday October 24th 2016, 0:42
The game has me stuck on the 'connecting to battle.net' screen upon entering my account name and pressing 'connect'.
I can log in through the b.net launcher, but not into StarCraft 2.
This problem didn't come with patch 3.7, but just today.
Am I alone with this?

wine 1.9.17 & 1.9.20, 32bit installation
RE: Can't connect.
by Joscha Becker on Monday October 24th 2016, 20:07
It's working again today.
So it's hopefully nothing.
RE: Can't connect.
by Vincent Hobeïka on Thursday October 27th 2016, 15:07
I often have this trouble when my router is managing a heavy traffic, for instance when I have lots of connections due to peer to peer traffic.

Restarting it often solves the problem.
Starcraft 3.6.0
by arkahys on Sunday September 25th 2016, 10:27
until 3.6.0 the only way to launch game for me is :
wine64 with game32
overriding :
- msvcp140
- vcruntime140
- api-ms-win-crt-stdio-l1-1-0

to launch :
cd .wine/drive_c/Program\ Files\ \(x86\)/StarCraft\ II/Support/
WINEARCH=win64 wine SC2Switcher.exe
RE: Starcraft 3.6.0
by Mohamad Yassine on Thursday October 20th 2016, 23:42
Great it worked, but every time I alt+tab, the game just freezes and I have to manually reboot my computer. Any suggestions?
RE: Starcraft 3.6.0
by arkahys on Saturday October 22nd 2016, 7:43
my only way to quit game is to logout before quit game.
sometimes game shutdown correctly and sometimes freeze but it's the only way i found to go out window.
RE: Starcraft 3.6.0...which is now Starcraft 3.8.0
by Cory on Tuesday November 22nd 2016, 19:49
I prefer going:
cd .wine/drive_c/Program\ Files\ \(x86\)/Battle.net
wine Battle.net.exe
# because it auto-updates StarCraft II when it's out of date
# and to play all you have to do is click the Play button
# and Authentication is automatic from the Battle.net Desktop App
# so you don't have to login when in StarCraft II.
Latest update works only in 64 bit mode
by Ema on Wednesday September 14th 2016, 15:02
Hi,

As per subject I'm able to patch the game in 32 bit mode via Battle.Net, but then in order to start it, I have to run:

WINEPREFIX="$HOME/winesc2_64/" WINEARCH=win64 wine /disk3/StarCraft\ II/Support64/SC2Switcher_x64.exe

Then it works (I had to apply winetricks vcrun2015 of course) - the equivalent 32 bit command doesn't work.
Hope this helps as a workaround.


Log of the 32 bit crash:

err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:msvcrt:type_info_name_internal_method type_info_node parameter ignored
fixme:imm:NotifyIME IMC_SETCONVERSIONMODE
fixme:imm:ImmReleaseContext (0x30044, 0x19e210): stub
wine: Call from 0x7b43c10c to unimplemented function api-ms-win-crt-math-l1-1-0.dll._except1, aborting
fixme:dbghelp:elf_search_auxv can't find symbol in module
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
RE: Latest update works only in 64 bit mode
by X on Thursday September 15th 2016, 0:53
It works for me (on 32bit wine) with one more dll override in winecfg (it's the one it complains about):

api-ms-win-crt-math-l1-1-0
RE: Latest update works only in 64 bit mode
by Beau on Thursday September 15th 2016, 9:11
Just so others know, I already had the override for api-ms-win-crt-math-l1-1-0 which was set to native, then builtin. Removing it and adding it again solved the problem
RE: Latest update works only in 64 bit mode
by tungnm on Thursday September 15th 2016, 22:25
This trick worked for me too. wine 1.9.18.
Latest update 3.6.0 results in crash on start
by Aleks on Wednesday September 14th 2016, 14:54
Hi all,
I just updated and after battle.net, and Artanis loading screen loads, the game crashes within few seconds on main screen. I hear the game music, buttons are visible, there is black bachground instead of stars or anything and then it crashes.

PlayOnLinux Mint, wine 1.9.15. I tried and can't get any higher version of wine to even boot.
RE: Latest update 3.6.0 results in crash on start
by wisut on Wednesday September 14th 2016, 23:40
I have exactly same problem on Arch linux (lastest system update)

sc2 3.6.0
wine-1.9.18 (Staging)
nvidia 370.28-1

before 3.6.0 update everything work fine
RE: Latest update 3.6.0 results in crash on start
by Joscha Becker on Thursday September 15th 2016, 5:42
I had the exact same issue (wine 1.9.17, 32bit installation).
As suggested in the "works only in 64 bit mode" thread I tried out adding the api-ms-win-crt-math-l1-1-0 override, and it stopped these crashes.
Haven't had time to play a game yet, but I could log in and the menus work normally.
RE: Latest update 3.6.0 results in crash on start
by Aleks on Thursday September 15th 2016, 12:12
I can confirm that that override made the game playable again. I played against AI from start to end no exception happened. Cheers and big thanks. See you on ladder :)
RE: Latest update 3.6.0 results in crash on start
by Prot on Friday September 16th 2016, 5:15
Thank you, it work for me too.
Galaxy Editor
by Electric Prism on Tuesday September 13th 2016, 19:52
The Galaxy Editor seems to crash when I try to login under File > Publish Map

Is anyone else encountering this problem?
RE: Galaxy Editor
by Andrew Smart on Thursday December 15th 2016, 14:34
Yes. Now it appears authentication was moved to when the editor is started and it crashes there: appdb.winehq.org/objectManager.php?sClass=version&iId=22206
error in "mscvcp140"
by arkahys on Sunday September 11th 2016, 16:46
the file to override is "msvcp140" (no "mscvcp140")
RE: error in
by Filip Frackiewicz on Saturday October 29th 2016, 16:47
The command

$winetricks vcrun2015

should solve your issue, just make sure you have the latest version of winetricks.

by Electric Prism on Wednesday September 7th 2016, 22:15
Looks like after Battle.net Launcher Updated it crashed, installing vcrun2015 via winetricks resolved the issue.

env WINEPREFIX=/opt/starcraft2 winetricks vcrun2015
svcp140.dll
by Electric Prism on Wednesday September 7th 2016, 22:10
wine: Call from 0x7b43d54c to unimplemented function msvcp140.dll._Thrd_id, aborting
wine: Unimplemented function msvcp140.dll._Thrd_id called at address 0x7b43d54c (thread 00a8), starting debugger...
Object moved
Object moved to here.

➜ ~ wine --version
wine-1.9.18 (Staging)

Backtrace: ptpb.pw/K5_u
Low FPS
by Ian on Thursday August 25th 2016, 15:56
My fps is 60 at the menus and 20 or so during campaign missions and light co-ops. Anything more heavy-duty like mutations or 2v2 and it becomes unplayable at less than 1 fps. Note that this is with /Medium/ graphics, not Ultra as Windows is able to handle.

Hardware:
i7-950
18GB RAM
GTX 670
SSD drives

Software:
Arch with latest packages including...
xfce4
nvidia graphics driver
wine-staging

Settings:
Compositing disabled
CSMT enabled
Medium quality graphics
Medium quality sound (read somewhere that this might help)

With this setup one might think that SC2 would run very smoothly, but alas it does not. Does anyone else have a similar environment with this FPS issue? Any fixes or suggestions? Thanks :)
RE: Low FPS
by Ville Aakko on Thursday October 27th 2016, 13:17
There is some regression ... somwhere (newer SC2 or nwere wine?). After months of non-playing, the performance in StarCraft II is now abysmal - i.e. non-playable. I get 5-10fps if I start any mission at medium details (1080p), didn't even bother to try any further - on quite decent hardware:

i7 4790k
GTX 970
8GB of RAM
nvidia proprietary drivers 370.28-2
wine-staging-1.9.21-1
Arch Linux

If I turn details to low, I get ~30FPS. I used to get more than playable FPS at high or ultra waaay back... maybe 6-12 months ago. That was on a 32bit wine install, though, but I needed to wipe out ~/.wine and re-install battle.net since the 32bit version refused to run at all anymore.
RE: Low FPS
by Ville Aakko on Thursday October 27th 2016, 16:19
I tried to enable CSMT (in wine-staging) and although did improve things, but just a little bit (maybe like 8FPS->15FPS). Performance is nowhere near where it should be and used to be (even without CSMT - at least I do not remember ever enabling it before!).

I tried some other demanding games (like Bioshock Infinite - native in Linux) to rule out some weird HW issue, and everything seems to work properly (didn't try other Wine games, since I haven't gamed via wine in the recent times at all so I don't have any installed ATM, so I'm not sure if it is just wine or just SC2).
RE: Low FPS
by Ville Aakko on Tuesday November 1st 2016, 13:55
It is possible you have the same problem as I do, but I've figured out I get a massive FPS improvement if I set WINEDEBUG="-all". Without that I get around 1/6th of the FPS than I get with WINEDEBUG="-all".

Now I get mostly constant 60FPS (probably capped by vsync, which I have on) at ULTRA graphics settings. So I'm happy =).

Btw. search for "WINEDEBUG" on this page for the comment from 2013, this may be related. Maybe the staging patches have propagated further?

If this is affecting multiple users, maybe this should be added to the top of the page?

There are still some slowdowns, which I didn't get before - mostly when portraits come on screen, and during some cutscreens (like exploding vespene fissures at a protoss proloque mission). But they don't impact gameplay, unless you are playing competitively online vs humans. Also, I get similar slowdowns at some Linux native games, too (which weren't there before), so it may be some kind of bug in NVidia drivers (it is as if something, that should be in RAM/VRAM, is not there and is being extracted / moved around when it is actually used - there is a 'jerk' when this 'something' is processed).

p.s. I figured this WINEDEBUG thing out by using Battle.net via POL... I noticed that I get decent frame rates even with the system wine version via POL. Then I tried with plain wine with the WINEPREFIX dir created by POL - and the slowdown was still there. It was easy to look at the shortcut, what is the remainig difference in how Battle.net was launched - and really WINEDEBUG was the only one I could find, and seems it the actual cuplrit currently.

by enthusiasm on Wednesday August 24th 2016, 8:27
Hi guys!

System: Linux debian 3.16.0-4-amd64
Wine-Version: 1.9.7

I installed vcrun2015 via winetricks and added mscvcp140 and vcruntime140 via winecfg. For that I had to install winbind and cabextract via apt-get install. Then the logs showed that wininet produces a lot of error, so I installted wininet via winetricks. After getting some d3* errors I installed all d3*-dlls via winetricks.

Currently the Battle.net setup still crashes during installation:
pastebin.com/MUyTk6eF

does anyone has some hint for me?
Thanks in advance!
RE:
by enthusiasm on Wednesday August 24th 2016, 8:30
Also getting this error message:

GIF89aÇ    ,D;fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits)").
RE:
by arkahys on Sunday September 11th 2016, 16:45
mscvcp140 ... no msvcp140
this is typo error.
Some issues
by HellBat on Sunday August 21st 2016, 9:29
I'm using wine 1.9.16 with xubuntu 16.04 and Starcraft works with the configuration mentioned in the aditional comments but, when I try to close the game get stuck, every time I do alt+tab the game simply vanishes and when I try to play again an arcade game it simply doesn't work I have to reopen the game every time I want to play. Does anybody know anything that could help me?
RE: Some issues
by Andrew Smart on Sunday August 21st 2016, 11:00
I think everyone experiences the first issue you mentioned.

I've never had the alt-tab issue you mentioned. A couple tips:
1) you could try disable compositing. xubuntu may be using a lean/minimal compositor- so disable it before starting the game.
2) running the game in a separate X-server will work: forum.winehq.org/viewtopic.php?p=64164
So you ctrl+alt+F7 to get back to your desktop, then ctrl+alt+F8 to get back to your game. This is instead of alt-tabbing.
RE: Some issues
by HellBat on Monday August 22nd 2016, 18:21
Thanks for the answer.
I did remove the compiz package and now the alt+tab works fine.
Crash every time I start a game
by Carbone on Thursday August 11th 2016, 16:35
SC2 crash every time I start a game.

Here are my specs :
64bit SC2 LotV
Ubuntu 16.04.01 64bit
Linux version 4.4.0-34-generic
Wine 1.9.15
16GB RAM.
Videocard GeForce GT 630
Video driver Nvidia 361.42
In-game graphics settings: low

My winecfg is set with :

api-ms-win-crt-runtime-l1-1-0
api-ms-win-crt-stdio-l1-1-0
api-ms-win-crt-time-l1-1-0
api-ms-win-crt-locale-l1-1-0
api-ms-win-crt-heap-l1-1-0
api-ms-win-crt-convert-l1-1-0
ucrtbase
vcruntime140
dbgeng
dbghelp
mshtml
msvcp140


Set each to native, builtin with Windows 7 version

Thx for the help
Battle.net.exe CPU usage
by Andrew Smart on Wednesday August 3rd 2016, 10:13
Battle.net.exe continues to run in background eating up a core, same with wineserver64, Agent.exe, and Battle.net Help. That's 4 of my 6 cores eaten while a game updates.
cpulimit -l 1 -p on each worked and GUI is still responsive. When game is running Battle.net.exe still eats a core so cpulimit -l 1 slows it down (and frees up wineserver64 to better serve the game).

I also ran into the wait for critical section bug in Ryan's Aug 1 2016 test (due to unreleased semaphore). Terminating all exe's and wine processes, then restarting solved the issue. The bug occurred to me with the Battle.net.exe GUI, clicking pause/resume on an update quickly.
RE: Battle.net.exe CPU usage
by Ryan on Wednesday August 3rd 2016, 17:07
What version are you running? I've restarted before and I'm getting the same error with 1.9.15 /w csmt

I also get the same error with 1.9.13 /w csmt after downgrading package.

I guess I need to kill all exe processes BEFORE restarting perhaps?
RE: Battle.net.exe CPU usage
by Andrew Smart on Thursday August 4th 2016, 12:44
I'm using wine-development 1.9.14-1 though Debian. It's not clear to me if that has CSMT enabled; I don't see a tab for CSMT in winecfg.
Kernel: 3.16.0-4-amd64
GPU: NVIDIA [GeForce 9800 GT] (rev a2)

Are you even seeing the Battle.net GUI? To be clear I meant restarting the Battle.net app, as buttons and such became unresponsive when waiting on that critical section. If I killed it then restarted it without killing all exe's and wine processes then it would still be stuck on that critical section (unreleased semaphore/mutex/whatever).

You've probably even restarted your computer by now so I'm guessing you're encountering a different issue than I did:
err:ntdll:RtlpWaitForCriticalSection section 0x197c6c "?" wait timed out in thread 0073, blocked by 0050, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x197c6c "?" wait timed out in thread 0073, blocked by 0050, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x197c6c "?" wait timed out in thread 0073, blocked by 0050, retrying (60 sec)
...

The issue I encountered may have been a logic bug in their app and not wine.
Battle.net update 2016-07-26
by Eivind Larsen on Wednesday July 27th 2016, 14:17
As of 2016-07-26 update to battle.net, you need vcrun2015 installed to start battle.net launcher. Install with winetricks vcrun2015
RE: Battle.net update 2016-07-26
by Ryan on Tuesday August 2nd 2016, 17:09
Going to test this, but before I do since I'm not home just yet, are you using wine --version = 1.9.15?
RE: Battle.net update 2016-07-26
by Jason Alan Palmer on Tuesday August 2nd 2016, 17:33
Alternately, since Battle.net ships with vcruntime140 included, it should also be enough to add an override for it, as documented above.
RE: Battle.net update 2016-07-26
by Ryan on Sunday August 14th 2016, 23:46
amazing! installed vcrun2015 through winetricks and bnet started up just fine! still needed dll overrides with it though

by Galym Kerimbekov on Friday July 22nd 2016, 5:40
I up-to-date my StarCraft II and get broken game with blur instead of menu i.imgur.com/fV8Jsie.png
now game version is 3.4.0.44401
Anyone had same issue?
RE:
by Robert on Tuesday July 26th 2016, 9:32
I've the same problem .. no menu. If I get by luck into the game the normal view part works but nothing in the boxes on the bottom is shown.
RE:
by Starfall on Sunday July 31st 2016, 16:24
I had the same issue and it seems to be an issue with the 32-bit client. I created a new 64-bit prefix and it works now.
RE:
by Robert on Sunday August 7th 2016, 1:24
Also tested it. with 64bit everything works.
Definitely use CSMT
by Ryan on Tuesday July 19th 2016, 0:48
For good performance, one should use wine-staging with CSMT enabled for sure! The difference is night and day
RE: Definitely use CSMT
by Hugo Osvaldo Barrera on Tuesday July 19th 2016, 10:00
From what I've read, CSMT is included since version 1.9.10 (my distro currently ships version 1.9.13), so there's no need for wine-staging, just enabling CSMT.
RE: Definitely use CSMT
by Sergej on Thursday July 28th 2016, 11:44
Well, it's true for fedora, for example.
You can install wine package from default repo, which is a wine-staging, but a bit outdated. It's just named wine, but not a vanila wine.
NOTE: there is no vanila wine in fedora repo.
Arch distro have both, wine(vanila from winehq, no csmt included) and wine-staging as a separate package.
Replays don't work
by Maldun Finsterschreck on Wednesday July 6th 2016, 2:36
Hi!

I use latest wine on Fedora 23 64-bit, Nvidia graphic card. Starcraft version is legacy of the void latest version as we speak (I think 3.2.2)

Since recently I encounter the issue that replays won't work. They are saved properly, and I can browse through them, but there is no data displayed, and starcraft tells me it can't open them.

To me this looks like a file system problem. Has anyone experienced this?
RE: Replays don't work
by Maldun Finsterschreck on Wednesday July 6th 2016, 2:40
Exact wine version is 1.9.12
Crash on starting ladder game
by Dominik S on Wednesday June 29th 2016, 14:23
SC2 was crashing to desktop on the loading screen as I was starting ladder games (tested mostly on 2v2s).

64bit SC2 LotV
Linux Mint 17.3 64bit
Wine 1.9.13

However, I was able to fix this via installing (via apt-get):
* libp11-kit-gnome-keyring:i386
* p11-kit-modules:i386
* winbind

I am also running on default libraries (no overrides whatsoever).
RE: Crash on starting ladder game
by Sergio Salinas on Saturday July 16th 2016, 4:30
Can you solve it?
Performance since last update
by Hugo Osvaldo Barrera on Monday June 20th 2016, 14:46
After the recent game update (a few days ago, can't recall when), I saw a huge performance drop in. It was extremely noticeable and i was forced to reduce graphic settings (those affecting CPU) from High to Medium to have the same performance I used to.

Has anyone else had this issue? I believe that the game update was the only recent change.

Note that CPU usage is ~40% and 70% on two CPUs, while the other 6 sit idle.
RE: Performance since last update
by Ryan on Monday July 18th 2016, 23:52
I've noticed this as well, I have a GTX 1070 and can still see low fps on all settings essentially.
RE: Performance since last update
by Ryan on Tuesday July 19th 2016, 0:50
Sorry, figured out why mine was slow, you should be using wine-staging with CSMT enabled. Should fix the low fps, it did for me. I was using it before but forgot I reinstall my root and formatted my home and somehow forgot that I had enabled CSMT in the past and forgot this time... lol
Freezes after game exit.
by Shu on Monday June 13th 2016, 17:23
I'm having a problem where it frees the whole X session after exiting the game. During play it seems ok, but when i leave I need to go to another screen and restart X. It's OK if just run battle.net then exit, but if I go into the game and come out it freezes.

I'm currently running FC23 with playonlinux and using 1.9.10 staging.

Thx
RE: Freezes after game exit.
by Robin on Monday June 13th 2016, 20:10
Similar thing here with 1.9.11 devel, Ubuntu 14.04 x64. After updated to 1.9.12 devel today, it freezes even during the gameplay. Unfortunately, I don't have another screen to work on, so I have to press the little reset button and let the machine reboot. I thought it was my machine's idiosyncratic problem but now seems isn't.
RE: Freezes after game exit.
by Casey on Saturday June 18th 2016, 9:37
Robin,

This won't solve anything, but it would prevent you from having to hard boot...

Either switch to a different terminal using Ctl-Alt-(any function key up to F6). My graphical terminal is F7... your's may be different. Or you could enable another workspace and hotkey over to it when the game freezes. That's what I've been doing.
RE: Freezes after game exit.
by Casey on Saturday June 18th 2016, 9:32
Exact same problem here. Kubuntu 16.04 x64, Wine 1.9.12. Gameplay is fine until I hit exit game... then it just locks into place. Tried killing all referring processes. Had to kill Wine. Even then I think something keeps control because my CPU and GPU temps stay hot. I end up having to restart.

Another issue I noticed was that no menus in Battle.Net work. Had to get to settings via the friends listing dialog box. Buttons work... 'News', 'Store', and all that but not menus.
RE: Freezes after game exit.
by Robin on Saturday June 18th 2016, 20:29
Thanks for the last tips! I really wish to know how to fix that freeze problem.

As for your menu issue, I don't know exactly what it's about, but one known issue is that the menu won't show until you move down your mouse after clicking.
RE: Freezes after game exit.
by Felipe Delestro on Saturday August 6th 2016, 12:55
Hello,

I was having the same freezing problem when exiting. Seems like if you first logout, and then exit, it solves the problem and quits normally.

Using wine-staging-1.9.13 32bit on PlayOnLinux here.
Crashes after a few seconds after match starts
by Oriol on Tuesday May 31st 2016, 13:19
I used to be able to play SC2 without any problem. However, not sure what Ubuntu upgraded a couple of days ago that now the game crashes after a few seconds (~10) after a match has started.

I've tried with wine 1.9.10 and 1.9.11 (both with and without staging). Same happens every time.

Any ideas on how to fix that?

Here are some of my specs:

- Ubuntu 16.04
- 16GB RAM.
- Videocard GeForce GT 730.
- Video driver Nvidia 361.42 from nvidia-361.
- in-game graphics settings: medium.
- Wine 1.9.11/1.9.10 (I've tried both with and without staging)

Thanks!
RE: Crashes after a few seconds after match starts
by termac on Saturday June 4th 2016, 4:46
This could be related to too high Graphic settings in combination with the 32 bit Client of Starcraft. Best solution would be to use the 64 bit client (select in Battle.net App or launch Support64/SC2Switcher_x64.exe from the SC2 installation directory) if you are for some reason stuck with the 32 bit Version, try setting Texture Quality and/or Shaders in SC2 to low.
RE: Crashes after a few seconds after match starts
by Oriol on Tuesday June 7th 2016, 23:35
I'm using the 64 bit client. Moreover, I've tried setting all the graphics levels to low and it still doesn't work. After a few seconds of playing, the whole program crashes. Any other suggestion? Thanks!
RE: Crashes after a few seconds after match starts
by David Brooks on Tuesday June 7th 2016, 23:38
I had a problem like this that was related to my video card overheating. Turns out one of the fans on the GPU had died and it was getting up to 97c. After I replaced the bad GPU fan the video card no longer overheated and SC2 ran fine.
RE: Crashes after a few seconds after match starts
by Oriol on Wednesday June 8th 2016, 0:03
That's weird. My card is quite new and, according to nvidia-settings, it's at ~59 degrees C at the moment of the crash (just re-checked right now), which should be a near optimal temperature. Thanks for the suggestion, though! Anything else you think I could check?

Also, is there any way I can see the error message from the crash? Any logs I could check?

Thanks!
RE: Crashes after a few seconds after match starts
by termac on Wednesday June 8th 2016, 0:44
For wine debugging there is the environment variable "WINEDEBUG". You can launch sc2 with e.g. "WINEDEBUG=all wine ..." from a terminal and have a look there.

Starcraft 2 itself stores it's logfiles in "Starcraft II/GameLogs", which is located inside your wine/windows user dir.

Another thing to try is, in case you are testing with custom games or ladder maps, to play the Campaign and see if it crashes there. Or the other way around in case you have crashes in Campaign maps.
RE: Crashes after a few seconds after match starts
by Oriol on Thursday June 9th 2016, 1:47
For whatever reason, after following the next steps everything went back to normal and I can play the game again:

- I launched sc2 with "WINEDEBUG=all ..."
- I played a campaign game (first level of LotV on Brutal), and everything worked.
- I played a multiplayer game, unranked, choosing Random and everything worked (that's when the crash usually occurred).
- I set the parameters to Medium and High (Textures).
- I played another multiplayer game, unranked, choosing Random and everything worked.
- I quit and relaunched from the command line without the WINEDEBUG variable
- I played a multiplayer game, unranked, choosing Random and everything worked.
- I quit and relaunched by double-clicking the Starcraft 2 icon I have on my desktop
- I played a multiplayer game, unranked, choosing Random and everything worked.

So, not sure what is it that I did, but now I can play again, with High settings, and it runs beautifully smooth. Notice that I haven't restarted the machine nor updated any packages since the last time I tried (yesterday). The science of computer science...

Thanks for your help!
RE: Crashes after a few seconds after match starts
by Oriol on Friday June 10th 2016, 19:40
Ok, I tried again today and same problem happened. The WINEDEBUG option didn't really return anything, I think that's because I'm using PlayOnLinux. Maybe the whole problem is the PlayOnLinux thing?

Thanks!
RE: Crashes after a few seconds after match starts
by termac on Saturday June 11th 2016, 5:00
So I assume it crashed again, during a ladder game. I get occasional crashes too and have not find the cause. What worked for me 100% of the time as work around is the following.
When I start SC2 I got to the Campaign screen, and go the master archive. After that is finished loading and you see the menu with missions to select, I just leave it (click cancel) and then can play any amount of Ladder games without SC2 crashing. I know it sounds like vodoo, but for me it always works.

Regarding the WINEDEBUG output, that might be related to Playonlinux.
You need to call wine directly from the command line with the environment variable WINEDEBUG set.
In your case you also need to figure out which version of wine Playonlinux is using and use that one in your call.
Additionally Playonlinux uses a seperate wine prefix which must be specified in the environment variable WINEPREFIX.
Depending on how comfortably you are with handling these things, it might be easier to try with vanilla wine (or better wine-staging for the csmt patches).

The other source for debug output are the log files SC2 creates on a crash itself. It creates a seperate folder for each crash with detailed information in the folder I mentioned in a post above.
RE: Crashes after a few seconds after match starts
by Oriol on Saturday June 11th 2016, 20:41
This totally worked! Thanks a ton!

PS: Haven't checked the log files, but I managed to "try" to run the game with WINEDEBUG=all, but there were thousands of output lines and the game never really start. I am definitely a newbie in terms of wine, and not comfortable at all debugging this.
RE: Crashes after a few seconds after match starts
by Sergej on Tuesday July 12th 2016, 1:34
This voodoo works for me too.
Thank you!
RE: Crashes after a few seconds after match starts
by chris on Sunday June 19th 2016, 11:17
Apparently, I also have these crashes. All versions above Wine-Staging 1.9.8 are crashing at the beginning of the game, in about ~15 seconds.

I tested it with PlayOnLinux and directlty with Wine itself through Terminal. These crashes are appearing at 32bit and 64bit. I'm using Ubuntu LTS 14.04 and an proprietary Nvidia driver with the version 352.63 (latest).

If I use Wine-Staging 1.9.8, all works flawlessly at ~200 fps.
But if I use Wine-Staging 1.9.12, I have ~300 fps. With low settings.
RE: Crashes after a few seconds after match starts
by Aleks on Wednesday July 13th 2016, 18:37
Changing wine to 1.9.8 fixed may starcraft 2 Legacy of the void version 3.4.0 to work again. Used to crash after match start.
RE: Crashes after a few seconds after match starts
by David on Tuesday July 19th 2016, 20:48
I had the same issue. The game crashing 15 seconds after the start of a match. The following command fixed it for me.

winetricks corefonts vcrun2005 vcrun2008

It installs some libraries needed for the game. You need to have winetricks installed on your system.

My setup is
Ubuntu 16.04 (minimal installation) 64-bit
Wine 1.9.14 (staging)
Voice and subtitle would go much faster than the cinematic.
by Sethan on Saturday May 21st 2016, 10:18
Hi,

I played "Starcraft II Heart of the Swarm" last night.
I could see clearly that, during the cinematic play,
the voice and subtitle would go much faster than the cinematic,
especially if it is a long cinematic one.

- Kernel 4.4.0-22-lowlatency (Ubuntu Studio 16.04).
- CPU AMD Athlon 64 FX-60 Dual Core.
- 4GB RAM.
- Videocard GeForce GTX 750 Ti.
- Video driver Nvidia 361.42 from nvidia-361.
- FPS during Cinematic was too vary.
- in-game graphics settings: high.

- Wine 1.9.10
Core usage
by chris on Tuesday May 17th 2016, 13:48
After running the game with 2 cores instead of 4 cores, I found out that the game is way more stable and have an fps improvement of ~15 fps. I used taskset. Try it out.

- taskset -cp 0,1 "path to wine" "path to starcraft exe"

However try to set it to only one core or 3 cores, maybe this is better for your system.
Game crashing while playing
by HellBat on Saturday April 16th 2016, 14:26
Hi I'm running SC2 with wine 1.9.7 and Debian strethc/sid kernel 4.5.0-trunk-amd64 game is running better then it was when using POL, but now I have two issues while I'm playing game simply crash and hang on exit.
I've already installed winetricks corefonts and others stuff in the library tab there is configured
atl80, atl90, msvcm80, msvcm90, msvcp80, msvcp90, msvcr80, msvcr90, vcomp and vcomp90. All native and built-in. I'm wondering if I can get any help about this.

Thanks
RE: Game crashing while playing
by HellBat on Monday April 25th 2016, 7:45
I've been searching for solutions to this problem, so I find at the gamelogs lots of files referring to D3D9 Reset, so I added to winecfg libraries the d3d9, d3dx9_43 and mshtml, the graphics are better, game FPS increased and no more crashing at least till now. I'll be watching to see if the problem continue happening and if I find something I'll add here.
Sound randomly stops working??!
by NothingSerious on Friday April 8th 2016, 6:08
Hey, after I installed wine version 1.9.6 (staging, see below) I am able to run StarCraft II again, unfortunately after a while my sound randomly stops working.

Sometimes preceding by a very short and tiny cracking noise.
The really strange thing is, that until the sound stops, its working perfectly fine!

ANY idea by what this can be caused?!

wine 1.9.6 (staging)
(T)ubuntu 12.04
StarCraft II: 3.2.1

I have pulseaudio installed (which I don't like) and before StarCraft 2 was updated to 3.2.0 everything was running smoothly without pulseaudio (but ALSA, which I prefer).

Any idea what I could do? It is very annyoing because I've never ever had any sound related problems before.
Also, mb worth to mention: 1. I am not the only one having sound issues with wine and this version of SC2 and also
the sound stops to work within ~20-30(+) sec after the game is loaded. So the sound stops working even within
the menus. ANY help would be greatly appreciated. And plzz Blizzard do a Linux port plllzzzzz!
RE: Sound randomly stops working??!
by NothingSerious on Sunday May 1st 2016, 9:43
Ok, hey there wine developers.
I just wanted to say a BIG thank you!
I do not know what you did, but after I've downloaded the latest wine update (1.9.8. staging) the sound seems to be working fine again.
Thank you so much! I've tried a lot of tweaking for the past 3 weeks and nothing seems to work, but the latest update as it seems.
Thank you!
Screen freezing/unable to play after patch 3.2.0.41743
by NothingSerious on Thursday March 31st 2016, 6:35
Hey, as mentioned in:
us.battle.net/sc2/en/forum/topic/20742865948#1

(and two other threads there as well) I have the same problem.

I can load the game, but the moment a custom map is loaded the game
does not respond/screen freeze. I can not even kill the app appropriately.

Any help would be greatly appreciated.

Os: Kubuntu 12.04 (Trinity)
Wine: 1.6.1

Everything was running smooth before!
RE: Screen freezing/unable to play after patch 3.2.0.41743
by shaun rutherford on Thursday March 31st 2016, 10:15
I'm having the same issue, this feels like the same bug that caused Heroes of the Storm to become unplayable a few patches ago. The game can be launched but as soon as you enter a match it freezes. Tried this on Crossover linux 15.0.1, wine-staging and wine 1.9.3. 32 and 64bit were tried.
RE: Screen freezing/unable to play after patch 3.2.0.41743
by Benoit Coste on Thursday March 31st 2016, 17:09
Hi,

Installing wine 1.9.6 and unchecking the checkbox from the battle net launcher: settings->game settings->"launch 32 bit client" did the trick for me.
RE: Screen freezing/unable to play after patch 3.2.0.41743
by Evan Chen on Saturday April 2nd 2016, 8:16
Conversely, *checking* the 32-bit client checkbox (which I had never checked before) did the trick for me. Also on Wine 1.9.6.
RE: Screen freezing/unable to play after patch 3.2.0.41743
by NothingSerious on Monday April 4th 2016, 16:10
Hey, thanks for the Feedback.

I think I can confirm this as well. Having wine 1.9.6 (Staging) installed, the game works as well. Don't have sound atm, but I assume that is an unrelated problem.
network bug after game update 3.2.0.41743
by Aleks on Thursday March 31st 2016, 4:57
After latest Blizzard update of StarCraft2 my client does not connect to their servers. It gives me error
"Can't connect to battle net
Battle.net may be temporarily unavailable or your internet connection may be down. Please check your connection and try again."

I have copied working game files from Windows installation, and Blizzard servers are not the problem.
Before the update I had no issues playing.

Mint Quiana, Wine 1.6.2
RE: network bug after game update 3.2.0.41743
by Jason on Thursday March 31st 2016, 21:30
Me too. I just recently installed and updated of course to game update 3.2.0.41743 and as soon as I start SC2 the network goes down. I have access to download/update until I start SC2 and then I get
"Can't connect to battle net
Battle.net may be temporarily unavailable or your internet connection may be down. Please check your connection and try again."

openSUSE 42.1 wine 1.7.39
RE: network bug after game update 3.2.0.41743
by Aleks on Friday April 1st 2016, 10:05
Interesting.
I use PlayOnLinux and actually I was running SC2 with wine 1.9.1.
Changing that to 1.9.6 did not help me.
RE: network bug after game update 3.2.0.41743
by mathijs on Friday April 1st 2016, 16:23
I have the same issue, using wine 1.8, 1.9.6-staging and via Play on Linux using 1.9.2 staging I can't connect to battle.net.
RE: network bug after game update 3.2.0.41743
by mathijs on Friday April 1st 2016, 16:30
This is probably because launching sc2switcher no longer works. See here: us.battle.net/sc2/en/forum/topic/20742835707

Starting Starcraft through the battle.net launcher works fine.
RE: network bug after game update 3.2.0.41743
by Aleks on Saturday April 2nd 2016, 5:43
Yay, thank you. It started and authenticated now.
Now it crashed when I started the match. Lets see what is in the other threads about this.
RE: network bug after game update 3.2.0.41743
by Aleks on Saturday April 2nd 2016, 10:09
OK, I managed to fix my game:
In PlayOnLinux, I clicked Install a Program (+ sign) and added Battle.net. After successfull installation I was sure to setup the "dbghelp" override to disabled.
I added the starcraft2 install folder to the battle net launcher and it works now.

The problem before was that I was starting bNet and SC2 via double click on exe files and those used my default wine 1.6.2 prefix.

PlayOnLinux has other prefixes, now two for me: one for bNet and another for SC2 WoL.

gl hf
StarCraft II crashes with wine 1.9.2 staging, fine with plain 1.9.2
by Matthew Krafczyk on Sunday January 24th 2016, 7:21
StarCraft II Crashes now with wine 1.9.2 staging. this happens for both the 32 and 64bit versions, and whether or not you have CSMT enabled.

It runs fine with plain 1.9.2, and the 32bit version runs fine with 1.9.1 and 1.9.1 staging.

I've opened a bug here: bugs.winehq.org/show_bug.cgi?id=40032
RE: StarCraft II crashes with wine 1.9.2 staging, fine with plain 1.9.2
by Matthew Krafczyk on Sunday January 24th 2016, 14:37
A new patch is in wine-staging 1.9.2 which fixes this issue. StarCraft 2 now launches normally.

by a "zaggynl" z on Friday January 22nd 2016, 15:29
Found the cause for my crash:
appdb.winehq.org/objectManager.php?sClass=version&iId=20882&iTestingId=92321

For Diablo 3 I changed /etc/pulse/daemon.conf default-fragment-size-msec to something below 5, this made Starcraft 2 crash with the mentioned error.
Works again after changing it back, however sound gets garbled in Diablo 3.
So change the mentioned value to 5, run pulseaudio -k and then sudo service pulseaudio start.
Workaround for Diablo 3: change the Sound Channels dropbox in sound options in Diablo 3 to something else, it will temporarily fix it.
RE:
by a "zaggynl" z on Sunday January 24th 2016, 13:36
To add to that, Starcraft 2 still crashes once Skype or qtox is started.
RE:
by a "zaggynl" z on Wednesday January 27th 2016, 7:09
Workaround using superuser.com/a/832459.
64 bit client now running
by termac on Tuesday January 12th 2016, 4:53
Wine 1.9.1 fixed the crash on startup with the 64 bit client. (see here bugs.winehq.org/show_bug.cgi?id=39454#c27 )

There remains an issue with setting shaders to anything but low.
This can be worked around for now with setting a dll overwrite for msvcr100.dll as described in this seperate bugzilla entry bugs.winehq.org/show_bug.cgi?id=39954#c6 .
RE: 64 bit client now running
by Jason Alan Palmer on Tuesday January 12th 2016, 19:32
Thank you for the update! I have modified the relevant note.
RE: 64 bit client now running
by termac on Wednesday January 13th 2016, 9:51
Thank you for updating the notes. The 64 bit client fixes all issues regarding crashes with higher graphic settings. Maybe you can mention that there, so people know it is worth trying the 64 bit version.
RE: 64 bit client now running
by Jason Alan Palmer on Friday January 22nd 2016, 14:45
Good point! I have updated the notes again.
About issue 8060
by Hugo Osvaldo Barrera on Wednesday November 25th 2015, 0:29
There's a note on top about issue 8060, and `winetricks corefonts` being required.

I've played the entire game (passing the mentioned scenario multiple times) without this happening. Maybe this is no longer applicable to sc2? Or somehow fixed?
RE: About issue 8060
by Hugo Osvaldo Barrera on Wednesday November 25th 2015, 0:30
My comment applies to HoTS and LoTV.
RE: About issue 8060
by Jason Alan Palmer on Wednesday November 25th 2015, 8:21
Thank you, this is good to hear. They must have fixed the font loading in SC2. I will try to confirm this later today and remove the bug link and note.
RE: About issue 8060
by Jason Alan Palmer on Wednesday November 25th 2015, 8:57
Confirmed
After Alt+Tab, Alt gets stuck
by Thomas Ross on Sunday November 22nd 2015, 13:29
Sometimes if you alt tab out of the game and then return back to the game, the game thinks that alt is being pressed.

This can be worked around by pressing alt before issuing commands when you return to the game.
Battle.net CPU usage
by Tom B on Friday November 20th 2015, 12:56
For me if I leave the Battle.net launcher open in the background it will eat CPU usage, one core will constantly be at 100% load after it's been open a while (it doesn't do it straight away). Needless to say, closing it and launching Starcraft II.exe directly has a slight performance gain
Quality
by illich on Saturday November 14th 2015, 5:51
same for me (kubuntu 14.10, nvidia card with 2gb)

Extreme quality, ultra textures: crash at the beginning of first level.

High quality, ultra textures: level starts, crashes after few minutes.

High quality, high textures: completed level, crash after score screen.
RE: Quality
by Steven Mercurio on Thursday November 19th 2015, 0:11
I also had MUCH better success with the game when I dialed the graphics doen to medium and ran "StarCraft II.exe" directly.

Blizzard needs to work with WINE HQ to fix the 64 bit client ASAP to solve these issues.
RE: Quality
by Sergej on Sunday February 21st 2016, 9:05
AS for me, it's hardly depends on CPU.
I've tried on these pcs:
1) A4-5300 + nvidia GTX 750Ti manjaro current
2) i7-4510U + nvidia 840M fedora 23

Playing on "medium" I found desktop(1) to crash after mid 2 games, while on notebook(2) I can play 1x1 tournament - about 5 games in common.

Also, playing 1Ñ…1 makes it crash less often than 3x3.

Setting quality to higher values crashing game 3x3 almost every loading on both pcs and 1x1 every 2nd game while playing.

Setting quality to lower values makes game looks like SC1, and this is not cool.
Legacy of the Void campaign crash
by treba on Friday November 13th 2015, 9:35
When starting the lotv campaign, the game crashed for me.
The fix was that i had to set the texture quality down from ultra (low works, didn't yet test the other options).
I guess with textures set to ultra, the app exeeds the memory limit for 32-bit in missions with so much stuff.

Hope that helps people with similar problems.

Hardware: Ivybridge with 16gb, 2gb for vram, not set in regedit.
RE: Legacy of the Void campaign crash
by Noam Mor on Sunday November 15th 2015, 7:42
Same here. Immediate crash after the LOTV campaign opening video with textures set to Ultra. Lowered them to High, it works again.
Legacy of the Void won't launch
by Bryguy on Wednesday November 11th 2015, 9:16
Just patched to purchased Legacy of the Void and it won't launch for me at all whether I choose 32 or 64 bit. I was able to run the beta with no problems. wine-1.7.50 on ubuntu 64 bit.
RE: Legacy of the Void won't launch
by Bryguy on Wednesday November 11th 2015, 9:48
Never mind it works now, I was setting Heroes of the Storm to 32 bit by mistake instead of Starcraft II. Sigh.
RE: Legacy of the Void won't launch
by Noam Mor on Sunday November 15th 2015, 7:32
Same here. Immediate crash after the LOTV campaign opening video with textures set to Ultra. Lowered them to High, it works again.
Game crash on loading screen
by Lonk on Wednesday November 11th 2015, 4:49
While the game appears to always be crashing on the end of the loading screen with the error.

mmap() failed: Cannot allocate memory

It actually appears this is as it sounds a memory allocation error, possibly with 32bit. Dropping all settings to lowest allows training games vs AI to load correctly. But not campaign.

By the looks of it anything going over 4GB of memory (32bit max), causes the error to throw and the game to crash.
Connect Button does nothing
by vexorian on Tuesday November 10th 2015, 9:35
I manage to open the game, past loading screen it gives a login form. I click "Connect" and nothing happens.
Version 3.0.1.38535 working great again
by Matthew Krafczyk on Sunday October 18th 2015, 16:03
After updating to wine-staging 1.7.53, and getting the 3.0.1.38535 patch installed automatically via battle.net, I'd like to report that SC2 is working great again! I haven't encountered any crashes even after several missions.
RE: Version 3.0.1.38535 working great again
by Hekar K on Thursday October 22nd 2015, 12:33
Upgraded to Wine 1.7.53. Still crashing on patch Starcraft 3.0.2.38624. 32bit client starts, but has texture issues (same as 1.7.52.)
RE: Version 3.0.1.38535 working great again
by Eivind Larsen on Wednesday November 4th 2015, 13:17
After 3.0.1 SC2 client is almost unusable to me. Usually crash on launch or before a game can start.
Patch 3.0 - crashes on launch
by illich on Sunday October 11th 2015, 2:11
Hi,
after upgrading SC2 to patch 3.0 version, it started crashing on launch every time :(
SC2 LoTV beta (version 2.5.x) works fine.
Does 3.0 work for you, guys?

---
Ubuntu 14.10, upgraded up-to-date, Nvidia.
RE: Patch 3.0 - crashes on launch
by Matthew Krafczyk on Sunday October 11th 2015, 5:22
It crashes for me too.

running either the 32bit version of SC2 in 64bit wine, or installing SC2 in a win32 wineprefix will allow the game to launch, however I've found that depending on the mission and units you are using, the game will crash very often. It's nearly unplayable like this.
Workaround for "Blizzard Entertainment\StarCraft II\msvcr71.dll" could not be found error
by Florian on Saturday September 5th 2015, 6:39
When I tried to install Starcraft II via the Battle.net client I got an error telling me that "Blizzard Entertainment\StarCraft II\msvcr71.dll" could not be found.

I worked around this issue by creating a symbolic link at the location where it was looking for it to the location where the file is located:

cd ~/.wine/drive_c/Program Files (x86)/
mkdir 'Common Files'
cd Common\ Files/
mkdir 'Blizzard Entertainment'
cd Blizzard\ Entertainment/
mkdir "Starcraft II"
cd Starcraft\ II/
ln -s ~/.wine/drive_c/windows/system32/msvcr71.dll .

The installation process started and seems also to remove the created file and folders automatically.
32-bit client.
by NothingSerious on Tuesday September 1st 2015, 16:59
Thanks for that hint. Might have saved me a lot of time. Works exactly as menioned/supposed to be. Nice!
Issues with nvidia
by Hugo Osvaldo Barrera on Sunday July 12th 2015, 23:42
The game works perfectly at lowest settings on an Intel HD 5000, but with the same settings on an nvidia gtx8800 (+Bulldozer FX 8150, 16GB RAM), I get lots of visual artefacts, and occasional crashes in the menu (*never* in-game!).

Is anyone else having these issues? Maybe my card is too old and has some drive issues or alike? :(
Tweaks that I've done
by Ryan Matte on Monday June 15th 2015, 9:05
The following are the tweaks that I made to get SC2 running/looking as good as possible under wine:

Execute: wine regedit

Create HKEY_CURRENT_USER/Software/Wine/Direct3D (if it doesn't already exist).

Right click and select New -> String value. Name them as follows (as set the string value as follows)...

DirectDrawRenderer opengl
Multisampling disabled
OffScreenRenderingMode pbuffer
UseGLSL disabled
VertexShaderMode hardware
VideoMemorySize 1024 (set this to correspond to the amount of video memory on your graphics card).

UseGLSL disabled had the most dramatic effect on performance. If I enabled medium shaders in game without that option the performance was horrible. After I set that I could enable medium shaders no problem.

The in-game video settings that I am using are as follows:

Texture Quality: High
Graphics Quality: Custom
Shaders: Medium
Lighting: Low
Shadows: Medium
Terrain: Medium
Reflections: Off
Effects: Low
Post-Processing: Low
Physics: Low
Models: High
Units Portraits: 3D
Movies: High

These options work best for me. You'll probably have to tweak them depending on how powerful your PC and graphics card are.
RE: Tweaks that I've done
by brogcb on Sunday October 4th 2015, 8:47
Setting "UseGLSL disabled" got the Battle.net screen black. Setting it to "enabled" made it work again. Just in case someone runs across the same issue.

Using Intel GFX by the way.
Single Player campaign savegames not working
by Gian Paolo Mureddu on Monday May 11th 2015, 17:55
About a week ago, I fired up SC2 just for kicks and tried to finish the single player campaign, only I was quite surprised with the results: I was not able to load some of the single player savegames I had (in victory screens or Joey Rays/Hyperion/Char), however I was able to load any given checkpoint, only to be greeted with the opening in game cinematic upon completing the maps. So then I thought "this must be a patch [SC2] thing", so I restarted the SP campaign and lo and behold: Savegames are misbehaving: When trying to load an advanced (say fourth mission victory or on the Hyperion) savegame, upon loading I'd be greeted by the same in game opening cinematic, as if I was starting a new campaign... I'm not sure this is a "Wine thing", but rather something different, has anyone encountered this yet?

I run SC2 with wine version "System", which on my Fedora 21 means 1.7.41.

winecfg options:
Graphics:
Capture mouse, allow window manager to manage and decorate windows.

No DLL overrides, Windows version to emulate Win7, default sound driver (which in the case of Fedora means PA driver)

Staging:
CSMT and EAX enabled.

CSMT does INDEED increase the FPS by a fair bit when running in Ultra settings.

Hardware/SW configuration (if it is of any use):
CPU: AMD FX 6100
GPU: nVidia GTX 760 OC w/ 4Gb vRAM
RAM: 16 Gb DDR3 1600 MHz
SSD: Liteon 256 Gb partitioned as / and /home (ext4)
HDD: Seagate 2Tb partitioned for storage and mounted under / for access from all users (btrfs).
Kernel: Linux 3.19.5-200.fc21 x86_64
DE: Gnome [s]Hell
All software updated to latest release versions.
RE: Single Player campaign savegames not working
by moto on Thursday May 14th 2015, 19:12
Is your wine prefix stored on the BTRFS drive? I'm having the same issue on my BTRFS system.
RE: Single Player campaign savegames not working
by Gian Paolo Mureddu on Monday May 25th 2015, 20:20
The prefix is on ext4, BUT the game itself is on the btrfs drive (made available to the main Bnet prefix [where Blizzard gams are "installed"] through symlink. Will try moving the game files to the ext4 drive and try from there.
RE: Single Player campaign savegames not working
by Gian Paolo Mureddu on Monday May 25th 2015, 22:04
No dice, the behaviour is the same. Dunno what might it be at play here, I'd guess it must have to do with the game itself, a patch or even something as silly as a registry key or something like that.
RE: Single Player campaign savegames not working
by YaoMitachi on Saturday June 13th 2015, 9:38
This is happening to me too, and I'm not using BTRFS, it's all ext4. I'm able to properly load any save that's a checkpoint in a mission, but whenever I try to load an autosave from after a mission, or a manual save that's on the ship, it starts me out at the beginning of the game. If I keep playing the game without quitting, there's no issue, only when attempting to load a save. This is driving me crazy!
RE: Single Player campaign savegames not working
by YaoMitachi on Saturday June 13th 2015, 10:54
I use wine-staging, so I submitted a bug there:
bugs.wine-staging.com/show_bug.cgi?id=385
but I'm fairly sure the bug is the same in both versions. If you can get console output from Support/SC2Switcher.exe and submit a bug to the Bugzilla here, it'd be much appreciated. (I need a PulseAudio driver for my sound to work correctly, which is why I switched.)
RE: Single Player campaign savegames not working
by YaoMitachi on Friday June 19th 2015, 20:29
Blizzard suggested I delete the cache, which they said was in ProgramData, but I found it in users/Public/Application Data instead. Deleted the Blizzard Entertainment folder there, loaded the latest mission checkpoint, saved again after that and then I was able to load that save. I'm only mostly sure deleting that folder was the solution, because I also had a Wine update that same day.
RE: Single Player campaign savegames not working
by Gian Paolo Mureddu on Friday July 24th 2015, 21:49
Thanks for the heads up and solution!! I had almost given up on SC2 SP campaign. I'll try this during the weekend.
MacOS requirements
by Davor on Saturday May 9th 2015, 6:18
Is it possible to run it at MacBook Pro 2011, Intel core i5 dual 2.3 GHz, 4GB RAM and OS 10.7.5?
Tried to install Heart of the Swarm using Wineskin 2.6.0 and engine 1.7.40, but didn't work.
RE: MacOS requirements
by Gian Paolo Mureddu on Monday May 11th 2015, 17:37
Why use Wine to run SC2 on MacOS X 1.7+, there's a native client for Lion and up, wasn't there?? OR is the current version only supporting 10.9 and 10.10?
RE: MacOS requirements
by Davor on Tuesday May 12th 2015, 17:29
Not for Lion, AFAIK. I'll upgrade to Yosemite soon but still ain't sure if laptop's hardware abilities will be sufficient (video).
RE: MacOS requirements
by Hugo Osvaldo Barrera on Sunday July 12th 2015, 23:40
I'm playing on a MacBook Air 2013, settings at minimum, at 1920x1080 (external screen).

The game works flawlessly, with no freezes whatsoever. I do stay at the minimum settings, but I don't suffer any slowdowns.

Mind you, my MBA does heat quite a bit though.
Keyboard, chat, hotkey issues
by Darin Avery on Sunday March 8th 2015, 12:29
Using linux mint 17 64 bit. I installed SC2 in a playonlinux drive, and could hit enter to start chat and tab through recipients, but enter only tabbed through as well. Hotkeys for units & buildings didn't work.

Solution is to change your pol drive to 64 bit. I was using 32 bit. So install 1.7.28 64 bit wine, then create the pol drive, move your sc2 files to the new drive, and go. All keyboard problems fixed.
Unable to use shaders on a 280X ...
by Baltazar on Tuesday December 23rd 2014, 15:43
I have just gotten an AMD Radeon 280X and even though the game runs on I am not able to use any of the shader options...

Am lost... don't know what to do...

I am using Play on Linux with wine ver. 1.7.26 on Linux Mint with the proprietary drivers...

Am able to set textures to Ultra as well as Terrain and a couple of others... but not Shaders, Lighting or Shadows...

Am only interested on Shaders... could care less about the rest.

Also the Post Processing is only showing "Low" and "Medium"... not "Ultra"...

Am burned... got the card cheaply ... need to show it was worth it though...

Thanks In Advance!
RE: Unable to use shaders on a 280X ...
by Baltazar on Tuesday December 23rd 2014, 17:18
... I have noticed that performance is just the same that I had before... which is sad considering Am using an A5800K... :(

damn poop...

must be settings...

Strange thing been, I was able to change shaders before on the wimpy APU.... ... I must be tripping... Blah
Cannot Install
by Vladimir Olegshenko on Sunday December 21st 2014, 2:33
We cannot install StarCraft II because your operating system doesn't meet the minimum specs to run it.

Your OS: Windows 2000 Service Pack 4
Minimum: Windows XP Service Pack 2
RE: Cannot Install
by Jason Alan Palmer on Sunday December 21st 2014, 12:10
What version of wine are you using, and what SC2 installer? I just checked, and the installer from the website ( dist.blizzard.com/downloads/sc2-installers/full/StarCraft-II-Setup-enUS.exe ) worked fine in a clean prefix on wine 1.7.31.
unable to play
by Bodanel on Saturday November 15th 2014, 9:06
Hello all

i have the following problem. I launch the enGB installer with the wine Starcraft2-enGB.exe command from the console and the installer starts. I got to the point were game says optimal and played a about 10 minutes. I've exited and let the installer finish. Installer finished but now when I start the game after authentication it starts loading the welcome page and exits. My configuration is this

Fedora 20
kernel 3.17.2-200.fc20.x86_64
driver mesa 10.1.5
GPU radeon R7 260X 1GB RAM
CPU Intel i7 4770
RAM 16 GB

Thks in advance
csmt patch
by Temir Umurzakov on Wednesday November 5th 2014, 13:36
Just applied CSMT patch to old version of wine 1.7.4 and got wonderfull perfomance boost.

git clone source.winehq.org/git/wine.git
git clone github.com/steemandlinux/wine-patches.git

cd wine
git checkout tags/1.7.4
patch -p1 < ../wine-patches/csmt-wine-1.7.4-0.2.patch
./configure && make
make install

HKCU/Software/Wine/Direct3D/CSMT = "enabled"

Source:
www.winehq.org/pipermail/wine-devel/2013-September/101106.html
RE: csmt patch
by Ema on Wednesday December 24th 2014, 3:12
Yes, performance boost is almost +150% (windows like performance).

Still, don't understand why this patch is not being part of mainline, at least in the form of an alternate code path (default off, switch-able on).

Cheers
RE: csmt patch
by Baltazar on Saturday January 17th 2015, 5:28
I tried this but I get a black screen with the game cursor been the only thing visible... game sounds like if running...

:(
RE: csmt patch
by Baltazar on Saturday January 31st 2015, 12:31
well... it seems to be working with 1.7.34-CSMT-cf92569 withing Play on Linux...

Still no shader support on my R9 280X...
Battle.net Visual Mirror Bug
by Misha on Sunday October 5th 2014, 0:13
I believe I have Intel® HD Graphics 2000
Also, Warcraft 3: Frozen Throne does work.
My driver version string:
[ 21.751] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.910-0ubuntu1.1 (Maarten Lankhorst )
Battle.net doesn't start
by Miguel Raggi on Saturday August 30th 2014, 14:37
Recently I launched StarCraft II (which had worked perfectly in the past) and after updating it said something about a "new and exciting way to launch StarCraft through battle net" or some other nonsense like that. I said "ok" and now it doesn't launch with an "unexpected error"
RE: Battle.net doesn't start
by starcraft on Tuesday September 2nd 2014, 10:46
You may want to look at this

appdb.winehq.org/objectManager.php?sClass=version&iId=28855

After I did this, Bnet launcher works fine.

Additional Comments

my configuration is: Windows 7
and my libraries are set on:

battle.net.dll (Native, Builtin)
dbghelp (turned off)
msvcp100 (Native, Builtin)
msvcr100 (Native Builtin)
wininet (Builtin)
Hotkeys unavailable
by tom on Friday August 15th 2014, 11:51
It seems that the hotkeys (in campaign mode) don't work.

Is there a fix for this?
uninstalled POL,
by Sam S on Tuesday July 29th 2014, 20:36
i'm still having the same problems after uninstalling PlayOnLinux.

My mouse pointer is invisible, i'm sure i'm only doing something small wrong, or the fix will be very simple, i'd really appreciate some help.
Unable to play Starcraft 2
by Sam S on Monday July 28th 2014, 0:28
hi.

I'm a total noob and most of this is way over my head. I was asked to scan the appDB for my problem, however i can't seem to find a similar problem.

I've tried installing SC2 in two ways. Firstly using this method:

www.nosuchthingastwo.com/blog/2014/04/28/starcraft-ii-on-ubuntu-14-04/

secondly using the script on this page www.playonlinux.com/en/app-661-Starcraft_II_Wings_of_Liberty.html

i can get the game up, but when i press play, the game goes into full screen mode, however my desktop shrinks into a smaller mode, leaving my mouse either invisible (most of the time) and only operating in the shrunken desktop.

can i please ask for some help? i'd be very grateful.
RE: Unable to play Starcraft 2
by Sam S on Tuesday July 29th 2014, 22:15
as above,

Further i've removed all previous versions of wine and installed 1.7.23 from mirrors.ibiblio.org/wine/source/1.7/wine-1.7.23.tar.bz2

i somehow managed to install this, to no avail.

My mouse pointer is still invisible lol.

further i've somehow managed to remove wineconfig.
Installer requires secondary logon
by tom on Saturday May 17th 2014, 8:16
When I try to install Heart of the Swarm from DVD, I get the following error:

"Battle.net requires the Windows Secondary Logon service to be enabled"

The error code is BLZAPPBTS0000K.
RE: Installer requires secondary logon
by tom on Monday May 19th 2014, 20:48
This error went away after using the provided mount command (# mount -o ro,unhide,uid=1000 /dev/cdrom /mnt/cdrom), but I then ran into another BattleNet related error. Using the downloadable installer resolved that new issue.
sound stuttering
by Thorus on Friday April 18th 2014, 11:46
Hi,

my sound is stuttering in Starcraft 2, strangely only ingame, in the launcher it works fine... I'm using wine 1.7.16 with newest SC2 version. Everything else seems to work fine. Is there sth I can do?
RE: sound stuttering
by Thorus on Friday April 18th 2014, 17:12
could fix it by installing ie6 corefonts and vcrun2005. Don't know which one is exactly needed to fix it.
RE: sound stuttering
by Thorus on Saturday April 19th 2014, 10:59
ok it wasn't the winetricks it was tcsched=0 in /etc/pulesaudio/default.pa
after 'load-module module-udev-detect'. But then my pulseaudio in gnome does not work anymore...
RE: sound stuttering
by Thorus on Sunday April 20th 2014, 5:20
Ok problem was that with that option pulseaudio does not come up, and thats why starcraft 2 worked.

With default-fragment-size-msec set to 5 in /etc/pulse/daemon.conf, both works pulseaudio and sound in starcraft
Arch64/32 Bit Problems with CSMT
by Torsten Thortroll on Wednesday March 26th 2014, 18:01
Howdy,

I just can't get the CSMT-Wine version to work. Everything else works... "well", but when I try the 1.7.10-CSMT or 1.7.4-CSMT (precompiled) it shows the b-net-launcher window for about 3 seconds till it crashes.

Even with everything on low I have just about 20-30fps.

My Specs (easier to copy all of it^^):
`ooo/ OS: Arch Linux
`+oooo: Kernel: x86_64 Linux 3.13.7-1-ARCH
`+oooooo: Uptime: 2h 1m
-+oooooo+: Packages: 952
`/:-:++oooo+: Shell: zsh 5.0.5
`/++++/+++++++: Resolution: 3840x1080
`/++++++++++++++: DE: XFCE4
`/+++ooooooooooooo/` WM: Xfwm4
./ooosssso++osssssso+` WM Theme: Smallscreen
.oossssso-````/ossssss+` GTK Theme: BSM Simple Dark [GTK2]
-osssssso. :ssssssso. Icon Theme: gnome
:osssssss/ osssso+++. Font: Sans 10
/ossssssss/ +ssssooo/- CPU: Intel Core i7 CPU 870 @ 2.931GHz
`/ossssso+/:- -:/+osssso+- GPU: AMD/ATI Cayman XT [Radeon HD 6970]
`+sso+:-` `.-/+oso: RAM: 2675MB / 16044MB
`++:. `-/+/
.` `/


I tried all tips from:
- WineHQ
- ArchWiki (sc2 and wine article)
- Custom Guides: www.gamersonlinux.com/forum/threads/starcraft-ii-guide.387/
- combinations of those

Any more ideas? :/ ... I really just don't want to go back to win just for 2-3 hours gaming a week :/.
RE: Arch64/32 Bit Problems with CSMT
by Anders Nylander on Monday November 3rd 2014, 6:45
If you're not in a hurry to use the Battle.net launcher, you can bypass it by pointing wine to SC2\Support\SC2Switcher.exe directly, allowing you to start the game without using the launcher.

Then just use a non-CSMT version of wine for the launcher when you need to update.
A HOW-TO for FGLRX users!
by Change on Thursday February 20th 2014, 12:16
I've read about a lot of people struggling with fglrx problems, but I've managed to get great performance for starcraft with fglrx with no bugs/glitches (as far as I've tested). So I thought I'd post a HOW-TO for people who want to run their AMD video hardware with the fglrx drivers. Here's what I did:

Install Opensuse 13.1 (make sure you choose the default KDE desktop).

Install all Opensuse 13.1 updates through the update manager.

Install 7zip through the add/remove software link in the launcher.

Install libpulse032bit the same way (just search for pulseaudio). If you don't install this, you will have no sound!

Installing libpulse032bit will automatically install the 32 bit alsa libs you will need as well.

search the opensuse website (or duckduckgo.com) for 'one click install fglrx opensuse'. This will take you to the one click installation page for the fglrx drivers. Of course select the 13.1 driver package and install. It suggests 2 repos to be added, but only one selected, so I selected the other repo too. I don't know if that makes a difference. You'll want to restart after installation of the drivers to allow them to start.

The same way as above, search for one click installation of playonlinux for Opensuse 13.1. I used the 4.2.2 version of Playonlinux. I don't mess with the repo settings suggested on this one.

Once in PlayOnLinux I don't use the script to install it, but you can if you want. I just keep a copy of SC2 installed on a flash drive and copy the folder over (within the program file of the virtual c drive that I create through playonlinux). It saves me the update process when I distro hop. I can confirm that it will install though, I've tested it.

VERY important point though is that you need to click 'tools', 'manage wine versions', and install 32-bit wine 1.7.4 - CSMT (1.7.10 - CSMT has regressions for me) and use that on your playonlinux drive for SC2. Also that drive will need vcrun2005, but you don't have to worry about that one if you used the script to install, it installs vcrun2005 for you. Then configure your playonlinux SC2 drive to use the 1.7.4 CSMT wine version.

I've used this on both my AMD FX-4350 system with an AMD 6670 video card AND my HP dv6z-6c00 laptop that has an AMD 3550mx llano chip with an added 7690M (6750M) DDR5 discrete video card. Both machines are working flawlessly for me, including voice chat and all (That's quit a feat with my custom ordered laptop specs, plus I do have a boost of performance from the discrete card. I've tweaked with it and can verify that the discrete card is working).

Maybe I'm lucky or I have 'just the right' video cards, but it all works great for me. I hope this helps someone else get their rig running the way they want it. If you have a beefier card, like a 6850 or above, try out the r600g driver (built into the kernel). It may not have the same performance as the prop, but you're already on linux, might as well fully support Free Software (as much as you can).
Latest patch and wine 1.7.11 crash on display FPS
by Ema on Friday January 24th 2014, 13:45
Hi guys,

Am I the only one or with latest patch and wine 1.7.11 if you press "Ctrl+Alt+F" to show FPS the buffer screen gets corrupted and the game crashes?

Can you please confirm?

Ubuntu x86_64, nVidia 680 GTX, drivers 331.20
patcher doesn't work when installed to ntfs-volume
by snejjj on Sunday January 19th 2014, 3:04
I tried installing SC2 to the ntfs formatted volume I use for data storage.
The first installation runs without problems, but when I exit the patcher and start it again, I get an Error saying something like "unable to change permissions of important file. Please log in as Administrator".
Installing it on an ext4-volume works fine.

Any ideas, how I could get it working on ntfs? Is this a bug, I should report?
RE: patcher doesn't work when installed to ntfs-volume
by Jason Alan Palmer on Wednesday January 22nd 2014, 10:10
According to the README ( source.winehq.org/git/wine.git/blob/HEAD:/README ), using NTFS is hit or miss:

"Supported file systems:
Wine should run on most file systems. A few compatibility problems
have also been reported using files accessed through Samba. Also,
NTFS does not provide all the file system features needed by some
applications. Using a native Unix file system is recommended."

You may be able to get SC2 working on NTFS, but I wouldn't count on many people being able to provide help in this area :\
FPS .....we at it AGAIn
by eugenio on Monday September 16th 2013, 6:08
i would like to have more infos about the Stefan Dösinger patch
how can double fps? it includes a fix for the "dual-core not used" issue? or something?
is not just an ARCH thing isn't it?
RE: FPS .....we at it AGAIn
by eugenio on Monday September 16th 2013, 6:17
i mean : what's dat? CSMT ? how can i enable this function?


"vanilla" ubuntu wine ppa
around 40 fps (measuring sec 30 in a replay)

44420 + __GL_THREADED_OPTIMIZATIONS=1
around 60 fps (measuring sec 30 in a replay)

cs + CSMT="enabled"
around 80 fps (measuring sec 30 in a replay)

how can i make this type of testing myself ?
RE: FPS .....we at it AGAIn
by fengshaun on Monday September 16th 2013, 15:38
All the info is in the bug report. You need to download wine sources and apply the patches and then compile it. To enable csmt, search for "how to enable csmt in wine" (I believe it's a registry key). As for __GL_THREADED_OPTIMIZATIONS=1, just prefix the wine command with it like so:

$ __GL_THREADED_OPTIMIZATIONS=1 wine /path/to/sc2.exe

or export it in you ~/.profile:

export __GL_THREADED_OPTIMIZATIONS=1

Hope this helps.
RE: FPS .....we at it AGAIn
by eugenio on Tuesday September 17th 2013, 10:29
got , it THX
i use wine to play sc2 since the first release
't will be nice to have FPS doubled
i give it a try!
Updater hanging
by Kenshi on Sunday September 8th 2013, 3:01
I managed to install SC2 from the DVD on Debian. It appeared to actually download the first patch, but then said it was "updating the updater" and wouldn't continue. Every time I restart it now, it says it's applying patch 1 of 24 and that there are 0 kb remaining but then pops up saying it's checking for updates and gets stuck there.

I checked a couple of things that fixed similar problems for others. I do have libasound2:i386 and libjpeg8:i386. (I'm on a 64-bit OS.) I installed IE6 using Winetricks. I tried downloading the patches using a Bittorrent client but that didn't help. (Also, it only downloaded about 8 megs. All the patches are around 14 gigs.)

I'm not finding any more solutions. Anyone have any more ideas? I'm getting withdrawals.
RE: Updater hanging
by Ben on Tuesday July 1st 2014, 19:11
I'm having a similar problem on Linux Mint 16 64 bit.
garbage
by Gregory Beauregard on Tuesday August 20th 2013, 19:00
Since submitting the "garbage" report, I have done a significantly larger amount of testing to no avail. After testing all sorts of combinations of clean 32-bit and 64-bit WINE prefixes with and without various winetricks overrides, I sought others to reproduce my issue. Two other people running ~testing Gentoo amd64 (I'm on ~testing) were able to get SC2 installed on a clean 64 bit prefix using a method I exactly reproduced, but to no avail. Furthermore, they confirmed we had comparable USE flags for WINE. Glancing at console output would very tentatively suggest the issue is net-related, but I cannot ascertain what. I have exhausted my personal ability to attempt fix the issue, so if any of you have any ideas, I am open to suggestions.
Failed to run a required program (BLIZZARD SETUP) Error code: BLZPTS0000J
by Oliver on Thursday August 15th 2013, 14:57
I have been surfing forums for weeks, trying to solve this problem. I've installed several versions of wine, including the recommended (for WOL) 1.5.10. x86, through playonlinux.

I always receive this error. I have gone through playonlinux's game list, and installed it from there, and also used the option to install a file from another directory. I install the game from cd, and it goes well until i'm ready to update, it goes to 100% and then shows this. I've installed the ie6 package, the dotnet40 package, and i had 2 seperate virtual drives WITH AND WITHOUT the plugin mono.
and the DLL overrides in winecfg (set to WIN XP):
dnsapi (bullitin)
mshtml (native)

before i added those though, i noticed another mshtml (native, bullitin). should i remove that one? ok, continuing.

i had tested on one virtual drive where i manually browsed for the cd's installation, and another drive where i went into the gametab on playonlinux, and found starcraft. the manual way made sound problems for me, and the video would skip too fast in the installation window. i'm sure that can be fixed, but the other way did not create any installation problems. both arrive at the problem in the subject of this post. there's a link for the error code:
(THIS IS THE ONE I RECEIVE: BLZPTS0000J)
us.battle.net/support/en/article/BLZBNTBTS0000J

i've tried running S2Switcher from the support folder. I can't find the agent.exe anywhere in the recommended locations in other forum posts. ( wine .wine/drive_c/users/Public/Application\ Data/Battle.net/Agent/Agent.exe --nohttpauth )

i've tried installing it from the installation file available at battle.net, and i receive a different error, before installation even begins:
"No installer data could be found. If this problem persists, please contact Blizzard Technical Support."
i ignored the installer from battle.net method from here, because i felt one step closer just using the cd, with a full installation. the problem after i install with the cd, is the updater.

Can anyone help me? Thanks for reading..appreciated.
RE: Failed to run a required program (BLIZZARD SETUP) Error code: BLZPTS0000J
by Oliver on Friday August 23rd 2013, 23:05
Just in case of the scenario where this is being ignored because i put blizzard setup in parenthesis, I just want to clear something: It actually said that in the error, in parenthesis. That's not me adding it in. I understand that error code is one many got in the past, but it was for "(Agent)". not "Blizzard Setup".

I've also tried the echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope command, just I forgot to add it in my original post
DOWNLOADER 0% PROBLEM
by David Leo on Wednesday June 26th 2013, 14:18
I GOT IT WORKING

downloader was stuck at 0 % not doing anything...

Well this is because the downloader is creating 10gb worth of files on your disk, so at first it will act slow and sluggish....

WAIT a while

open system monitor and look at the cpu tab and we need to kill a few running processes... im on ubuntu you can open it by running gnome-system-monitor in terminal

there were a few processes running that i pretty much closed the ones that looked like they were opened by the launcher EXCEPT agent.exe, blizzard-launcher.exe, wineserver , and explorer.exe services.exe ...

I closed stuff like rundll.exe nc.exe winedevice.exe plugplay.exe , there was some weird KDEsomething.exe , which is weird I dont use KDE.. There was one specific one I cant remember the name of but it was probably the reason why it worked, it had a weid name like kublow.exe or something, after i closed these the installer started to progress, and im installing it now .. hope this helps someone
RE: DOWNLOADER 0% PROBLEM
by David Leo on Wednesday June 26th 2013, 14:25
I can confirm it working on 12.04 ubuntu, I am in a bot match as i type this, everything works flawlessly so far
Blizzard Downloader doesnt do anything
by Alexander Nigol on Tuesday April 9th 2013, 22:05
Hey guys,

I'm trying to install HotS via the downloader.

The Blizzard Launcher lunches fine, does some updating/checking stuff, and I get to the installation splash screen. I select the directory and click install, and nothing happens. The progress stays at 0.0%, and if I click on the options in the top left, the downloader preferences are greyed out. Same for info>connection information.

Same sort of problem with D3 installer as well, where the launcher seems to run fine except for the not downloading anything part.
RE: Blizzard Downloader doesnt do anything
by Kellan Pine on Thursday April 11th 2013, 11:36
That's very strange. I had none of those issues at all with either WoW or SC2. I'm assuming the Blizzard Downloader works the same with all of their games.

What version of wine do you have?
RE: Blizzard Downloader doesnt do anything
by snejjj on Sunday January 19th 2014, 2:50
The downloader is quite slow at the beginning. Just wait a few minutes, then it runs fine (at least with me).
Massive Performance Boost (Nvidia)
by Kellan Pine on Tuesday April 9th 2013, 14:42
I installed the game with no problems, but found it nearly unplayable from low fps. I was running at about 9-18 fps before this fix. Now I'm running at 60 fps consistently.

For me, the problem was that wine wasn't causing my nvidia gpu to adjust it's clock speed. To solve this problem, the nvidia driver needs to be set to maximum performance. This can be done in two ways.

1.) Run your Nvidia X Server Settings program and under your GPU (GPU 0 for me) select PowerMizer. You'll see a drop menu at the bottom. By default, it's set to adaptive. Change this to "Prefer Maximum Performance." This setting will only be effective during your current x server session.

2.) Force your driver to always run your GPU at maximum performance. Note that this method will reduce battery life for laptops. To do this open the file /etc/X11/xorg.conf with your text editor of choice. Make sure you do so with root permissions. Under the section titled "Device" you will need to add the following line:

Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefaultAC=0x1"

Make sure that there is a space after each semicolon.

This is the method that worked to increase my performance. I don't promise the same results to anyone else. If you have an nvidia gpu and are experiencing difficulties with your performance in game then it might be worth a shot.

I can only verify that this is a Starcraft 2 problem. I can't confirm whether or not performance will jump in other games.
RE: Massive Performance Boost (Nvidia)
by samuel on Tuesday April 16th 2013, 16:46
Hi,

Finally, I found my solution...

I already use all tweaks listed on this thread (patched wine version, Nvidia powerMixer set to high, CPU to High, taskset and so on...) but never successed to have better than medium quality playable...

I have tried enlightement and now I can play in high ! (with all other tweaks as I do not change my script...)

Before I used cinnamon and I think the big problem is compositing : I didn't find a way to disable compositing on cinnamon but enligthement have an option to disable it natively on fullscreen windows.

I know that kde have this option too, if someone that use kde can test this (disabling compositing for fullscrenn windows when playing SC2...) and give a feedback it can be a good info..

The difference between cinnamon and enligthement on SC2 performances is huge on my laptop and it's the only explanation i see...

If someone know how to disable compositing on cinnamon (on fullscreen windows...) I'm interested to give it a try...

PS : I am really happy to finally find a working solution because since that 2.X patches it was not a good play experience for me (lags...)

BR
GLSL support for performance but with lighting bug
by John Sun on Monday April 1st 2013, 1:08
hi everyone,

I'm using i7-3520M, kernel 3.8.4, Debian Sid, Mesa 8.0.5.

I found enabling GLSL support improves my fps, getting around 20 fps during late game with swarm hosts and lots of lings. Without GLSL support, it dropped under 10 and is nearly impossible to micro.

However, as dza mentioned before, GLSL support causes lights emitted from scv, tech labs and protoss building in constructions flicker in the whole screen.
bugged scvs looks like this:
www.youtube.com/watch?v=tsaEd-dTAlQ

Some windows users with ATI cards suffers the same problem, but seems to be able to solve this with driver cleanup/reinstall/update:
us.battle.net/sc2/en/forum/topic/218522146?page=1

Is it possible it's a bug in the mesa driver? or just the GLSL support of wine?
RE: GLSL support for performance but with lighting bug
by John Sun on Monday April 1st 2013, 1:52
more info:

most of the time the beams don't show initially but after 1-2 minutes they show up one by one.

resetting the graphic options (set shader to medium and back to low) cleans up the mess but after a couple of minutes the beams show again.
RE: GLSL support for performance but with lighting bug
by John Sun on Monday April 1st 2013, 12:29
I managed to install mesa 9.0.3(both 64bit for my system and 32bit for wine) and the lighting bug no longer persists. now I have around 20 fps in the mid-late game.

Disabling GLSL makes fps in the early game higher, but drops sharply below 20 after my base is saturated with harvesters. With GLSL enabled it seems fps is hold around 40-50 in the early game.

Hopes this info help someone with Ivy bridge.

Chears!
Getting SC2 to run using open source r600g radeon drivers
by Eric on Thursday March 28th 2013, 5:18
I recently upgraded to Ubuntu 13.04, but I used the server install dvd to eliminate some unneeded packages. I ran into problems trying to run SC2 using the free r600g drivers.

I got this error while trying to launch SC2:
"wine libGL error: failed to load driver: r600"

running with LIBGL_DEBUG=verbose gave me this:
"dlopen /usr/lib/i386-linux-gnu/dri/r600_dri.so failed"

The problem is that we are missing some 32-bit libraries. To solve this problem, run:

sudo apt-get install ia32-libs-multiarch

The next problem was missing textures and missing portrait pictures. The problem is that we are missing the 32-bit st3c libraries. To fix this, run:

sudo apt-get install libtxc-dxtn-s2tc0:i386

Installing these libraries fixed all my problems!
RE: Getting SC2 to run using open source r600g radeon drivers
by Catalin Patulea on Sunday December 22nd 2013, 18:38
On Ubuntu precise 32-bit chroot inside of Ubuntu precise 64-bit, on a Lenovo X220 (Intel HD 3000 Mobile/Sandybridge Mobile/i965) with Wine 1.7.9 built from source.

I had a black loading screen, missing background art in menus, and a lot of missing textures ingame. Installing libtxc-dxtn-s2tc0 (inside the chroot of course) fixed all of these.
HotS crash random after a while
by RB on Friday March 15th 2013, 13:11
HotS crash random after a while, sound stop to work than in few seconds the game crash.
Ubuntu 12.10
Wine 1.5.25
RE: HotS crash random after a while
by Michael Grigoriev on Saturday March 16th 2013, 19:59
Downgrading to 1.5.24 from ppa:foresto/winepatched seems to help.
RE: HotS crash random after a while
by RB on Sunday March 17th 2013, 16:31
Thank you for the help but, there was no 1.5.24 on that ppa so I used 1.5.25 and 1.5.19 none of them helped.
I have an nvidia gtx 550.
The problem seems related to some audio issue. I don't know how to give other irfomation.
Regards
RE: HotS crash random after a while
by Alexander Varnin on Sunday March 17th 2013, 21:44
There was sound buffer overruns, that seems to be fixed by adding string
load-module module-alsa-sink fragment_size=4096
to /etc/pulse/default.pa

But this problem is still there for me. I've tried 1.5.24 from playonlinux, but it didn't helped. I'll try something from ppa above.
RE: HotS crash random after a while
by Alexander Varnin on Sunday March 17th 2013, 22:31
I've tried 1.5.24 from ppa:
launchpad.net/~foresto/+archive/winepatched/+build/4308544
Now it is usually hangs up on mission loading screen.
RE: HotS crash random after a while
by Alexander Varnin on Sunday March 17th 2013, 23:00
Both for 1.5.24 and 1.5.26 i'm experiencing crashes.
Log always is in the same place when crash. It ends with

Request Issued: POST /game/s2_ruru
{"region":"EU"}
Response: 200
{}
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event: "auth validation event"
Handle Event:

Full log: pastebin.com/d0baF2Rn
RE: HotS crash random after a while
by Michael Grigoriev on Sunday March 17th 2013, 22:54
Yeah, I spoke too soon. It seemed to have been working for a while, but is now back to consistently crashing.
RE: HotS crash random after a while
by RB on Sunday March 17th 2013, 18:48
Same problem with wine 1.5.26
RE: HotS crash random after a while
by Michael Grigoriev on Monday March 18th 2013, 0:54
Another possible lead:
Ran with a higher debug level, and saw a bunch of messages regarding GL being unable to allocate memory.
Set VideoMemorySize=1024 (even though my card has 2GB), and lowered texture quality to Max (not Ultra), and was able to play though several missions without crashing.
RE: HotS crash random after a while
by RB on Tuesday March 19th 2013, 5:47
Lovering texture details from Ultra to Medium seems to help delaying the crash but not to avoid it.
Thanks a lot
Regards
RE: HotS crash random after a while
by Nicodemus on Monday March 18th 2013, 10:09
confirmed. having the same error with Crossover Linux 12.1.2 (Wine 1.5.15.)

Is there an open bug for this issue?
RE: HotS crash random after a while
by Alexander Varnin on Tuesday March 19th 2013, 15:43
RE: HotS crash random after a while
by Nicodemus on Tuesday March 19th 2013, 9:07
is your GPU set to Adaptive or Max Performance? SC2 has issues with dynamic frequencies, so i switched from Adaptive to Max Performance and that seems to have helped a lot.

i haven't crashed yet since doing it. hope it holds.
RE: HotS crash random after a while
by RB on Wednesday March 20th 2013, 7:27
Thanks for the help, it seems to help a lot, true, but it doesn't solve the problems. At least it is possible to play far long than before and complete the sinle player.
Regards
FPS is too LOW
by jon on Thursday March 7th 2013, 22:37
My computer set up isnt great but in windows I run high without a struggle. In wine I run low at 20fps tops. Quad core , 2.4gthz , 4g ram , ati 6870. I want to post some of my findings for anyone who cares to look into them.

1) My first install I got 20 fps(low settings). After I quit the program and ran again i was getting 10-12. At that time i was running 2xati5750 crossed over so i thought maybe linux , or wine wasnt using them both. So i put in my 6870 and still 10 fps.

2) I tried running in windowed mode to see if that would help with fps and to monitor task manager resources and priorities. It did help with my fps. Back up to 20. My windowed mode was about 1/3 of my full screen.

3) I noticed in my resources that my 4 cores never went above 60% , and my ram never hit 70%.

4) I also noted that in the priority tab , sc.exe was using more than 100% cpu. Strange i thought , since how can you use more then 100% of your cpu. So im thinking , maybe theres an error in programming there where the program thinks its using all the cpu but its not?

5) Another curious thing is that pulse audio priority was set to very high yet everything else was set to normal. Maybe we would get more performance out of tweaking sc.exe to very high? If only i knew how...Im sure one of you will figure it out.

6) Doing some searching on optimizing all of this , I found a comment in this thread about tweaking the registry. I dont remember it all but i typed it all out and tried it. Didnt make a whack of difference in my test environment.

I will reply more to this comment if I make any head way.
RE: FPS is too LOW
by jon on Thursday March 7th 2013, 23:46
Ok so I found out how to change priority. I set sc2.exe to very high and it didnt make a whack of difference on fps.
RE: FPS is too LOW
by jon on Friday March 8th 2013, 1:42
Ok so ive done more research.

There is an official thread about a performance mismanagement in WINE thats very apparent in starcraft2. Im not sure why this has been opened 3 years ago and last reply was 1 year ago with no progress made and its bug status is NEW?!?!?! So i left a reply there.

bugs.winehq.org/show_bug.cgi?id=24558

Also made notes while reading those threads and this one for possible solutions or workaround or anything that may improve performance. Like i said earlier ive tried shrinking the windowed mode down , tried changing drivers , even vid cards and some registry fix. Those all didnt do anything that ive noticed.

Well i just tried 2 more options. I read somewhere about variables.txt file an modding those values abit. Even watched a youtube video about it. Meh , still to no avail.

However , I also read somewhere to up the cpufreq from ondemand to performance. That helped. I was getting 20 fps max before on low setting and now im at 25 most of the time sometimes i hit 26. Doesnt sound like much but still is a 25% gain.

Anyhoo , I hope my research helps anyone , someone. Maybe earn you 5 fps gain or save you some time from researching dead ends.
RE: FPS is too LOW
by jon on Friday March 8th 2013, 21:50
Finally got it going decent now. Not as good as in windows but playable. On as low as it can go I can spike to 100 fps.

Turns out I didnt have the right kernel for the video driver. Thats what I get for swapping out so many video cards. In the end I found nvidia card worked better.

Also using cpufreq which improves performace prolly 50% more fps.
Very low FPS
by Ian on Wednesday March 6th 2013, 17:19
Core i7 950
6GB DDR3
nVidia GeForce GTX 670
Xubuntu 12.04 LTS 64-bit
Wine version 1.5.19 through 1.5.25 (tested)

I have not been able to get my in-game FPS above 30. Menus seem to be capped at 60 FPS, but when a single player campaign level is running it hovers around 15-20 FPS and never goes above 30. I have tried the various combinations of patches and environment settings as well as the old registry settings listed on this AppDB page. One or two actually decreased performance but none were able to improve it.

Given that my system isn't exactly outdated (yet) I should be able to crank it up well past 60 FPS, no? I'd really love to smooth it out before the expansion drops. Thanks in advance for your suggestions.
RE: Very low FPS
by Henrik Wennergren on Thursday March 7th 2013, 3:36
Have you checked that your cpu cores are not throttled, i.e. set to 'OnDemand' instead of at the recommended 'Performance'? - This is only applicable when CPUFREQ support is active though, I think.

Have you also tried limiting the SC2.exe process to a single core or maybe two?
RE: Very low FPS
by Ian on Thursday March 7th 2013, 17:19
cpufreq was set to 'OnDemand'. I changed it to 'Performance', but it made no difference in the FPS. Watching my cores in htop while the game is active, they are not really being stressed. I also taskset'd the PID to use 1, 2, and auto cores; still no difference.

Thanks for the suggestions!
RE: Very low FPS
by Danilo Riffo on Thursday March 7th 2013, 8:48
do you have vertical sync enabled?
watch for SC2 asking for it, your video driver forcing it or your window manager forcing it.
RE: Very low FPS
by Ian on Thursday March 7th 2013, 17:40
Vertical sync is off in SC2, but Sync to VBlank is on in nvidia-settings. I turned it off and restarted SC2 and the FPS was still capped at 60. The WM and compositor for Xfce 4.8 do not, to the best of my knowledge, do any OpenGL stuff at all.

This might begin to explain why the FPS is capped. To tell the truth, I don't care so much about that. As much as the Windows world pushes >60 FPS, my research tells me that >60 is unnecessary. Do you agree?

Thank you very much for sharing this idea. The biggest problem by far is the low FPS during the missions. 20 FPS just isn't going to cut it when playing Kerrigan :)

Keep it coming.
RE: Very low FPS
by Dmitry Golubev on Thursday March 7th 2013, 19:04
Well, the cap can be increased in variables.txt (set for example frameratecap=100 there). You won't notice any improvements though, unless you have a monitor that is actually capable of such FPS (forget about LCD), and even then you won't see any significant changes...

As for the low fps, please try the wine patch mentioned earlier in comment by christian on Sunday January 6th 2013, 6:45 (search it here), and let us know if it works.
RE: Very low FPS
by Ian on Thursday March 7th 2013, 19:19
Right now I'm running wine from the repo that incorporates that patch. I can switch back and forth between the patched wine and the stock wine and not see a difference in frames/sec. Shame, too, because I had high hopes for that patch after reading christian's comments :(
RE: Very low FPS
by Dmitry Golubev on Thursday March 7th 2013, 19:40
what driver version do you use? also, check if the commandline is correct (if i remember correctly, in some references there was a typo somewhere). this patch will only have effect with nvidia 313.x driver and correct commandline.
RE: Very low FPS
by Ian on Thursday March 7th 2013, 20:18
I have tried 310 and 313. Reverted back to 310 since 313 gave me unrelated problems. Versions 304, 310, and 313 function the same for me with and without the patch.

I checked the command line params with a few different threads to make sure they agree. I don't _think_ I have a typo in my startup script...

---
export WINEDEBUG=-all
export __GL_THREADED_OPTIMIZATIONS=1
export LD_PRELOAD="/lib/i386-linux-gnu/libpthread.so.0 /usr/lib32/nvidia-313/libGL.so.1"
wine "Starcraft II.exe"
---

I agree this smells like I'm making a silly mistake. I'd love to find out what it is...
RE: Very low FPS
by Henrik Wennergren on Friday March 8th 2013, 4:26
The Shader setting has the biggest impact on my setup.
In SC2 settings under graphics, try with setting shaders to low. It may not look pretty, but the FPS should go up.
RE: Very low FPS
by samuel on Friday March 8th 2013, 12:37
Hi,

Same here since 2.0.4 patch ...(same with 2.0.5)

I have all tweaks (taskset, regedit, specific patched wine version with GL optimizations, dedicated X server, nice, few settings in Variables.txt and so on) and did not find the solution...
I can succeed to have correct FPS (50/60) on medium to low (medium with 3 param to low) but all 10 sec I have a huge lag that not allow me to play. On ladder, i'm seen all 10 sec as not available and players must wait for me...

I'm waiting HOTS (pre puchased since 2 month now) and it's this one that breaks all SC2 under Linux (I don't have windows so I do not have an easy solution).

Alienware M11xR3 : Arch linux x64, Nvidia GT540M, core i7-2637M (4 cores), Nvidia driver 313.26 with bumblebee 3.1

If someone find the solution...
RE: Very low FPS
by Ian on Friday March 8th 2013, 18:50
Reducing shaders from Medium to Low increased my fps from 20 to 25. And, yes, it looks significantly worse :)
RE: Very low FPS
by Ian on Friday March 8th 2013, 17:59
I see that I'm not the only one to have performance issues recently. Several other people have posted here about getting low fps. Bottom line here is that I've got an i7 CPU, plenty of RAM, and a shiny new GTX670, and I'm still getting 20fps. Something is wrong.

Does this warrant a formal Wine bug report? If so, how can we get enough detail about the problem to make it useful (other than just "Starcraft 2 runs slow")?

I appreciate everyone that offered their two cents to help work around the problem. Thank you all very much.

Ian
RE: Very low FPS
by samuel on Sunday March 10th 2013, 15:01
Hi,

Agreed with that but can't help (I don't know what is the best procedure).

FYI, I've managed to copy my SC2 install dir on a fresh ntfs partition to test under windows (windows has only 20 Go on my computer only to not remove it completely) and it's the same at a lesser level. I have lags under windows too... (but it's playable more easily).

I have completely reinstalled under Linux to see if it's my install and no : still unplayable...

Very annoying as I have just receive my sent confirmation for HOTS ...

Ps : looking on google, and there are a lots of windows users with the same problem but didn't find an applicable solution for Linux...

Hopes somebody will find a quick workaround (or patch)...

Tried to disable USB as there is a bug for MacOS X involving usb and disabling laptop_mode_tools in case of but nothing helps...
RE: Very low FPS
by samuel on Thursday March 14th 2013, 13:09
Hi All,

We aren't alone, there are windows users that complains too on battle net forums.

Anyway I found a solution working for me :
- apply regedit on top of this page (not sure if this is mandatory)
- taskset -p 2 `pidof SC2.exe`
- PRIMUS_libGLd=/usr/lib/nvidia-bumblebee/libGL.so.1 optirun nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1 -c :8
- kill `pidof Agent.exe` (not sure if it's usefull but I added this as there is a download bug...)
- all processor set to performance
- wine 1.5.25 of wine 1.5.22 patched with NVIDIA optimizations (but now with HOTS applied it's the same...)

I can play online at medium without any problem (always little lags on vcs but a lot of windows users have so...)

PS : I use a script to do all this ;)

BR
RE: Very low FPS
by christian on Friday March 15th 2013, 13:34
Hi,

i just double checked the patch i mentioned before and the performance improvement in HOTS is 100%.

Without the atch i get ~50fps just looking at my starting base, with the patch i get 100fps.

My Sys:

Intel(R) Core(TM) i5-3570K@4.2ghz
8 GB RAM
Gtx 560 ti
Ubuntu 13.04
Samsung SSD 830

Here is my starting script, adjust it for your needs:

##############################################################
#Set wine version and wine settings
export PATH=/games/winebuilds/wine1522-nvidia/bin:$PATH
#export WINEDEBUG=-opengl,-wgl,-d3d
export WINEDEBUG=-all
export WINEARCH=win32

#Move to game directory

cd /games_on_ssd/cxoffice/starcraft2/drive_c/Program\ Files/StarCraft\ II/

#Disable VSYNC
export __GL_SYNC_TO_VBLANK=0

LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 wine Support/SC2Switcher.exe
###################################################################

Please be sure to do the following if u use ubuntu:

- Use CCSM and disable detect refresh rate

And in addition for all other distris and Ubuntu:

- Set cpu governor to performance (makes a huge diff)
- Disable vsync in nvidia settings and make sure the settings are applied before starting the game
- Disable vsync and antialiasing in sc2

Please try and report back :) ..

many thanks,
Christian
RE: Very low FPS
by samuel on Wednesday March 20th 2013, 5:49
Hi,

Can you give registry Direct3D keys that you have ?

I will try the exact same configuration this evening (but D3D keys are very important...)

Last tests I made, I had the same result with or without patch...

As I have dual core with multi threading (4 cores seen...), I use this :
tastset -p -c 0,2 `pìdof SC2.exe`. This force SC2 to use my 2 reals cores.
I think I have better result with this (try it if you have same kind of configuration)...
RE: Very low FPS
by christian on Wednesday March 20th 2013, 13:16
Sure, here they are. I guess the performance gain also depends a bit on the cpu power:

Things i have changed:

UseGLSL->disabled

So, not very much. The rest is default. Disabling GLSL makes a noticable difference even without the patch.
RE: Very low FPS
by samuel on Thursday March 21st 2013, 16:45
Hi,

I have done few test by starting a 2v2 in low versus AI.

With patch : 75 FPS without 55.

This number is only at the start of the game, this can drop on big battles...

Even with these FPS that are normally sufficient, I always have these lags that occurs randomly. This is very strange to have 75 FPS with lags...

PS : as said, I think it's a Starcraft bug more than a wine problem as on windows this occurs too...I only try to find a workaround...

Last thing, I have compared 1.5.22 patched to 1.5.26 wine version...this last one have a stracraft 2 crackling sound problem solved
Lag upon clickable object
by Shawn on Monday March 4th 2013, 19:47
Using gentoo AMD64 with wine version 1.5.24, Nvidia 313.18 and the following USE flags

[ebuild R ] app-emulation/wine-1.5.24 USE="X alsa gecko jpeg lcms ldap mono mp3 ncurses nls openal opengl perl png prelink ssl threads truetype udisks win32 win64 xinerama xml -capi -cups -custom-cflags -fontconfig -gphoto2 -gsm (-gstreamer) -odbc -opencl -osmesa -oss -pulseaudio -samba -scanner (-selinux) {-test} -v4l -xcomposite" 0 kB

I get decent framerate (~120) on an idle screen but upon hovering over a unit, building, mineral, etc the frames drop to ~15 making the game all but unplayable. Has anyone else encountered a similar issue?
RE: Lag upon clickable object
by Jason Alan Palmer on Monday March 4th 2013, 20:24
I don't have the same problem. I'm using wine 1.5.25 built with the following:

USE="X alsa cups gecko jpeg lcms ldap mono mp3 ncurses nls opengl oss perl png prelink ssl threads truetype xcomposite xinerama xml -capi -custom-cflags -fontconfig -gphoto2 -gsm (-gstreamer) -odbc -openal -opencl -osmesa -pulseaudio -samba -scanner (-selinux) -test -udisks -v4l"

I'm using nvidia-drivers 310.32. (I run stable except for wine, basically.)

It looks like the differences between us are the nvidia driver version and the xcomposite support. Those should be two easy changes you can test out.
RE: Lag upon clickable object
by Shawn on Monday March 4th 2013, 21:48
Hmm, I tried both and didn't notice a difference except now during run a lot of the following message appear:
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.

which seemed to be related to dx9 so I ran:
winetricks d3dx9 d3dx9_43 xact_jun2010 d3dcompiler_43

to make sure I had everything and still it appears (and I now have a lot of overrides in winecfg).
sc2 insists on being fullscreen
by Kaito on Sunday February 24th 2013, 18:00
Hey,

After the last patch, sc2 seems to resize the desktop upon starting in fullscreen mode, even if I fiddle with the values in Variables.txt. Previously, it would run "fullscreen" inside the virtual desktop, and stay there, making it quite convenient to manage in a tiling window manager.

Running it in windowed mode draws some windows-y window decorations around the window inside the virtual desktop, which is annoying. Fullscreen (windowed) fails to correctly detect the virtual desktop size, and I end up with empty space on both sides of the game.

Any ideas how to force it to stay at the size I want it to stay?
failed to run with optirun
by Xu Yao on Monday February 18th 2013, 2:32
My laptop use optimus card ( i7 3612 + GT650m ).
When I run "wine Starcraft\ II.exe", it works, although it can only run s in the low qulity mode. However, when I use "optirun wine Starcraft\ II.exe", problem occurs.
When I press the "start" bottom on the welcome dialog, the program show me a dialog writes "An error occurs when starting Starcraft II, please try again" (actually, it's written in Chinese, I don't the exact words) instead of start the game and closed. Any one can help me?
RE: failed to run with optirun
by samuel on Friday March 8th 2013, 3:47
Hi,

It's a known issue for application like starcraft that forks (when you click start, process forks to launch the game).

Simple solution is to start "optirun bash" before starting your optirun command.

PS : with 3.1 optirun version and "optirun -b primus" mode, I don't know if this problem is always the same.
r6034
by christo on Thursday February 14th 2013, 15:05
So finally I could run the game. I use wine 1.5.23, and nothing else. No libraries.

If I dont use this command in terminal:
"echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope"
There is no chance to start the game. After I click on the play button on blizzard updater window, the game exits with this error message:

"Runtime Error!

Program: C:\Program Files\Star Craft II\Versions\Base23260\SC2.exe

R6034"...

If I use that command, the game maybe starts, and I could use everything in SC2, but sometimes crashes with the same error. Randomly.
Sometimes I can play for hours, sometimes the game crashes while loading the first ladder game. (But never crashes in the menu).
A way to greatly improve performance for Nvidia GPU Users
by christian on Sunday January 6th 2013, 6:45
Hi,

right now there is a way to greatly improve performance in SC2 if you own an recent Nvidia Card.

If your card is capable of using the threading optimizations in the newer Nvidia drivers and your are willing to recompile wine for yourself, try the following:

Read the bug: bugs.winehq.org/show_bug.cgi?id=11674 beginning comment 260. It gets very interesting there.

Apply the patch : bugs.winehq.org/attachment.cgi?id=42868
And compile wine afterwards.

Then start Starcraft the following way:

export PATH=/YOURSELFCOMPILEDWINE/bin:$PATH

LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1 WINEDEBUG=-all wine "Your Starcraft 2 Binary"


Its very important to use WINEDEBUG=-all, otherwise the game will perform worse with the patch.

Please give it a try and report back your results.
RE: A way to greatly improve performance for Nvidia GPU Users
by christian on Monday January 7th 2013, 6:47
Forgot to add that there also is a repository mentioned in the bug thread with a precompiled wine which includes the patch. Makes it much easier to try the patch !

Read: bugs.winehq.org/show_bug.cgi?id=11674#c275
RE: A way to greatly improve performance for Nvidia GPU Users
by Dmitry Golubev on Tuesday January 8th 2013, 13:00
Tried wine 1.5.20 from that repository vs. generic wine 1.5.20. With Nvidia 313.09 (beta) drivers on my old VAIO notebook (32bit Ubuntu 12.10, Core2Duo 2.4GHz P8600, 4GB RAM, Nvidia 9300M GS) and the performance became worse by about 20%. Probably the videocard is too slow for the game...

It is weird, though, that the patch alone decreased the performance by about the same amount as enabling THREADED_OPTIMIZATIONS in vanilla wine, and enabling THREADED_OPTIMIZATIONS on patched wine did not give any measurable performance gains. I did not perform extensive tests though... only watching few battles from a single replay with FPS display enabled, so I can't give any statistically relevant numbers.
Mouse cursor doesn't work when alt tabbed, after wine 1.5.14
by Daniel on Tuesday October 30th 2012, 2:10
When I alt tab, my mouse cursor stays as the sc2 one and clicking has no effect on the sidebar, other applications, etc.
Anyone else have this problem and know a fix?

d
RE: Mouse cursor doesn't work when alt tabbed, after wine 1.5.14
by Sam Sulcer on Tuesday November 6th 2012, 21:12
What worked for me was installing the complizConfig-settings-manager(sudo apt-get install compizconfig-settings-manager), going to the windows management section, and checking 'application switcher'.
RE: Mouse cursor doesn't work when alt tabbed, after wine 1.5.14
by kantlivelong on Sunday November 11th 2012, 10:08
I have the same issue for SC2, D3, and WOW.

I'm using Cinnamon and would love to fix this.
Increased FPS from 30 to 80
by Fake Name on Tuesday September 25th 2012, 15:46
If your game runs well in windows but crappy on Ubuntu:

I did all the registry edits and got ~10 fps up from 20, but I typed this in the terminal:

taskset -p 2 `pidof SC2.exe`

and found a remarkable increase in quality. (20-30 fps - 70-80fps)

It makes starcraft use 2 cores instead of 50% of 4. All I know is I can play now! YAY!
RE: Increased FPS from 30 to 80
by Mihaly Bak on Thursday September 27th 2012, 13:28
another trick I use for both Starcraft and diablo is a really nasty one but it works very good.

You take a prompt and run:
mihaly@aero64:~$ cat /dev/urandom > /dev/null

This will force the system to run at full speed, at the cost of using up one core tho :/
RE: Increased FPS from 30 to 80
by ReCon on Sunday October 28th 2012, 16:45
Well, can you tell me which hardware you're useing?

I'm actually on a i7 with an nvidia 650m (with 2GB) and I get at least 35 FPS with your tweak. Anyway, later in bigger battles, this drops down to 10-15 FPS.

I tried to set it with taskset, to 1 core, 2 cores, 8 cores and ff (whatever that means, but normally all programs get started with ff at my machine).

Thanks a lot.
RE: Increased FPS from 30 to 80
by Tomik on Monday October 29th 2012, 5:55
Same for me, doesn't help on my Phenom X4 and Nvidia GTS450, I have only about 30FPS on LOW.
RE: Increased FPS from 30 to 80
by Fake Name on Thursday November 22nd 2012, 0:13
Hey.

My "increased fps from 30-80" was an overstatement. I saw it hit 80 once and was excited. My apologies for misleading you.

I'll say I'm sorry by telling you how I actually DID get it to run well. It doesn't use the taskset command :).

1) open Ubuntu Software Center and type in cpu freq

2) Click on "Show technical Items" button on bottom.

3) Install "CPU frequency scaling indicator". Underneath it the description is "indicator-cpufreq"

4) After it is done installing type "indicator-cpufreq" in terminal. I typed "indicator-cpufreq-selector" to be sure :D.

5) Manually set your computer to run as fast as it can.

6) Run starcraft. (make sure you are running the new NVIDIA 310.14 drivers).

I hope this is helpful.
RE: Increased FPS from 30 to 80
by Fake Name on Thursday November 22nd 2012, 0:14
Hey,

My "increased fps from 30-80" was an overstatement. I saw it hit 80 once and was excited. My apologies for misleading you.

I'll say I'm sorry by telling you how I actually DID get it to run well. It doesn't use the taskset command :).

1) open Ubuntu Software Center and type in cpu freq

2) Click on "Show technical Items" button on bottom.

3) Install "CPU frequency scaling indicator". Underneath it the description is "indicator-cpufreq"

4) After it is done installing type "indicator-cpufreq" in terminal. I typed "indicator-cpufreq-selector" to be sure :D.

5) Manually set your computer to run as fast as it can.

6) Run starcraft. (make sure you are running the new NVIDIA 310.14 drivers).

I hope this is helpful.
RE: Increased FPS from 30 to 80
by Fake Name on Thursday November 22nd 2012, 0:21
Wow. I miss typed. the taskset command is still nessesary, this just makes everything run smoother with it.

Hope it helps! :D
Improve performance in open source drivers
by trevice on Wednesday August 29th 2012, 13:27
After a long time testing differents configurations, using this parameters on wine give me a huge improve over intel HD4000 (i7 ivy bridge) and Tesla Nvidia card (with nouveau):

"DirectDrawRenderer"="opengl"
"Multisampling"="enabled"
"OffscreenRenderingMode"="backbuffer"
"RenderTargetLockMode"="auto"
"StrictDrawOrdering"="enabled"
"UseGLSL"="enabled"
"VideoMemorySize"="256"

found here:
blog.jospoortvliet.com/2012/03/wine-gaming-on-nouveau.html

try it! you will not regrete it!
Starter/Tuning/Benchmark Script
by capilevastu on Monday August 20th 2012, 9:38
hi guys,

i once posted here my script but sadly got a disappointing response in terms of inspiration for further work or corrections - as if i am the only one, concerned about SC2 performance.
since than, i added quite some features notably a benchmark mode, because the last response before the post died asked me if i have any numbers about the tuning-settings.

the answer to this is still no, because i have not investigated the differences of the variety of settings yet.
first, i want to ask here again if there is anything to improve or alter.

sure, there are some things that must be changed but therefore, i need your advise.

one big disadvantage of this script is, it only starts SC2. but in order to get viable benchmark information, you need a reproducible workload, so:
- do you know how i can start replays out of the commandline? and
- how one might send commands form a bash shell to a x-window, like key-press "this" to switch to a player-camera or set the replay speed

- is "perf sched record" a good choice to collect performance data or do you know better ones?
e.g. i tried to collect directly from /proc/'pid'/[stats-sched-map] but i dont know about all that stuff. "perf" seems to me to be a better choice.

before you take a look at my pride, you should know that i am a scripting amateur.
i am happy about every suggestion.
pastebin.com/8TpjFJWD
RE: Starter/Tuning/Benchmark Script
by capilevastu on Saturday September 8th 2012, 7:00
i found the perfect solution to read the fps directly out of wine. the "fps" debug-channel.
i have limited my fps with "frameratecap"/"frameratecapGlue" in the Variables.txt to 40 and the "+fps"-output never exceeds it, which means, its a reliable output.

WINEDEBUG="-all,+fps" wine SC2.exe &> bench-sample_fps

with

aticonfig --od-getclocks >> bench-sample_gpuload
ps -eLo pid,%cpu,%mem,cputime,lwp | grep `pidof SC2.exe` >> bench-sample_cpuload

gives me all the information about fps, cpu- and gpu-load about SC2.
by now, i can finally start testing the differences between kernel parameters, settings in the Variables.txt and registry settings.
... if i knew how, i could even draw nice graphs about fps in correlation to cpu-/gpu-load :)
of course, i will post the future results here.

i have also changed the script again slightly. now, it can remove listed kernel-modules and adds them back afterwards
here is the script:
pastebin.com/PEKRBnDA
RE: Starter/Tuning/Benchmark Script
by capilevastu on Tuesday September 11th 2012, 13:23
got the first results now. nothing out of the ordinary, the interesting stuff will follow soon.
i have to admit, that there are some disadvantages about my way of benchmarking.
i never tested several settings, always one at once, so i cant say anything about correlations between them.
and these results are of course only representative for my machine/configuration.


my specs are:
Acer Extensa 5630 Laptop:
- Core2 Duo 2GHz
- ATI HD 3650 Mobility
- 2GB RAM
Software:
- Lubuntu 12.04 - 64bit
- wine1.5 (32bit), latest repo (sadly, i still cant build my own)
- ati catalyst 12.6
- kernel 3.2.0-30-generic


the benchmark-process:
i restart the laptop before every run and dont start anything except of the sc2-benchmark.
while the benchmark, the script starts a certain replay 5 times and collects once every second the fps, cpu-, gpu- and memory-usage while the replay is running.
after about 50 minutes of replay, the script closes sc2 and calculates the average results out of the benchmark-data.
one could do more with the raw data but my main focus is on average fps.
in my point of view, the benchmark-cycle has to take about 50 minutes in order to eliminate noise from the data - to get more viable results.


results:

in this first run, i only changed registry settings. the start configuration was:
"AlwaysOffscreen"="disabled"
"DirectDrawRenderer"="opengl"
"Multisampling"="disabled"
"OffscreenRenderingMode"="fbo"
"RenderTargetLockMode"="auto"
"StrictDrawOrdering"="disabled"
"UseGLSL"="disabled"

and brought the following result:
Average FPS: 10.8659159433
Average CPU %: 114.0558922558
Average Memory %: 43.9415151514
Average GPU %: 37.9754208754

i only changed one setting at a time and switched back to start-configuration after the benchmarking.
here is what i got: (performance > quality)

OffscreenRenderingMode: fbo >> backbuffer (i got a corrupted texture register, but only for the ground textures)
Average FPS: 8.1350023009
Average CPU %: 113.7062289562
Average Memory %: 43.2988888888
Average GPU %: 30.3622895622

RenderTargetLockMode: auto > disabled > readdraw
"disabled":
Average FPS: 10.8454075091
Average CPU %: 113.5848821548
Average Memory %: 43.8184175084
Average GPU %: 38.0956228956
"readdraw"
Average FPS: 10.8167213862
Average CPU %: 114.2996969696
Average Memory %: 43.6714478114
Average GPU %: 37.6356902356
(i could have tested more possible settings here ... but meeeh, i hour for everything)

StrictDrawOrdering: disabled >> enabled
Average FPS: 8.8398400609
Average CPU %: 113.8386083052
Average Memory %: 42.4075757574
Average GPU %: 40.3350168350

DirectDrawRenderer: opengl > gdi
Average FPS: 10.7735883424
Average CPU %: 114.2135016834
Average Memory %: 43.8328956228
Average GPU %: 37.3589225589

UseGLSL: disabled >> enabled
Average FPS: 8.7474057037
Average CPU %: 114.1421548820
Average Memory %: 48.4422895622
Average GPU %: 39.0956228956

Multisampling: disabled > enabled
Average FPS: 10.7712767897
Average CPU %: 113.9362626262
Average Memory %: 43.2552861952
Average GPU %: 37.4050505050

AlwaysOffscreen: disabled > enabled
Average FPS: 10.7617038724
Average CPU %: 114.1301683500
Average Memory %: 43.5656902356
Average GPU %: 37.3848484848

dont ask me plz why the cpu-averge is above 100% (maybe because of my 2 cpu-cores). if you want to know how these numbers where generated, take a look at my script:
pastebin.com/qScXr3Pv
(some minor changes to previous versions)

the replay i used:
www.smallfiles.org/download/2143/Unit_Test_Map_19_.SC2Replay.html

the next things on my list to test are:
- process attributes: renice, taskset, chrt, ionice
- kernel-parameters: ... take a look in the script to see the full list and its values.
and finally
- the vast possibilities of the Variables.txt but only some selected options.

will take some time though. be patient, ill post the results here.
im still happy about any commentary about all this.
Performance Tweaks
by capilevastu on Sunday January 8th 2012, 12:00
hello guys,

im experimenting with the setting and performance of sc2 quite a while now and i wanted to share my experiences with you, hopefully someone can add or change some thing.



the first and most important performance tweak consists the Variables.txt. there are some commands that increase performance like nothing else.

these two options make the shadows completely disappear

GraphicsOptionShadowQuality=1
shadows=0


the sound seems to me to be an important bottleneck of wine, heres my sound block of the varaibles
notice, the 6 soundchannels ive set, mute the individual sounds alot, especially in big fights, you only hear some, which is ok to me.

soundambience=0
SoundAutoDetectCPUCoreCount=1
soundchannels=6
soundmovement=0
soundoutput=Standard
SoundQuality=0
SoundResampler=NOINTERP
SoundSampleRate=8000
sounduivolume=0.800000
speakermode=Mono


the graphic tweaks look like this
im not sure what eg. texSpace[2] does but i think its a gain to reduce it (512mb is my video memory).

targettexeldensity=0.000000
TerrainTextureHiResCacheSize=32
TerrainTextureLowResCacheSize=32
TerrainTextureSize=32
texQualityLevel=0
texSpace[2]=512
textureBasedFOW=0


this shall only be a little cleavage of my varaibles, there are some more possibilities in this but the information about it are very rare.
i dont have to mention that ive disabled/lowered every other option thats there and that you have to write-protect the Variables.txt in order to keep some of the settings. if you want to see my full variables, see:
pastebin.com/Lvs2Lmph



the second thing you can enhance is wine.

this is how i compile my wine. right now im still experimenting with it because i cant get the -march=native flag to work (which is really sad), maybe you guys can help me with it.
it would be amazing if i get some pro-tips about compiler optimization, because this is an area i dont know very good.

./configure CFLAGS="-O3 -ffast-math -fno-defer-pop" --disable-win16 --without-cups --without-capi --without-gphoto --without-gsm --without-gstreamer --without-xinerama --without-sane --without-xcomposite --without-xrandr --without-xshape


of course you can improve the wine registry too (via winetricks)
i dont think that it would be worth it change a bit of these, this is where i tried the most combinations.

[Software\\Wine\\Direct3D]
"DirectDrawRenderer"="opengl"
"Multisampling"="disabled"
"OffscreenRenderingMode"="fbo"
"PixelShaderMode"="enabled"
"RenderTargetLockMode"="disabled"
"StrictDrawOrdering"="disabled"
"UseGLSL"="disabled"
"VertexShaderMode"="hardware"
"VertexShaders"="hardware"
"VideoMemorySize"="512"



the third thing you can optimize is the execution of sc2.
ive written a starter script, that automatizes a couple of steps. see the script-comments for further information.
to see a clean version, see:
pastebin.com/09CNrxj2

#!/bin/bash
## sets my variables.txt wo write-protect to prevent the loss of some variables.
chmod -w ~/StarCraft\ II/Variables.txt
## writes the default kernel parameters in varaibles to recall them and undo the changes.
kernvar1=`sysctl -n kernel.sched_child_runs_first`
kernvar2=`sysctl -n kernel.sched_rt_period_us`
#kernvar3=`sysctl -n kernel.sched_rt_runtime_us`
kernvar4=`sysctl -n kernel.sched_nr_migrate`
kernvar5=`sysctl -n kernel.sched_latency_ns`
echo "KERNEL PARAMETER BACKUP DONE"
sudo -v
## changes kernel scheduler behavior, this is highly experimental.
sudo sysctl -w kernel.sched_child_runs_first=1
sudo sysctl -w kernel.sched_rt_period_us=960000
#sudo sysctl -w kernel.sched_rt_runtime_us=-1
sudo sysctl -w kernel.sched_nr_migrate=48
sudo sysctl -w kernel.sched_latency_ns=8000000
echo "CHANGED KERNEL PARAMETERS"
## sets the governor of my 2 cpu core to performance, to prevent clock-switching in game.
sudo cpufreq-set -c 0 -g performance
sudo cpufreq-set -c 1 -g performance
echo "CPU GOVERNOR: PERFORMANCE"
## starting my sc2, remember, that your folder might be different. also the most commandline parameters for the sc2.exe are obsolete (NO OPENGL!!!)
echo "STARTING SC2 NOW"
WINEDEBUG=-all wine ~/.wine/drive_c/Programme/StarCraft\ II/StarCraft\ II.exe -opengl -fullproc -skipopenal -nocpubinding -confinecursor
## changes the priority of the sc2 and the winedevice tasks and also forces each one the a different cpu core.
sleep 30s
wineserver --debug=0
sudo renice -n -10 `pidof SC2.exe`
sudo renice -n -10 `pidof wineserver`
sudo taskset -p 1 `pidof SC2.exe`
sudo taskset -p 2 `pidof wineserver`
## this loop is running as long as sc2.exe is executed. it also counts the minutes and put them in terminal.
i=0
while ps ax | grep -v grep | grep SC2.exe > /dev/null
do
echo -n $i _
sleep 60s
let "i += 1"
done
## after sc2 has been terminated, the script exits the loop and sets the cpu governor back to ondemand and also undos the kernel scheduler stuff.
sudo cpufreq-set -c 0 -g ondemand
sudo cpufreq-set -c 1 -g ondemand
echo " "; echo "CPU GOVERNOR: ONDEMAND"
sudo sysctl -w kernel.sched_child_runs_first=$kernvar1
sudo sysctl -w kernel.sched_rt_period_us=$kernvar2
sudo sysctl -w kernel.sched_rt_runtime_us=$kernvar3
sudo sysctl -w kernel.sched_nr_migrate=$kernvar4
sudo sysctl -w kernel.sched_latency_ns=$kernvar5
echo "KERNEL PARAMETERS BACK TO NORMAL"
wineserver -k
unset kernvar1 kernvar2 kernvar3 kernvar4 kernvar5
echo "FINISH"


i hope you guys think its helpfull.
im begging you, if you have any further information about performance compiler optimization or wine specific kernel scheduler, please let me know.

gl hf
SC2.exe Command line arguments
by lubosz on Monday March 1st 2010, 9:17
-trigdebug=1 Open trigger debugger
-showfps=1 Show FPS
-confinecursor=2 Confine mouse cursor to window (for windowed mode)
-alttabdisabled=1 Disable alt-tab
-winkeydisabled=1 Disable windows key
-noTextureLoading=1 Disables all textures

There seem to be more, but the poster didn't feel them being worth to be mentioned.
ShowFPS does not work for me
Back