http://bugs.winehq.org/show_bug.cgi?id=22528
Summary: King's bounty armored princess really slow Product: Wine Version: 1.1.43 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: jskartman@gmail.com
The first scenario, your father's castle is played flawlessly, the console output shows no errors. But when you enter on the second scenario, debir island, there is a severe slowdown after 5 seconds. Yes you notice that 5 second of good frame rate and then suddenly a severe slow down. When this happens the console output constantly throws:
fixme:d3d_surface:IWineD3DBaseSurfaceImpl_Blt Filters not supported in software blit fixme:d3d_texture:basetexture_generate_mipmaps iface 0x3a446e8 stub! fixme:d3d_texture:basetexture_generate_mipmaps iface 0x3a446e8 stub!
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #1 from Jaime jskartman@gmail.com 2010-04-29 06:00:36 --- I am using fglrx. Todays git or disable antialiasing and shadows doesn't help.
http://bugs.winehq.org/show_bug.cgi?id=22528
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-29 09:01:56 --- Exact duplicate. Please search bugs first.
*** This bug has been marked as a duplicate of bug 22478 ***
http://bugs.winehq.org/show_bug.cgi?id=22528
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-29 09:02:05 --- Closing
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #4 from Jaime jskartman@gmail.com 2010-04-29 15:45:06 --- (In reply to comment #3)
Closing
noooo! it is not a duplicate, disabling shadows doesn't help, and it is not a regresion I always observed this slowdow (ummm wine 1.1.38)
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #5 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-29 22:24:43 --- Let Roderick figure it out. At least wait for that bug to get solved first. If your problem still persist you can always reopen this bug.
http://bugs.winehq.org/show_bug.cgi?id=22528
Roderick Colenbrander thunderbird2k@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED CC| |thunderbird2k@gmail.com Resolution|DUPLICATE |
--- Comment #6 from Roderick Colenbrander thunderbird2k@gmail.com 2010-04-30 04:18:38 --- This bug is quite different from bug 22478 which is about a performance regression. I'm not actually sure if 22478 is a valid bug or not. I looked at that bug with the reporter on IRC and he experiences a big drop due to a patch I added to 1.1.43. He is using a Geforce7 but I can't reproduce the drop on dx10-class GPUs like a radeon hd3450 and a Geforce GTS360. The patch fixed an actual bug and I guess this code (FBO stuff) is not efficient on older GPUs, so the issue might not be solvable and I'm keeping the bug as a place holder.
The issue described here is quite easy to fix (I posted a patch to wine-patches but it needs more work but can be used safely). It is about preventing unneeded gpu -> cpu -> gpu uploads which slow the game down a lot.
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #7 from Henri Verbeet hverbeet@gmail.com 2010-04-30 04:33:55 --- (In reply to comment #6)
dx10-class GPUs like a radeon hd3450 and a Geforce GTS360. The patch fixed an actual bug and I guess this code (FBO stuff) is not efficient on older GPUs, so the issue might not be solvable and I'm keeping the bug as a place holder.
The performance regression makes perfect sense actually, and I'm seeing it here as well in multiple applications on a GF 9600M.
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #8 from Roderick Colenbrander thunderbird2k@gmail.com 2010-04-30 07:33:14 --- Alright I can take another look but to be honest I didn't see a difference in my testing the performance became better but I will retry it.
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #9 from Jaime jskartman@gmail.com 2010-05-10 03:38:26 --- The Roderick Colenbrander patch (not in wine yet) that solves this problem:
http://www.winehq.org/pipermail/wine-patches/2010-April/087852.html
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #10 from Roderick Colenbrander thunderbird2k@gmail.com 2010-05-10 04:55:05 --- (In reply to comment #9)
The Roderick Colenbrander patch (not in wine yet) that solves this problem:
http://www.winehq.org/pipermail/wine-patches/2010-April/087852.html
Lets just say that due to some circumstances I was out of the running for a week. Some more effort is required to fix this issue. The patch itself wasn't bad but it can be done in a nicer way. I'm not entirely sure how much work it is and how much other code I still have to fix before a patch like this can enter. The main issue is that we are entering a code freeze for Wine 1.2 this week and I don't want to break much more stuff.
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #11 from Jaime jskartman@gmail.com 2010-05-10 06:20:43 --- wine 1.2, wow!!
The patch is working *awesome* here, good work Rodrick!!, I tried my other games: Gratuitous space battles and titan quest, they are not broken by this patch. It should be nice to have this patch on wine 1.2, it fixes and interesting and very playable game under wine, but it is your call, your are the dev :)
http://bugs.winehq.org/show_bug.cgi?id=22528
DL dredgingthelake@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dredgingthelake@gmail.com
--- Comment #12 from DL dredgingthelake@gmail.com 2010-11-25 01:59:15 CST --- I can confirm that this is still an issue with wine-1.3.7. FPS is 5-6 during the training centre sequence at the beginning of King's Bounty : The Legend. With wine-1.2.1 and Roderick's patch, FPS is 30-40.
Patch doesn't work with wine-1.3.7.
http://bugs.winehq.org/show_bug.cgi?id=22528
DL dredgingthelake@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #13 from DL dredgingthelake@gmail.com 2010-11-25 02:01:48 CST --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=22528
bidon.gamelle@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bidon.gamelle@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22528
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #14 from joaopa jeremielapuree@yahoo.fr 2011-06-13 01:35:24 CDT --- still a bug in current git?
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #15 from DL dredgingthelake@gmail.com 2011-06-13 04:24:58 CDT --- (In reply to comment #14)
still a bug in current git?
Yes. Around 8 FPS with current git during training center area. I tried rediffing Roderick's patch with the current git but wasn't able to get it to work.
http://bugs.winehq.org/show_bug.cgi?id=22528
--- Comment #16 from Henri Verbeet hverbeet@gmail.com 2011-08-23 13:17:27 CDT --- This might be fixed in current git, could you retest?
http://bugs.winehq.org/show_bug.cgi?id=22528
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #17 from GyB gyebro69@gmail.com 2011-09-04 09:23:19 CDT --- I've just tested KB:The Legend as well as KB:Armored Princess in Wine-1.3.27 and the difference is convincing. While in 1.3.26 I was getting about 15-20 fps, in 1.3.27 I'm getting 37-45 fps.
This was measured with the following config: AMD Athlon 64 x2 4200+ Nvidia GeForce 250 / driver 280.13 the game was running @1440x900 resolution, 8xAniso, 0xFSAA, shadows=normal, everything else was set to high.
http://bugs.winehq.org/show_bug.cgi?id=22528
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #18 from Henri Verbeet hverbeet@gmail.com 2011-09-04 09:27:03 CDT --- Resolving FIXED.
http://bugs.winehq.org/show_bug.cgi?id=22528
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Alexandre Julliard julliard@winehq.org 2011-09-09 12:54:26 CDT --- Closing bugs fixed in 1.3.28.