The test results you have selected are very old and may not represent the current state of Wine.
Selected Test Results (selected in 'Test Results' table below)
loading / saving
What does not
Does not run with any other kernel I tested
Much slower than on XP
Sometimes the wine process does not end after exit
Offline and LAN play does not work (not wines fault)
Alt+Tab if game != desktop resolution
What was not tested
It is very disturbing that Blizzard removed the LAN mode and even single player is not allowed offline. To use the stripped down guest accounts I have to activate my internet connection, log-in to my bnet-account, log-out and than activate a guest account.
So you need to supply Blizzard with your real-name, postal address and be online even if you only play in single-player mode.
The new BNet tries to copy Steam but it is even worse than that.
Only buy this game if you really loved SC1, have a flatrate and give a shit about privacy!
How I got it working:
Rebuild unmodified kernel source from Debian/experimental on a amd64 Sid.
Created the missing linux-kbuild-2.6.35 out of linux-kbuild-2.6.34.
Installed built kernel, headers and kbuild.
Booted the kernel and installed the proprietary driver (195.36.24-4) with "sgfxi -d".
Reinstalled nvidia-glx-ia32 (195.36.24-4).
DLL override: "mmdevapi" -> "disabled"
I failed to install directly from dvd. So I mounted the dvd with nohide, copied the content to disk and installed from there.
The files from the Blizzard-downloader are identical to the files on the dvd.
At time of writing the current SC2 patch-level was 220.127.116.1123.
Tested the EU-GB and EU-DE versions.
As of wine 1.9.2, the 64-bit client works with all graphics settings. To use the 64-bit client:
Open the battle.net launcher
Go to the Game Settings tab
Check Launch 64-bit client for Legacy of the Void
On older versions of wine, only the 32-bit client works. To use the 32-bit client:
Open the battle.net launcher
Go to the Game Settings tab
Check Launch 32-bit client for Legacy of the Void
With the 32-bit client, there are reports of crashing if graphics quality and texture quality are too high. Try lowering your settings.
To successfully install from the DVD you may have to use the "unhide" option. Example:
# mount -o ro,unhide,uid=1000 /dev/cdrom /mnt/cdrom
If you are still unable to install directly from the DVD, you can try
copying the files from the DVD to a hard disk first
using the downloadable installer instead
The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
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.
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!
network bug after game update 18.104.22.168743
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.
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.
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 .
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
RE: Quality by Steven Mercurio on
Thursday November 19th 2015, 0:11
RE: Quality by Sergej on
Sunday February 21st 2016, 9:05
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.
Version 22.214.171.124535 working great again
by Matthew Krafczyk on Sunday October 18th 2015, 16:03
After updating to wine-staging 1.7.53, and getting the 126.96.36.199535 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.
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)...
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
Units Portraits: 3D
These options work best for me. You'll probably have to tweak them depending on how powerful your PC and graphics card are.
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.
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)
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.
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 play
by Bodanel on Saturday November 15th 2014, 9:06
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
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"
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.
Arch64/32 Bit Problems with CSMT
by Torsten Thortroll on Wednesday March 26th 2014, 18:01
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
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).
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?
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.
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):
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)
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.
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
Blizzard Downloader doesnt do anything
by Alexander Nigol on Tuesday April 9th 2013, 22:05
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.
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:
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.
GLSL support for performance but with lighting bug
by John Sun on Monday April 1st 2013, 1:08
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:
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.
Very low FPS
by Ian on Wednesday March 6th 2013, 17:19
Core i7 950
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.
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?
sc2 insists on being fullscreen
by Kaito on Sunday February 24th 2013, 18:00
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?
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:
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).
by capilevastu on Monday August 20th 2012, 9:38
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.
by capilevastu on Sunday January 8th 2012, 12:00
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
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.
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:
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.
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:
## 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"
## 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.
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.
while ps ax | grep -v grep | grep SC2.exe > /dev/null
echo -n $i _
let "i += 1"
## 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"
unset kernvar1 kernvar2 kernvar3 kernvar4 kernvar5
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.