http://bugs.winehq.org/show_bug.cgi?id=11227
Summary: Defective specular lighting support makes certain games hardly playable Product: Wine Version: 0.9.53. Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: samurai_no_densetsu@yahoo.es
In this case Blade of darkness, suffer heavy performane issues when a specular lighting is draw on the screen, dropping framerate to 1fps or below on Direct3D modes, even at lower resolution modes like 640x480.
I can confirm that is a specular lighting issue, because one of the fixed D3D plugins that brings the game is for 3Dfx Voodoo 1 and 2 cards that didn't had hardware support for specular lighting, and with these game runs flawless, in the other side the rest of the D3D plugins runs at full framerate except when a specular lighting is drawn in the screen, like when you're looking at a torch, then is when framerate fall to its minimun.
Also older wine versions complaints about specular lighting drawing, latest one (0.9.53) suffer exactly the same problem of any other wine version I have tested with this game.
I add some wine logs
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #1 from Athrun samurai_no_densetsu@yahoo.es 2008-01-16 14:20:09 --- Created an attachment (id=10313) --> (http://bugs.winehq.org/attachment.cgi?id=10313) Traces of a wine-0.9.9
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #2 from Athrun samurai_no_densetsu@yahoo.es 2008-01-16 14:20:49 --- Created an attachment (id=10314) --> (http://bugs.winehq.org/attachment.cgi?id=10314) Traces of a wine-0.9.15
http://bugs.winehq.org/show_bug.cgi?id=11227
Alexander Dorofeyev alexd4@inbox.lv changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexd4@inbox.lv
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #3 from Athrun samurai_no_densetsu@yahoo.es 2008-01-16 14:21:17 --- Created an attachment (id=10315) --> (http://bugs.winehq.org/attachment.cgi?id=10315) Traces of a wine-0.9.53
http://bugs.winehq.org/show_bug.cgi?id=11227
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |-unknown OS/Version|All |other Platform|All |Other
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2008-01-16 14:49:00 --- Select your OS and hardware _only_.
What do you mean 3d? Voodoo cards had no 3d (HW T&L).
What are the traces you attached? How were they created? Doing what? On What hardware? Why did you attached logs from 2 Wine versions that are more then year old? What so important about them? What happened differently for your when you used those old versions?
http://bugs.winehq.org/show_bug.cgi?id=11227
Athrun samurai_no_densetsu@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|other |Linux Platform|Other |PC
--- Comment #5 from Athrun samurai_no_densetsu@yahoo.es 2008-01-16 15:35:31 --- Well this game has no options to enable or disable features, just provides fixed plugins (dlls) with fixed features, none that can be changed by a user.
An its a very specific graphic issue, framerate drops critically on a very specific situation, at least in this game.
The point is the only one that works flawless is an stripped down Direct3D plugin for Voodoo 1 and 2 cards, stripped down because of their limited hardware.
Also point I was trying to show was that even older versions suffer the same behavior (if not every one I have tested between these), everything runs fine, at full speed ... until you reach somewhere that specular lighting comes into screen, on ambient lighting everything is ok.
The older logs reports that specular lighting is broken, but it don't seem to be fixed as wine-0.9.53 suffer the same exact symptoms, not a single improvement respect to that issue.
And sorry if that's not the procedure or if the logs aren't done in a right way but I didn't find any guideline, even the bug reporting guideline looks too generalistic. So I will provide better traces with some small aid. Just trying to provide good info in order to improve wine :)
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #6 from Austin English austinenglish@gmail.com 2008-06-05 11:17:23 --- Is this still an issue in 1.0-rc3 or newer wine?
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #7 from Athrun samurai_no_densetsu@yahoo.es 2008-06-15 09:13:59 --- (In reply to comment #6)
Is this still an issue in 1.0-rc3 or newer wine?
Tested today with 1.0-rc5, and yes, still an issue.
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #8 from Athrun samurai_no_densetsu@yahoo.es 2008-06-19 05:38:32 --- I can provide traces on request if need
http://bugs.winehq.org/show_bug.cgi?id=11227
--- Comment #9 from Athrun samurai_no_densetsu@yahoo.es 2008-07-09 07:17:02 --- Comparing logs done with WINEDEBUG=+d3d I found some difference between fast and slow plugins there:
A couple of plugins (Vodoo 1-2 D3d v4 and D3d i740 windows 98) seems to do vertex declaration thru the graphic card, indeed are lighting fast and almost problem free.
While the rest D3D plugins drops the following:
trace:d3d_draw:drawStridedSlow Using slow vertex array code trace:d3d_draw:drawStridedSlow glEnd and previous calls call ok drawprim.c / 572
And their fps rate drops to less than one frame/second when a torch, candle or fire becomes visible on the screen.
Should I assume that drawStridedSlow is some kind of software vertex rendering that is slow?
http://bugs.winehq.org/show_bug.cgi?id=11227
Athrun samurai_no_densetsu@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX
--- Comment #10 from Athrun samurai_no_densetsu@yahoo.es 2008-07-28 13:42:45 --- Reached to the following conclusion, some of Blade of Darkness plugins use software pixel shaders to bypass cards lacking hardware pixel shading support (or other support).
This seems to be handled by Wine thru drawStridedSlow, which is really slow, but not really a bug.
Marking as WONTFIX.
http://bugs.winehq.org/show_bug.cgi?id=11227
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Austin English austinenglish@gmail.com 2008-09-17 08:51:31 --- Closing WONTFIX.