http://bugs.winehq.org/show_bug.cgi?id=28520
Bug #: 28520 Summary: Diablo II game menu fps regression Product: Wine Version: 1.3.29 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-ddraw AssignedTo: wine-bugs@winehq.org ReportedBy: elton@schiert.net CC: hverbeet@gmail.com Classification: Unclassified Regression SHA1: 1aeee59bd8b6172c848c8029e1a55ddac1f93c44
There has been a behavior change in the game Diablo II caused by
http://source.winehq.org/git/wine.git/?a=commit;h=1aeee59bd8b6172c848c8029e1... Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Sep 15 20:01:50 2011 +0200 ddraw: Use offscreen backbuffers.
Before this patch the frame rate in the game menu (press Esc while in game) was limited to <=60. Now the frame rate can reach hundreds. Behavior on Windows: frame rate is limited at 60.
The reason I am reporting this: Shortly after opening the game menu there often is a short but very noticeable phase where everything behaves sluggishly, making it very hard to select the desired entry with the mouse.
The sluggishness/slowdown itself may not be a Wine bug since is not a problem when I switch NVIDIA PowerMizer from its default "Adaptive" to "Prefer Maximum Performance". That, however, is not an acceptable permanent solution on a laptop. Sync to VBlank settings do not change the behavior.
So far I have only been able to observe the slowdown when running the game in Direct3D mode, although the frame rate is now also unlimited when running in DirectDraw mode. All observations have been made with Diablo II Lord of Destruction 1.13c.
http://bugs.winehq.org/show_bug.cgi?id=28520
el elton@schiert.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=28520
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Diablo II game menu fps |Diablo II: low frame rate |regression |in game menu Severity|normal |minor
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #1 from el elton@schiert.net 2011-10-02 12:10:50 CDT --- Why did you change the title to say "low frame rate"? The problem is that the frame rate can now go way too high.
http://bugs.winehq.org/show_bug.cgi?id=28520
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-ddraw |directx-d3d
http://bugs.winehq.org/show_bug.cgi?id=28520
el2 el2el2el2el2@live.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |el2el2el2el2@live.com
--- Comment #2 from el2 el2el2el2el2@live.com 2012-01-04 11:30:46 CST --- Could someone please change the bug title to reflect the contents of the bug report? Frame rate is not too low. The problem is that it is too high, i.e. unlimited.
Problem is still present in wine-1.3.36-72-g8d66ca1.
http://bugs.winehq.org/show_bug.cgi?id=28520
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Diablo II: low frame rate |Diablo II: surface flips |in game menu |ignore vsync flags
--- Comment #3 from Henri Verbeet hverbeet@gmail.com 2012-01-27 11:38:03 CST --- The problem is that framebuffer blits to the frontbuffer ignore vsync / swap interval. We can fix that by blitting to the backbuffer instead and calling SwapBuffers() afterwards in those cases, but probably not before 1.4.
http://bugs.winehq.org/show_bug.cgi?id=28520
Bruni earns.61@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |earns.61@gmail.com
--- Comment #4 from Bruni earns.61@gmail.com 2012-02-09 00:48:36 CST --- Any chance the bug #28577 has similar causes with this one? Many effects in that game also have too high framerate.
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #5 from Henri Verbeet hverbeet@gmail.com 2012-02-11 14:18:14 CST --- (In reply to comment #4)
Any chance the bug #28577 has similar causes with this one? Many effects in that game also have too high framerate.
Possibly, but there's a decent amount of other things that could cause something like that as well.
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #6 from el2 el2el2el2el2@live.com 2012-03-07 16:59:13 CST --- As expected the problem is still present in wine-1.4.
http://bugs.winehq.org/show_bug.cgi?id=28520
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW CC| |wylda@volny.cz Ever Confirmed|0 |1
--- Comment #7 from Wylda wylda@volny.cz 2012-05-12 13:52:43 CDT ---
Hi, i'm joining this club/bug with Incoming game. Before there was a bug 24368 - "Incoming: game is uncontrollably fast" and that was fixed by Andrew as was mentioned in bug 24368.
Since wine-1.3.29 the Incoming is uncontrollably fast again thanks to commit mentioned here in comment #0.
Download: http://download.cnet.com/Incoming-demo/3000-7563_4-10018278.html
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #8 from Bruni earns.61@gmail.com 2012-06-30 03:13:33 CDT --- bug #28577 is fixed as of wine-1.5.7, could you re-test your bugs with diablo 2 and incoming demo?
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #9 from Henri Verbeet hverbeet@gmail.com 2012-06-30 04:16:30 CDT --- I'm fairly sure this one is still present, but retesting never hurts.
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #10 from el2 el2el2el2el2@live.com 2012-07-09 11:41:58 CDT --- Framerate in DII is still uncapped as of wine-1.5.8.
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #11 from Wylda wylda@volny.cz 2012-07-15 04:53:34 CDT ---
Incoming too is uncontrollably fast under wine-1.5.8-160-g8613d5e.
http://bugs.winehq.org/show_bug.cgi?id=28520
Brandon Corujo haku08879@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |haku08879@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #12 from el2 el2el2el2el2@live.com 2013-03-29 22:07:11 CDT --- Framerate in DII is still uncapped as of wine-1.5.27.
http://bugs.winehq.org/show_bug.cgi?id=28520
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #13 from Frédéric Delanoy frederic.delanoy@gmail.com --- Is this still an issue in latest wine (1.7.17 or later)?
https://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #14 from Henri Verbeet hverbeet@gmail.com --- (In reply to Frédéric Delanoy from comment #13)
Is this still an issue in latest wine (1.7.17 or later)?
Most likely, yes.
https://bugs.winehq.org/show_bug.cgi?id=28520
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |delonly@gmail.com
--- Comment #15 from Béla Gyebrószki gyebro69@gmail.com --- *** Bug 32994 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=28520
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com Summary|Diablo II: surface flips |Diablo II (Panzer General |ignore vsync flags |II, Incoming): surface | |flips ignore vsync flags
--- Comment #16 from Béla Gyebrószki gyebro69@gmail.com --- Still present in wine-1.7.36-113-g797bd65, tested with the games Panzer General 2 and Incoming.
Fedora 21 Nvidia binary drivers 340.76
https://bugs.winehq.org/show_bug.cgi?id=28520
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@maytownsend.co.uk
--- Comment #17 from Béla Gyebrószki gyebro69@gmail.com --- *** Bug 40369 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=28520
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Diablo II (Panzer General |Surface flips ignore vsync |II, Incoming): surface |flags in multiple games |flips ignore vsync flags |(Diablo II, Panzer General | |II, Incoming, Imperium | |Galactica II)
https://bugs.winehq.org/show_bug.cgi?id=28520
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #18 from winetest@luukku.com --- (In reply to Béla Gyebrószki from comment #17)
*** Bug 40369 has been marked as a duplicate of this bug. ***
This was against wine 2.0rc6.
https://bugs.winehq.org/show_bug.cgi?id=28520
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tecywiz121@hotmail.com
--- Comment #19 from Matteo Bruni matteo.mystral@gmail.com --- *** Bug 40165 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=28520
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Surface flips ignore vsync |Surface flips ignore vsync |flags in multiple games |flags in multiple ddraw |(Diablo II, Panzer General |games (Diablo II, Panzer |II, Incoming, Imperium |General II, Incoming, |Galactica II) |Imperium Galactica II, | |Claw)
https://bugs.winehq.org/show_bug.cgi?id=28520
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |diwulefi@nincsmail.com
--- Comment #20 from Matteo Bruni matteo.mystral@gmail.com --- *** Bug 41779 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=28520
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Surface flips ignore vsync |Surface flips ignore vsync |flags in multiple ddraw |flags in ddraw (Claw, |games (Diablo II, Panzer |Diablo II, Imperium |General II, Incoming, |Galactica II, Incoming, |Imperium Galactica II, |Panzer General II, Unreal) |Claw) |
https://bugs.winehq.org/show_bug.cgi?id=28520
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winebugs140@gmail.com
--- Comment #21 from WineBuG winebugs140@gmail.com --- Has anyone tried to use libstrangle (frame rate limiter for Linux/OpenGL: https://github.com/torkel104/libstrangle) as a temporary workaround?
https://bugs.winehq.org/show_bug.cgi?id=28520
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ken@codeweavers.com
--- Comment #22 from WineBuG winebugs140@gmail.com --- On macOS, when playing Captain Claw (https://archive.org/details/CaptainClaw) and using the Mac Driver, there's something really strange going on that might be related to this very bug: if you DISABLE v-sync via the registry key "AllowVerticalSync" -- the animation speed is more or less correct (but not quite smooth). This is really weird, taking into account that this bug is basically about IGNORING V-SYNC by the game, and the fact that Windows users are generally ADVISED TO ENABLE V-SYNC to fix Captain Claw's animation speed and jumping issues (check out: http://www.kapitanpazur.piasta.pl/en/support.html)!
You can achieve a similar effect when using X11 on macOS as well.
https://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #23 from Del delonly@gmail.com --- (In reply to WineBuG from comment #21)
Has anyone tried to use libstrangle (frame rate limiter for Linux/OpenGL: https://github.com/torkel104/libstrangle) as a temporary workaround?
Thanks for the suggestion! I just tested it on Debian 9 with Panzer General II (Intel integrated graphics), it did unfortunately not work, things are still moving super fast :-(
https://bugs.winehq.org/show_bug.cgi?id=28520
Benj benj.callaghan@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |benj.callaghan@gmail.com
--- Comment #24 from Benj benj.callaghan@gmail.com --- (In reply to WineBuG from comment #22)
On macOS, when playing Captain Claw (https://archive.org/details/CaptainClaw) and using the Mac Driver, there's something really strange going on that might be related to this very bug: if you DISABLE v-sync via the registry key "AllowVerticalSync" -- the animation speed is more or less correct (but not quite smooth). This is really weird, taking into account that this bug is basically about IGNORING V-SYNC by the game, and the fact that Windows users are generally ADVISED TO ENABLE V-SYNC to fix Captain Claw's animation speed and jumping issues (check out: http://www.kapitanpazur.piasta.pl/en/support.html)!
You can achieve a similar effect when using X11 on macOS as well.
Thank you for posting this. I was having a similar problem on my Mac, specifically with Captain Claw. I had no problems running Claw on 2.x (don't remember the exact version). Everything ran out of the box. When I upgraded to 3.0-rc2, this issue appeared. Applying your registry change fixed Claw.
As a side note, Wine 2.x had been installed through the .pkg file from the main downloads page. Wine 3.0-rc2 was installed through homebrew, so maybe there was a configuration change that caused the re-appearance of this bug. The same wineprefix was used both times.
https://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #25 from Henri Verbeet hverbeet@gmail.com --- This should be fixed by commit 034e88e038e8114ec31261d88dece1e2691185fb.
https://bugs.winehq.org/show_bug.cgi?id=28520
--- Comment #26 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Henri Verbeet from comment #25)
This should be fixed by commit 034e88e038e8114ec31261d88dece1e2691185fb.
The issue in Imperium Galactica II is fixed (that was bug #40369).
I can't test Incoming at the moment, because the game throws an exception after the intro, could be a regression somewhere between 1.9.20 and 1.9.24, hasn't investigated it yet.
Panzer General II (bug #32994) has serious redrawing issues when I move the mouse pointer across the screen. The issue goes away if I revert 034e88e038e8114ec31261d88dece1e2691185fb. Apart from the redrawing issue, the game seems to run at normal speed now. Terminal output: 0009:fixme:win:EnumDisplayDevicesW ((null),0,0x33f674,0x00000000), stub! 0009:fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 8 0009:fixme:d3d:wined3d_device_reset Got unexpected backbuffer usage 0. 0009:fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 8 0009:fixme:ddraw:ddraw_surface7_Flip Ignoring flags 0x1.
https://bugs.winehq.org/show_bug.cgi?id=28520
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=28520
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |034e88e038e8114ec31261d88de | |ce1e2691185fb CC| |joseph.kucia@gmail.com Resolution|--- |FIXED
--- Comment #27 from Józef Kucia joseph.kucia@gmail.com --- (In reply to Henri Verbeet from comment #25)
This should be fixed by commit 034e88e038e8114ec31261d88dece1e2691185fb.
Marking as fixed.
(In reply to Béla Gyebrószki from comment #26)
Panzer General II (bug #32994) has serious redrawing issues when I move the mouse pointer across the screen. The issue goes away if I revert 034e88e038e8114ec31261d88dece1e2691185fb. Apart from the redrawing issue, the game seems to run at normal speed now.
Redrawing issues should be fixed by a362daeaf56e054c96d463edb2ae87e8956a6875.
https://bugs.winehq.org/show_bug.cgi?id=28520
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #28 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.6.