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@winehq.org Reporter: SolisX007@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.
https://bugs.winehq.org/show_bug.cgi?id=45761
Lunknown SolisX007@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org Regression SHA1| |dd0ea0a61463db83c647a9367ca | |61e2b69a98eb3
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #1 from Lunknown SolisX007@yahoo.com --- High cpu usage in multiple games.
wine-3.1 good wine-3.2 bad
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #2 from Lunknown SolisX007@yahoo.com --- dd0ea0a61463db83c647a9367ca61e2b69a98eb3 is the first bad commit commit dd0ea0a61463db83c647a9367ca61e2b69a98eb3 Author: Henri Verbeet hverbeet@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
:040000 040000 494432da56fa4c73f71f62151a3013fd4a6fb850 501f26cfd0dbf7d24224ad1f5fabfd9e8ce569c9 M dlls
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #3 from Henri Verbeet hverbeet@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.
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #4 from Lunknown SolisX007@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%.
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #5 from Lunknown SolisX007@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%.
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #6 from Lunknown SolisX007@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.
https://bugs.winehq.org/show_bug.cgi?id=45761
Andrew Wesie awesie@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |awesie@gmail.com
--- Comment #7 from Andrew Wesie awesie@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).
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #8 from Lunknown SolisX007@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.
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #9 from Henri Verbeet hverbeet@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.
https://bugs.winehq.org/show_bug.cgi?id=45761
Adrian Kalla adrian.kalla@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38169
https://bugs.winehq.org/show_bug.cgi?id=45761
Adrian Kalla adrian.kalla@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adrian.kalla@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #10 from Lunknown SolisX007@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.
However if i have csmt enabled the GameArts Video logo shows up. Here is a video with csmt enable on grandia 2.
So is this another bug?
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #11 from Lunknown SolisX007@yahoo.com --- Sorry i copied the video links in the wrong order.
csmt disable Grandia 2 gamearts does not show up.
csmt enable Grandia 2 gamearts does show up.
But anyways is this a csmt bug?
https://bugs.winehq.org/show_bug.cgi?id=45761
--- Comment #12 from Henri Verbeet hverbeet@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.
https://bugs.winehq.org/show_bug.cgi?id=45761
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=45761
Lunknown SolisX007@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|UNCONFIRMED |RESOLVED
--- Comment #13 from Lunknown SolisX007@yahoo.com --- Ok. So then i'm closing this issue.
https://bugs.winehq.org/show_bug.cgi?id=45761
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #14 from André H. nerv@dawncrow.de --- closing worksforme