[Bug 24558] New: Wine: Starcraft II - CPU freq. not running at max performance
http://bugs.winehq.org/show_bug.cgi?id=24558 Summary: Wine: Starcraft II - CPU freq. not running at max performance Product: Wine Version: 1.3.3 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: xinamius(a)gmail.com CPU: AMD Phenon II X4 955 Ubuntu 10.10 64 In Starcraft 2 my framerate increases by 70-80% by setting "cpufreq-selector -g performance". I haven't tested any other games. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance Summary|Wine: Starcraft II - CPU |Starcraft II - CPU freq. |freq. not running at max |not running at max |performance |performance Severity|normal |minor -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #1 from Jeff Zaroyko <jeffz(a)jeffz.name> 2010-09-29 03:44:32 CDT --- Consider looking through the Ubuntu launchpad.net bug system for reports relating to Speedstep / PowerNow! scaling issues. At a glance, there are quite a few. Since it's something which is managed by the operating system, the problem may not be specific to Wine. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #2 from Tenn <xinamius(a)gmail.com> 2010-09-29 07:02:34 CDT --- So I did look through launchpad and there are quite a few issues with this it seems. In fact, far too many to find what I'm looking for. On the wine APP Database entry for Starcraft II: By Ema "Hi guys, Just wanted to share with you that my CPU (AMD Phenom II X4 965) will usually throttle to 800 MHz (instead of 3.4GHz) during gameplay, lowering FPS by 30~40%, if set Ondemand mode. I have to manually set it to 3.4GHz (or Performance) to get more FPS. My videocard is a GTX 470 (drivers 260.19.06); I'm using Ubuntu 10.04 x86-64. Does anyone else experience this? My biggest fear is that for whatever reason the videocard isn't used to the max, hence the CPU times out and Linux decides to lower the frequency. Using WoW I remember that this was not happening; if I use other native games, like HoN, the CPU stays fixed at 3.4GHz (as expected, to get max FPS). Cheers," I am going to try running some other wine games soon and see if everything is affected, or if this is a Starcraft II specific issue. I'll report my results here. Regards, -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Ema <ema.oriani(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ema.oriani(a)gmail.com --- Comment #3 from Ema <ema.oriani(a)gmail.com> 2010-10-23 13:16:42 CDT --- Hi guys, please have a look at this discussion: http://forum.winehq.org/viewtopic.php?t=9883 The issue doesn't only regard the CPU but even the GPU. Basically the process is put to sleep when we would expect to run faster (i.e. get more fps). So the OS and drivers will "downclock" both CPU and GPU, as seen is like the process is waiting for some I/O. The 'issue' is to find where we wait for I/O and once done, possibly fix it. Cheers, -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 David <letfid(a)free.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |letfid(a)free.fr --- Comment #4 from David <letfid(a)free.fr> 2010-10-25 03:02:11 CDT --- Hi, I wanted to tell that me too I have noticed strange cpu usage with SC2. So I came in wineHQ and I saw your comment Ema. I am using conky to monitor my system and when I quit SC2 just after a game, I can see the historic of cpu usage and I never exceed 50% of my dual core. (for both core) I got an intel core 2 duo E7600 at 3Ghz. My graphic card is a geforce GT240. I didn't find a way to force the use of all 3Ghz. cpufreq don't work with my CPU. If backlog or somethin is needed, I am avalaible to help. thx -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #5 from David <letfid(a)free.fr> 2010-10-25 03:05:28 CDT --- ps: I am running on a Fedora Core 12 x86_64. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #6 from Ema <ema.oriani(a)gmail.com> 2010-11-07 06:09:43 CST --- Created an attachment (id=31774) --> (http://bugs.winehq.org/attachment.cgi?id=31774) When CPU frequency is left to 'Ondemand' -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #7 from Ema <ema.oriani(a)gmail.com> 2010-11-07 06:10:13 CST --- Created an attachment (id=31775) --> (http://bugs.winehq.org/attachment.cgi?id=31775) When CPU frequency is left to -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #8 from Ema <ema.oriani(a)gmail.com> 2010-11-07 06:20:24 CST --- Added a couple of screenshots proving my point. Settings all Ultra on a GeForce 470 GTX (used virtual desktop to show CPU frequency, situation is the same in full screen, Full HD). As you can see, the same scene goes from 14 -> 21 FPS, basically 50% more. Compiz enabled/disabled doesn't make any difference, it is really something related to process 'sleep'... my fear is that this bug will be hard to trace unless someone manages to stack-trace when the SC2 process is being put to sleep. Once we find this cause, then it should be easier to remove the cause. In my opinion might be a component that is asked to sleep for 'n' nanoseconds but it 'oversleeps', and this is being done for each frame, so the CPU gets auto tuned to 800 mhz, because apparently the process is being put to 'sleep' for some strange reason (or it is a forced sleep because we would produce too many FPS - Blizzard has issues when they were melting videocards - or it is sleep because waiting for I/O which we should not wait for). This is not a show stopper, and the game is playable with Low shaders 35+ FPS, but finding this cause may fix performance a lot, not only for this game. Again, finding the bottleneck should be the hardest part. Let me know what you think, Cheers, -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Ema <ema.oriani(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #31775|When CPU frequency is left |When CPU frequency is left description|to |to 'Performance' -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Eric <8jmtfa1e(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |8jmtfa1e(a)gmail.com --- Comment #9 from Eric <8jmtfa1e(a)gmail.com> 2010-11-08 06:27:31 CST --- It's not just the CPU that's idle. The GPU is also in an idle state. Using aticonfig I noticed that my graphics card is just using 25% of it's performance while the frame rate usually is below 20 FPS. The card is continuously running in its lowest power state. This bug is not really effected by the CPU frequency because if it was, frame rates would sky rocket when performance settings was used. No, there's obviously a bug hidden somewhere in the wine source code forcing our precious application to stall/sleep. Though finding it could be somewhat tricky. Maybe it would be possible to find the bug through profiling.. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #10 from Ema <ema.oriani(a)gmail.com> 2010-11-08 08:28:20 CST --- I can confirm even nVidia GPU (470 GTX) goes to level 1 instead of level 3. Probably we should intercept the low level API and see if/when we call nanosleep. Cheers, -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Eric <8jmtfa1e(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #11 from Eric <8jmtfa1e(a)gmail.com> 2010-11-08 10:12:29 CST --- *** This bug has been confirmed by popular vote. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #12 from Eric <8jmtfa1e(a)gmail.com> 2010-11-09 03:20:11 CST --- It spends some time using RtlEnterCriticalSection. The functions is located among the top 10 most time consuming functions. The function can be found at "dlls/ntdll/critsection.c". http://source.winehq.org/WineAPI/RtlEnterCriticalSection.html -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #13 from Eric <8jmtfa1e(a)gmail.com> 2010-11-09 03:41:43 CST --- RtlEnterCriticalSection is followed by NtDelayExecution which is also quite time consuming. NtDelayExecution can be found at "dlls/ntdll/sync.c". -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Henrik Olsson <henrik(a)fixme.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |henrik(a)fixme.se -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #14 from Ema <ema.oriani(a)gmail.com> 2011-06-05 03:54:37 CDT --- To add a bit more colour, one can fix this behaviour by setting the affinity of Starcraft II(i.e. on which processors/cores all the process' threads run) to force all the threads to run on one and one only core. This way that very core will be implicitly used to 100% and the game will run fast. Cheers, -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Marc <m.even(a)neuf.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.even(a)neuf.fr -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #15 from Marc <m.even(a)neuf.fr> 2011-06-24 12:42:09 CDT --- Hello ! Same bug here ! speedstep desactivated, Q6600 OC 3 ghz Starcraft 2 use 50 % of 4 cores With this command taskset -p 2 `pidof SC2.exe` starcraft 2 use 100 % core 1 and 50 % core 2. No problem on GPU GTX 460 on other side. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Nikolai Vincent Vaags <kujeger(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kujeger(a)gmail.com --- Comment #16 from Nikolai Vincent Vaags <kujeger(a)gmail.com> 2011-11-09 17:37:11 CST --- I can confirm that issuing the taskset command almost doubles the FPS of SC2. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Torsten Andersson <torsten.andersson(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |torsten.andersson(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #17 from Torsten Andersson <torsten.andersson(a)gmail.com> 2012-04-30 09:37:29 CDT --- taskset didn't help my fps. When I tried it used one core to 70% and only get 30 fps on ultra settings. I was using performance on cpu governor. I got a AMD 1090t and linux kernel 3.2.12, wine version 1.5.2, nvidia-drivers-295.40 on a geforce gtx 460. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 Jean-Noel Rivasseau <elvanor2007(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |elvanor2007(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=24558 jon <j0nplayers(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |j0nplayers(a)hotmail.com --- Comment #18 from jon <j0nplayers(a)hotmail.com> 2013-03-08 00:10:25 CST --- Cpu amd phenom 2 x4 955 processor x4 Vid Using x.org x server amd/ati display wrapper radeon hd 6870 ram 4g ubuntu 12.10 quatal quentel or whatevs My symptoms are extremely low frame rates even in low graphics. Even in windowed mode. My task manager says my ram peaks at 70% usage and my cpu peaks at 60% usage. I suspect the same problem. Ii've tried some regestry changes and changing the priorities but nothing so far has helped with fps. This seems like an old problem , can we maybe get a progress feedback? Wine 1.5.25. No problems installing. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=24558 --- Comment #19 from Austin English <austinenglish(a)gmail.com> --- This is your friendly reminder that there has been no bug activity for over 700 days. Is this still an issue in current (1.7.36 or newer) wine? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=24558 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |ABANDONED --- Comment #20 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Abandoned. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=24558 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #21 from Bruno Jesus <00cpxxx(a)gmail.com> --- Closing abandoned bugs. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org