https://bugs.winehq.org/show_bug.cgi?id=45072
Bug ID: 45072 Summary: Wine 3.6 causes 100% CPU use in MikuMikuDance Product: Wine Version: 3.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: myjunkmail311006@gmail.com Distribution: ---
In wine-3.6 (Ubuntu 3.6-1), running MikuMikuDance, an animation program, causes MikuMikuDance to stay at 100% CPU use (one CPU core).
In wine-3.0 (Ubuntu 3.0-1ubuntu1), it's at 21% CPU use under the same conditions, which is with nothing loaded and not rendering any frames using the 'save power' mode under View menu. with 'save power' mode turned off, it's at 31% CPU while rendering the coordinate axes at 58 fps.
In Wine 2.18, it used the same or less CPU as in 3.0.
I know the guidelines say to run a regression test but I don't think I could compile wine successfully; I'm using the Ubuntu 18.04 stable and development packages.
This happens with a default Wine install, which is enough to run 32-bit MMD without the addon MikuMikuEffect. (Installing a specific version of Visual C++ 2008 may be necessary to get 64-bit MMD to run at all.)
(With my CPUs set to lowest frequency, MMD goes to 50% CPU in 'top' with Wine 3.0. With Wine 3.6, MMD goes from 60~100% CPU at maximum frequency to 100~115% CPU at 1/3 frequency.)
https://bugs.winehq.org/show_bug.cgi?id=45072
Misaki myjunkmail311006@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance, regression
--- Comment #1 from Misaki myjunkmail311006@gmail.com --- MMD can be downloaded at http://www.geocities.jp/higuchuu4/index_e.htm
The WineHQ database has test results that explain how to make MMD work better, like getting the interface to show up.
https://bugs.winehq.org/show_bug.cgi?id=45072
--- Comment #2 from Misaki myjunkmail311006@gmail.com --- Example videos to get more people interested in fixing this bug:
MMD: Take a Hint https://www.youtube.com/watch?v=bBaj_w4Gplg
[MMD] Canon Rock - Violin Ver (Luka) https://www.youtube.com/watch?v=ZpHATGTOOgo
Not actually MMD, but featuring the same character Despacito - Luka Megurine https://www.youtube.com/watch?v=1Uk-jTOOBTw
【Anime style:GUMI・MIKU・TETO】 ECHO 【MMD-PV】 https://www.youtube.com/watch?v=jPzZnOc9iVs
[MMD] Ievan Polkka Guns - Megurine Luka Cosplay Lara https://www.youtube.com/watch?v=_oOeaKtfnhY
【MMD】 神裂火織ルカさん 極楽浄土 https://www.youtube.com/watch?v=r4qJaRb9HWc
https://bugs.winehq.org/show_bug.cgi?id=45072
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=45072
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 URL| |http://www.geocities.jp/hig | |uchuu4/pict/MikuMikuDanceE_ | |v931.zip Summary|Wine 3.6 causes 100% CPU |Enabling csmt causes 100% |use in MikuMikuDance |CPU use in MikuMikuDance Status|UNCONFIRMED |NEW Keywords| |download Component|-unknown |directx-d3d CC| |dark.shadow4@web.de
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- Bisected it to
commit dd0ea0a61463db83c647a9367ca61e2b69a98eb3 (refs/bisect/bad) Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Feb 16 09:39:08 2018 +0330
wined3d: Enable the multi-threaded command stream by default.
However, this doesn't really help, since it's not a regression in that sense.
CSMT is controlled through the registry key HKCU/Software/Wine/Direct3D/csmt, which is a DWORD value. Setting the key to 0 will disable the feature, while setting it to 1 will enable the feature.
Disabling csmt returns the CPU usage to normal levels with wine-3.7.
https://bugs.winehq.org/show_bug.cgi?id=45072
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #4 from joaopa jeremielapuree@yahoo.fr --- CSMT is enabled by default. What is the status of this bug with current wine (3.20)?
https://bugs.winehq.org/show_bug.cgi?id=45072
--- Comment #5 from joaopa jeremielapuree@yahoo.fr --- Bug still occurs with wine-5.0-rc1. Download link is burst but this one is working: https://download.cnet.com/MikuMikuDance-MMD/3000-2186_4-75872484.html
Can an administrator close this bug at the URL place?
https://bugs.winehq.org/show_bug.cgi?id=45072
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.geocities.jp/hig |https://sites.google.com/vi |uchuu4/pict/MikuMikuDanceE_ |ew/evpvp/ |v931.zip |
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- @joaopa That looks a lot like an illegal re-upload.
The official download is https://sites.google.com/view/evpvp/ MikuMikuDance (DirectX9 Ver.)
I can confirm the issue for this download in wine-4.21.
https://bugs.winehq.org/show_bug.cgi?id=45072
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Regression SHA1| |dd0ea0a61463db83c647a9367ca | |61e2b69a98eb3
https://bugs.winehq.org/show_bug.cgi?id=45072
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-8.7? I can not test by myself since I do not know how to use this software.
https://bugs.winehq.org/show_bug.cgi?id=45072
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- Yes, still present as of wine-8.7. To test, just run the software, it will fully use one cpu core. Then try it with WINE_D3D_CONFIG=csmt=0 to work around the issue.
https://bugs.winehq.org/show_bug.cgi?id=45072
--- Comment #9 from joaopa jeremielapuree@yahoo.fr --- Thanks for the how-to. Next time, I will be able to test by myself.
https://bugs.winehq.org/show_bug.cgi?id=45072
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |f032ccc2715a5525601f741337a | |7bc7df6873c9d
--- Comment #10 from Zeb Figura z.figura12@gmail.com --- As of https://source.winehq.org/git/wine.git/commitdiff/f032ccc2715a5525601f741337a7bc7df6873c9d we should no longer be using 100% CPU in this (and most other) applications.
https://bugs.winehq.org/show_bug.cgi?id=45072
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.19.