https://bugs.winehq.org/show_bug.cgi?id=39513
Bug ID: 39513 Summary: Desperados: input lag after resuming from pause Product: Wine Version: 1.7.53 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput Assignee: [email protected] Reporter: [email protected] Distribution: ---
Created attachment 52652 --> https://bugs.winehq.org/attachment.cgi?id=52652 Sample savegame (to avoid cutscenes)
While playing "Desperados: Dead or Alive" all input will lag for a few seconds after loading a saved game or resuming the game from the pause menu. It looks like all input is cached during that time and then executed all at once.
The issue can be reproduced with the demo, obtainable from the Internet Archive [1]:
1. Install the demo in a clean prefix; 2. (Optional) Copy the attached savegame folder to "Desperados Demo/Game/Data"; 3. Start the demo; 4. Load the savegame from 2. or start a new game; 5. Press "Esc" and click "Continue"; 6. Moving the mouse or pressing a keyboard shortcut will have no effect for a few seconds.
I've tested this issue on Arch Linux with wine stable 1.7.53 and with the current git head, wine-1.7.53-183-g12111d8.
[1]: https://archive.org/download/desperadosDemo/desperadosDemo.rar sha1: 3c07da95cdc6807b9c08ff3d17de64790c08ec07
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #1 from Alessandro Pezzoni [email protected] --- Created attachment 52653 --> https://bugs.winehq.org/attachment.cgi?id=52653 Log obtained with wine-1.7.53-183-g12111d8 and WINEDEBUG=+dinput
Since the normal wine output is just
fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit. fixme:d3d_surface:surface_cpu_blt Filter WINED3D_TEXF_LINEAR not supported in software blit.
I've attached a log generated with WINEDEBUG=+dinput.
https://bugs.winehq.org/show_bug.cgi?id=39513
Béla Gyebrószki [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW URL| |https://archive.org/downloa | |d/desperadosDemo/desperados | |Demo.rar CC| |[email protected] Component|directx-dinput |-unknown Ever confirmed|0 |1
--- Comment #2 from Béla Gyebrószki [email protected] --- This bug is present in Robin Hood: Legend of Sherwood, too (formerly both games were affected by bug #26875).
Confirming the bug, but I'm not sure this is a dinput issue (native doesn't help). FWIW, the bug is not present for me with Wine 1.5.15, but happens with 1.5.20 and newer.
Fedora 23 X Server 1.18.0 OpenGL vendor string: nouveau OpenGL renderer string: Gallium 0.4 on NV92 OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.1.0-devel
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #3 from Alessandro Pezzoni [email protected] --- I wanted to run a bisection, but sadly compiling wine 1.5.15 on my machine fails miserably, so I can't even confirm that the bug isn't present in that version.
https://bugs.winehq.org/show_bug.cgi?id=39513
Béla Gyebrószki [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
--- Comment #4 from Béla Gyebrószki [email protected] --- According to my testing, the issue was introduced by the commit which is also mentioned in bug #32618 bug #32621 bug #35605 possibly in bug #33296 too.
No keyboard and mouse input at all: http://source.winehq.org/git/wine.git/commit/841214ddb4d4dc620e6b51dfe6655b5...
Mouse and keyboard works again, but input lags as described in the current bug report: http://source.winehq.org/git/wine.git/commit/a0f039a6049641cc2be8fa32f2afa3c...
Tested in Wine 1.7.55.
https://bugs.winehq.org/show_bug.cgi?id=39513
Damian Ivanov [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
https://bugs.winehq.org/show_bug.cgi?id=39513
[email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #5 from [email protected] --- (In reply to Béla Gyebrószki from comment #4)
According to my testing, the issue was introduced by the commit which is also mentioned in bug #32618 bug #32621 bug #35605 possibly in bug #33296 too.
No keyboard and mouse input at all: http://source.winehq.org/git/wine.git/commit/ 841214ddb4d4dc620e6b51dfe6655b585d423edc
Mouse and keyboard works again, but input lags as described in the current bug report: http://source.winehq.org/git/wine.git/commit/ a0f039a6049641cc2be8fa32f2afa3c3f394a99b
Tested in Wine 1.7.55.
One of those bugs got fixed in 1.8rc3 another marked fixed 1.9.0.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #6 from Béla Gyebrószki [email protected] --- (In reply to super_man from comment #5)
(In reply to Béla Gyebrószki from comment #4)
According to my testing, the issue was introduced by the commit which is also mentioned in bug #32618 bug #32621 bug #35605 possibly in bug #33296 too.
No keyboard and mouse input at all: http://source.winehq.org/git/wine.git/commit/ 841214ddb4d4dc620e6b51dfe6655b585d423edc
Mouse and keyboard works again, but input lags as described in the current bug report: http://source.winehq.org/git/wine.git/commit/ a0f039a6049641cc2be8fa32f2afa3c3f394a99b
Tested in Wine 1.7.55.
One of those bugs got fixed in 1.8rc3 another marked fixed 1.9.0.
The problem in Desperados and Robin Hood remains in Wine 1.9.2.
https://bugs.winehq.org/show_bug.cgi?id=39513
abelthorne [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #7 from abelthorne [email protected] --- Problem still present in Wine 2.0 RC3.
Also, not sure if it's part of the bug but on Ubuntu 16.10 with a RadeonHD 7770 (Mesa 12.0.3), the game lags as hell as soon as I can start interacting (i.e. just after the intro in the first mission, when the train leaves and I get control of the character). It looks like it has 90% frame drop and at that point, pressing Esc doesn't bring the pause menu, it basically freezes the game.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #8 from abelthorne [email protected] --- Turns out I misinterpreted what is happening in my previous comment: the game doesn't lag, it pauses if the mouse is idle. As long as I move it continuously, eveything is fine but if I stop, the game freezes and gets back to normal when I move the mouse again. Pretty weird.
https://bugs.winehq.org/show_bug.cgi?id=39513
Thom Thom Thom [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #9 from Thom Thom Thom [email protected] --- I can confirm this bug with Wine 3.0-rc2 (git commit fb3c1da6bad0590e04e4b78f7011e3924ef013ce) and Desperados v1.0.1 (Steam version).
For me, any action is laggy: selecting characters, getting noticed by enemies, using weapons, after saving or loading, etc ...
The game is playable but not enjoyable.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #10 from Thom Thom Thom [email protected] --- The bug persists on Wine 3.0 final release. Nothing has changed.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #11 from Thom Thom Thom [email protected] --- The bug persists on Wine 3.1 (git commit f9181daa1ddc2c10d3b6ddd4610bc1421cfd0f42). Nothing has changed.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #12 from Thom Thom Thom [email protected] --- The bug persists on Wine 3.3 (git commit f17120d11b0e1272bb9742ad88eb526ac914d7da). Nothing has changed.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #13 from Thom Thom Thom [email protected] --- The bug persists on Wine 3.5 (git commit 79f93ecf429f42db15bc14f276045fdad35cef13). Nothing has changed.
https://bugs.winehq.org/show_bug.cgi?id=39513
[email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #14 from [email protected] --- Wine 3.6 - the bug is still here.
https://bugs.winehq.org/show_bug.cgi?id=39513
tokktokk [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #15 from [email protected] --- Wine 3.8 - the bug is still here.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #16 from [email protected] --- Created attachment 61433 --> https://bugs.winehq.org/attachment.cgi?id=61433 Wine log
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #17 from [email protected] --- Created attachment 61434 --> https://bugs.winehq.org/attachment.cgi?id=61434 Wine +d3d_shader,+dxgi,+d3d11 log
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #18 from [email protected] --- Created attachment 61435 --> https://bugs.winehq.org/attachment.cgi?id=61435 Wine +d3d log
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #19 from [email protected] --- This lag isn't short. For me it's about 10 seconds which is a game destroyer. Devs, please, say what other logs do you need to resolve this bug already.
https://bugs.winehq.org/show_bug.cgi?id=39513
Józef Kucia [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #20 from Józef Kucia [email protected] --- Created attachment 61499 --> https://bugs.winehq.org/attachment.cgi?id=61499 Desperados input lag hack
The attached hack fixes input lag.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #21 from [email protected] --- YES!!! I can confirm the patch works flawlessly!!! Thank you so much!!!
https://bugs.winehq.org/show_bug.cgi?id=39513
psofiterol [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m
--- Comment #22 from psofiterol [email protected] --- Confirming the hack works under 3.0.2 for both "Desperados: Wanted Dead or Alive" and "Robin Hood: Legend of Sherwood". Thanks Józef!
https://bugs.winehq.org/show_bug.cgi?id=39513
Béla Gyebrószki [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #23 from Thom Thom Thom [email protected] --- After a new game update (Steam version, now this game supports Linux and Mac! Awesome!), I cannot confirm if this bug is still present in Wine 3.13. I'll try to paste the output here as soon as possible.
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #24 from [email protected] --- The game is available on GOG too and I bought it from there.
https://bugs.winehq.org/show_bug.cgi?id=39513
GottfriedM [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #25 from GottfriedM [email protected] --- The input lag after pause still exists in wine-3.16.
I can also confirm that the proposed hack fixes the problem.
https://bugs.winehq.org/show_bug.cgi?id=39513
joaopa [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #26 from joaopa [email protected] --- Bug still occurs with wine-5.1
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #27 from [email protected] --- This bug affects Chicago 1930 too. Fortunately the patch fixes it. Will it be upstreamed?
https://bugs.winehq.org/show_bug.cgi?id=39513
--- Comment #28 from joaopa [email protected] --- Still a bug with wine-7.0-rc2.
https://bugs.winehq.org/show_bug.cgi?id=39513
Béla Gyebrószki [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |54ca1ab607d3ff22a1f57a95614 | |30f64c75f0916 Status|NEW |RESOLVED
--- Comment #29 from Béla Gyebrószki [email protected] --- This was fixed by https://gitlab.winehq.org/wine/wine/-/commit/54ca1ab607d3ff22a1f57a9561430f6...
Tested with Robin Hood: The Legend of Sherwood (demo as well as the GOG.com version) and with Desperados demo.
https://bugs.winehq.org/show_bug.cgi?id=39513
Alexandre Julliard [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #30 from Alexandre Julliard [email protected] --- Closing bugs fixed in 9.15.