[Bug 45761] New: High CPU usage in some games
https://bugs.winehq.org/show_bug.cgi?id=45761 Bug ID: 45761 Summary: High CPU usage in some games Product: Wine Version: 3.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: SolisX007(a)yahoo.com Distribution: --- Hello everyone, I'm getting high cpu usage in some games. For exsample Need For Speed Hot Pursuit 2 i usually get around 58% cpu usage but with wine-3.14 i got around 70% + cpu usage. -- 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=45761 Lunknown <SolisX007(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard(a)winehq.org Regression SHA1| |dd0ea0a61463db83c647a9367ca | |61e2b69a98eb3 -- 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=45761 --- Comment #1 from Lunknown <SolisX007(a)yahoo.com> --- High cpu usage in multiple games. wine-3.1 good wine-3.2 bad -- 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=45761 --- Comment #2 from Lunknown <SolisX007(a)yahoo.com> --- dd0ea0a61463db83c647a9367ca61e2b69a98eb3 is the first bad commit commit dd0ea0a61463db83c647a9367ca61e2b69a98eb3 Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Feb 16 09:39:08 2018 +0330 wined3d: Enable the multi-threaded command stream by default. Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> :040000 040000 494432da56fa4c73f71f62151a3013fd4a6fb850 501f26cfd0dbf7d24224ad1f5fabfd9e8ce569c9 M dlls -- 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=45761 --- Comment #3 from Henri Verbeet <hverbeet(a)gmail.com> --- Well, it's expected that enabling csmt will increase CPU utilisation. You might even say desired. Perhaps there's room for improvement, but I wouldn't consider that a regression. -- 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=45761 --- Comment #4 from Lunknown <SolisX007(a)yahoo.com> --- Hello Henri Verbeet, Well there should at least be a way to turn csmt off. I did not see any way to turn it of in winecfg. BTW: On Need For Speed Hot Pursuit 2 i usually see the cpu uage to be 57%. With cmst enabled i see the cpu usage does to 100%. -- 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=45761 --- Comment #5 from Lunknown <SolisX007(a)yahoo.com> --- (In reply to Lunknown from comment #4)
Hello Henri Verbeet,
Well there should at least be a way to turn csmt off. I did not see any way to turn it of in winecfg.
BTW: On Need For Speed Hot Pursuit 2 i usually see the cpu uage to be 57%. With cmst enabled i see the cpu usage does to 100%.
Hello Henri Verbeet, Well there should at least be a way to turn csmt off. I did not see any way to turn it of in winecfg. BTW: On Need For Speed Hot Pursuit 2 i usually see the cpu uage to be 57%. With cmst enabled i see the cpu usage does to 100%. -- 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=45761 --- Comment #6 from Lunknown <SolisX007(a)yahoo.com> --- Also i would like to add that i tried adding this to the registry HKCU/Software/Wine/Direct3D/CSMT=disabled but i still get high cpu usage. -- 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=45761 Andrew Wesie <awesie(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |awesie(a)gmail.com --- Comment #7 from Andrew Wesie <awesie(a)gmail.com> --- (In reply to Henri Verbeet from comment #3)
Well, it's expected that enabling csmt will increase CPU utilisation. You might even say desired. Perhaps there's room for improvement, but I wouldn't consider that a regression. This intentional behavior has become apparent to me as well over the past two weeks, but I don’t think it is obvious to regular users that one CPU core may constantly spin loop if their GPU is slow (e.g. waiting on present or space in the queue).
-- 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=45761 --- Comment #8 from Lunknown <SolisX007(a)yahoo.com> ---
Well, it's expected that enabling csmt will increase CPU utilisation. You might >even say desired. Perhaps there's room for improvement, but I wouldn't consider >that a regression.
Also using more of the cpu means more heat. I like to keep my system as cool as possible. -- 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=45761 --- Comment #9 from Henri Verbeet <hverbeet(a)gmail.com> --- (In reply to Lunknown from comment #6)
Also i would like to add that i tried adding this to the registry
HKCU/Software/Wine/Direct3D/CSMT=disabled
but i still get high cpu usage.
The "csmt" registry key is a DWORD value, not a string. Set it to 0 (DWORD) to disable CSMT. See also https://wiki.winehq.org/Useful_Registry_Keys. (In reply to Andrew Wesie from comment #7)
This intentional behavior has become apparent to me as well over the past two weeks, but I don’t think it is obvious to regular users that one CPU core may constantly spin loop if their GPU is slow (e.g. waiting on present or space in the queue).
We've been working on optimising resource maps, but it's tricky to get right. Once those land though, we should also be able to reduce spin counts as well, since the CS thread stalling should become much rarer under normal circumstances. Likewise, it may become more reasonable to wait on an event in e.g. wined3d_cs_emit_present() at that point. Ultimately though, that's going to help applications that don't spend all that much time rendering. CPU usage is still expected to be higher than without CSMT on average, simply because we're expected to be pushing more work to the GPU. -- 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=45761 Adrian Kalla <adrian.kalla(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38169 -- 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=45761 Adrian Kalla <adrian.kalla(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adrian.kalla(a)gmail.com -- 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=45761 --- Comment #10 from Lunknown <SolisX007(a)yahoo.com> --- (In reply to Henri Verbeet from comment #9)
(In reply to Lunknown from comment #6)
The "csmt" registry key is a DWORD value, not a string. Set it to 0 (DWORD) to disable CSMT. See also https://wiki.winehq.org/Useful_Registry_Keys.
Ok i see. One more thing with the csmt i just notice. On Grandia 2 if i disable csmt the GameArts Video logo does not show up. Here is a video with csmt disabled. https://streamable.com/hp064 However if i have csmt enabled the GameArts Video logo shows up. Here is a video with csmt enable on grandia 2. https://streamable.com/dvlol So is this another bug? -- 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=45761 --- Comment #11 from Lunknown <SolisX007(a)yahoo.com> --- Sorry i copied the video links in the wrong order. csmt disable Grandia 2 gamearts does not show up. https://streamable.com/dvlol csmt enable Grandia 2 gamearts does show up. https://streamable.com/hp064 But anyways is this a csmt bug? -- 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=45761 --- Comment #12 from Henri Verbeet <hverbeet(a)gmail.com> --- In principle, but not one that we're likely to give a high priority. Some classes of bugs are unfortunately not fixable in a reasonable way without csmt, and it's quite possible that this one belongs to one of those. -- 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=45761 zzzzzyzz(a)hacari.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz(a)hacari.org -- 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=45761 Lunknown <SolisX007(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|UNCONFIRMED |RESOLVED --- Comment #13 from Lunknown <SolisX007(a)yahoo.com> --- Ok. So then i'm closing this issue. -- 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=45761 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv(a)dawncrow.de --- Comment #14 from André H. <nerv(a)dawncrow.de> --- closing worksforme -- 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