http://bugs.winehq.org/show_bug.cgi?id=22774
Summary: DirectX installer very slow on wine Product: Wine Version: 1.1.44 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, Installer Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
It takes quite a few minutes for the DirectX installer to run. This matters because it's invoked by many game installers, and before first run of some games (e.g. CODMW2) on Steam. The load average while it's running is close to zero.
One thread in it seems to be doing a Sleep(5000) frequently, after which another thread does some message pumping for a second or so. windows/logs/DirectX.log is slowly outputting a series of lines like
... 05/19/10 10:23:37: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.AudioVideoPlayback:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:23:42: dxupdate: CMDXInstall::Install(): no update in GAC. 05/19/10 10:23:42: dxupdate: CMDXInstall::Install(): Microsoft.DirectX.Diagnostics 05/19/10 10:23:42: dxupdate: Installed assembly Microsoft.DirectX.Diagnostics 05/19/10 10:23:42: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Diagnostics:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:23:47: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Diagnostics:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:23:52: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Diagnostics:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:23:57: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Diagnostics:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:02: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Diagnostics:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:07: dxupdate: CMDXInstall::Install(): no update in GAC. 05/19/10 10:24:07: dxupdate: CMDXInstall::Install(): Microsoft.DirectX.Direct3D 05/19/10 10:24:07: dxupdate: Installed assembly Microsoft.DirectX.Direct3D 05/19/10 10:24:07: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Direct3D:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:12: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Direct3D:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:17: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Direct3D:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:22: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Direct3D:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:27: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Direct3D:31bf3856ad364e35:31bf3856ad364e35 is not there. 05/19/10 10:24:32: dxupdate: CMDXInstall::Install(): no update in GAC. 05/19/10 10:24:32: dxupdate: CMDXInstall::Install(): Microsoft.DirectX.Direct3DX 05/19/10 10:24:32: dxupdate: CFusion::GetAssemblyList(): Microsoft.DirectX.Direct3DX:31bf3856ad364e35:31bf3856ad364e35 is not there. ...
Can we trick the installer into not installing anything, and thereby completing quickly, by setting some registry values?
http://bugs.winehq.org/show_bug.cgi?id=22774
--- Comment #1 from Dan Kegel dank@kegel.com 2010-05-19 12:40:02 --- Created an attachment (id=28094) --> (http://bugs.winehq.org/attachment.cgi?id=28094) Log of dxsetup /silent on Windows 7
http://bugs.winehq.org/show_bug.cgi?id=22774
--- Comment #2 from Dan Kegel dank@kegel.com 2010-05-19 12:41:33 --- Created an attachment (id=28095) --> (http://bugs.winehq.org/attachment.cgi?id=28095) Log of dxsetup /silent on Wine
dxsetup /silent takes 32 seconds on Windows 7, and 7m36s on Wine.
http://bugs.winehq.org/show_bug.cgi?id=22774
--- Comment #3 from Dan Kegel dank@kegel.com 2010-05-19 12:56:38 --- Created an attachment (id=28098) --> (http://bugs.winehq.org/attachment.cgi?id=28098) Immediately after last run, did 'sh winetricks win7' and then ran wine dxsetup /silent again. Still slow.
It looks like it's sleeping 5 seconds between checking the GAC to see if something has shown up there yet. Are we updating that at all?
http://bugs.winehq.org/show_bug.cgi?id=22774
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Severity|normal |major
http://bugs.winehq.org/show_bug.cgi?id=22774
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |minor
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2010-05-20 00:29:29 --- All the performance related bugs are minor, there is no loss of functionality.
http://bugs.winehq.org/show_bug.cgi?id=22774
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eg.galano@gmail.com
--- Comment #5 from Austin English austinenglish@gmail.com 2010-05-24 14:17:55 --- *** Bug 22858 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=22774
--- Comment #6 from Dan Kegel dank@kegel.com 2010-07-06 16:50:23 --- Owen posted a patch, http://www.winehq.org/pipermail/wine-patches/2010-July/090295.html
IMHO, adding five minutes to just about every game installer is more than minor, since it slows down development in general.
http://bugs.winehq.org/show_bug.cgi?id=22774
--- Comment #7 from Austin English austinenglish@gmail.com 2010-07-20 11:53:15 --- (In reply to comment #6)
Owen posted a patch, http://www.winehq.org/pipermail/wine-patches/2010-July/090295.html
IMHO, adding five minutes to just about every game installer is more than minor, since it slows down development in general.
Patch 1/2 committed: http://source.winehq.org/git/wine.git/?a=commitdiff;h=c6d34d7b05aec8dae05c2d...
http://source.winehq.org/patches/data/63692 is still outstanding, but the tests failed: === W2K3R2SESP2 (32 bit asmname) === asmname.c:738: Test failed: Expected "wine, processorArchitecture=x86", got "wine" asmname.c:739: Test failed: Expected 32, got 5 asmname.c:751: Test failed: Expected "wine, processorArchitecture=AMD64", got "wine" asmname.c:752: Test failed: Expected 34, got 5 asmname.c:764: Test failed: Expected "wine, processorArchitecture=IA64", got "wine" asmname.c:765: Test failed: Expected 33, got 5 asmname.c:777: Test failed: Expected "wine, processorArchitecture=MSIL", got "wine" asmname.c:778: Test failed: Expected 33, got 5
http://bugs.winehq.org/show_bug.cgi?id=22774
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from Austin English austinenglish@gmail.com 2010-07-21 11:02:54 --- http://source.winehq.org/git/wine.git/?a=commitdiff;h=11dea57f692d1a3c24eebd...
2/2 committed. Thanks Owen!
http://bugs.winehq.org/show_bug.cgi?id=22774
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2010-07-30 12:58:00 --- Closing bugs fixed in 1.3.0.
http://bugs.winehq.org/show_bug.cgi?id=22774
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |11dea57f692d1a3c24eebd5b393 | |b05711301b5fa CC| |focht@gmx.net Component|-unknown |fusion