http://bugs.winehq.org/show_bug.cgi?id=10559
Summary: C&C3 extremly slow Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: ambro@b4ever.net CC: stefandoesinger@gmx.at
In current wine git, I get bad fps in C&C3. Normally the game worked fine at the lowest quality, but I get 3 fps after the following commit:
959212304dfaf0e7459374593b20b74fe22a0b57 wined3d: Track vertex declaration changes on vertex shaders.
card is Nvidia Quadro NVS 130, driver 100.14.23
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #1 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-24 11:32:45 --- Does it write anything about recompiling shaders since this patch?
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #2 from Ambro ambro@b4ever.net 2007-11-24 12:15:13 --- No, I don't see anything. I'm attaching outputs.
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #3 from Ambro ambro@b4ever.net 2007-11-24 12:15:37 --- Created an attachment (id=9320) --> (http://bugs.winehq.org/attachment.cgi?id=9320) outout in 0.9.49
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #4 from Ambro ambro@b4ever.net 2007-11-24 12:16:01 --- Created an attachment (id=9321) --> (http://bugs.winehq.org/attachment.cgi?id=9321) output in git
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #5 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-24 12:22:55 --- Can you attach a +d3d,+d3d_shader,d3d_decl log? It's best to load the game to a place where the regression can be seen, then wait a few secounds and kill it with ctrl+c or "wineserver -k". This way the logfile ends when the problematic code is executed and I do not have to find out what is startup stuff, what is the real issue and what is shutdown related.
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #6 from Ambro ambro@b4ever.net 2007-11-24 15:14:24 --- I've taken traces on 8800GTX where the slowdown also occurs. I set the lowest quality possible. The game has been even slower when taking traces becouse of the extreme output (the files are each half a gig uncompressed). What I did was started the game and loaded the savegame, then went back to desktop with alt+f3,minimize and closed the game with ctrl+c. The traces are based on wine one commit before and the one that causes the regression.
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #7 from Ambro ambro@b4ever.net 2007-11-24 15:23:39 --- I am unable to upload the files to bugzilla becouse they are too big, so I put them on some site: http://files-upload.com/files/639310/cnc3_out_good.bz2 http://files-upload.com/files/639319/cnc3_out_bad.bz2
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #8 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-25 08:53:35 --- Looks like a shader is recompiled every draw, but the swizzled attributes aren't stored properly
trace:d3d_shader:IWineD3DVertexShaderImpl_CompileShader (0x16154260) : function 0x161545d0 trace:d3d_shader:swizzled_attribs_differ Attribute WINED3DDECLUSAGE_COLOR0 is D3DCOLOR now but wasn't before warn:d3d_shader:IWineD3DVertexShaderImpl_CompileShader Recompiling vertex shader 0x16154260 due to D3DCOLOR input changes
...
trace:d3d_shader:IWineD3DVertexShaderImpl_CompileShader (0x16154260) : Generating hardware program trace:d3d_shader:find_swizzled_attribs New swizzled attributes array <nothing>
...
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #9 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-25 09:12:33 --- Created an attachment (id=9337) --> (http://bugs.winehq.org/attachment.cgi?id=9337) Proposed fix
Can you try the attached patch? It looks like I got a sign wrong in a calculation, and one of the swizzled attributes was accidentally removed from the array. This patch should fix the problem.
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #10 from Ambro ambro@b4ever.net 2007-11-25 10:59:06 --- Yes, your patch fixed it!
http://bugs.winehq.org/show_bug.cgi?id=10559
--- Comment #11 from Stefan Dösinger stefandoesinger@gmx.at 2007-11-25 12:18:23 --- Ok, I will send it to wine-patches then
http://bugs.winehq.org/show_bug.cgi?id=10559
Alexander Nicolaysen Sørnes alex@thehandofagony.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@thehandofagony.com Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #12 from Alexander Nicolaysen Sørnes alex@thehandofagony.com 2007-11-27 10:29:48 --- Confirming
http://bugs.winehq.org/show_bug.cgi?id=10559
Alexander Nicolaysen Sørnes alex@thehandofagony.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #13 from Alexander Nicolaysen Sørnes alex@thehandofagony.com 2007-11-28 10:26:14 --- Patch committed. Thanks for the quick fix, Stephan!
http://bugs.winehq.org/show_bug.cgi?id=10559
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Dan Kegel dank@kegel.com 2008-01-28 05:42:44 --- Closing all RESOLVED FIXED bugs older than four weeks.
http://bugs.winehq.org/show_bug.cgi?id=10559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified