http://bugs.winehq.org/show_bug.cgi?id=31691
Bug #: 31691 Summary: Raw mouse input is erratic and/or causes major performance drops Product: Wine Version: unspecified Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: cephryx@gmx.net Classification: Unclassified
This bug emerged from the implementation of #20395 "Mouse / keyboard input not handled (RawInput)" (http://bugs.winehq.org/show_bug.cgi?id=20395).
Filing it as a separate bug, as suggested here: http://bugs.winehq.org/show_bug.cgi?id=20395#c134
After compiling and testing a git version (>1.5.12) including the "official" raw mouse input patch (not to be confused with the "raw3" input hack) http://source.winehq.org/git/wine.git/commitdiff/faaf3d388eb6db8c2594cb11f76... with Guild Wars 2 (in which the camera is rotated around the character by holding down the left or right mouse button and then dragging), I made the observations listed below. Please understand them as a feedback directed to providing viable information for debugging.
- Basically, the camera can now be turned using the mouse. - Doing so has a major impact on the game's performance. For me, it drops from 40-50 to ~3 FPS. - Actually, trying to turn the view with the mouse is not even necessary to cause the FPS drop: Simply moving the cursor e.g. in a constant circle, not even pressing a mouse button, leads to the very same result. - Moving the cursor was already possible before the patch was merged to the git. Thus, it seems to me like the game only uses the raw input path when click-dragging the mouse. - Before the patch was merged, moving the pointer did not cause a performance drop. - The previous two points seem to contradict -- I suspect a conflict/bug somewhere in there. - Turning the view with the keyboard is perfectly smooth, but it cannot be considered an option regarding gameplay. - All in all, the camera angle kind of performs jumps instead of smooth transitions. This makes the game unplayable.
I'm quite sure to speak for many gamers out there when I say: Thank you for your efforts, Henri - we greatly appreciate your work! Ofc, this also goes to anyone else who was involved. Anyway, we'd love to see further improvements on this - it looks like raw mouse input is almost done except for performance tweaks.
A very similar issue seems to occur with Anarchy Online, as described here http://bugs.winehq.org/show_bug.cgi?id=20395#c133 , so this does not appear to be a Guild Wars 2 specific problem.
http://bugs.winehq.org/show_bug.cgi?id=31691
voidcastr cephryx@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cephryx@gmx.net
http://bugs.winehq.org/show_bug.cgi?id=31691
voidcastr cephryx@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hverbeet@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31691
rmlipman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rmlipman@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31691
sworddragon2@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sworddragon2@aol.com
http://bugs.winehq.org/show_bug.cgi?id=31691
--- Comment #1 from Henri Verbeet hverbeet@gmail.com 2012-09-12 17:08:42 CDT --- Created attachment 41659 --> http://bugs.winehq.org/attachment.cgi?id=41659 patch
Does this patch help?
http://bugs.winehq.org/show_bug.cgi?id=31691
Forest winehq@tibit.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@tibit.com
http://bugs.winehq.org/show_bug.cgi?id=31691
Luke Bratch l_bratch@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |l_bratch@yahoo.co.uk
http://bugs.winehq.org/show_bug.cgi?id=31691
Adam Bolte boltronics@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |boltronics@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31691
Jordan jordanw2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jordanw2@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31691
arthur.huillet@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.huillet@free.fr
http://bugs.winehq.org/show_bug.cgi?id=31691
Jay jaynobyl@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jaynobyl@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=31691
--- Comment #2 from voidcastr cephryx@gmx.net 2012-09-13 03:56:42 CDT --- Yes, it does. Actually, in GW2, mouse input is now smoother than under Windows.
I hope this also helps for AO and other games. Thanks a bunch!
http://bugs.winehq.org/show_bug.cgi?id=31691
ax 34noff otaku@rambler.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |otaku@rambler.ru
http://bugs.winehq.org/show_bug.cgi?id=31691
Loris Zinsou the-lz-himself@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |the-lz-himself@orange.fr
--- Comment #3 from Loris Zinsou the-lz-himself@orange.fr 2012-09-13 06:55:52 CDT --- I will try to run Deus Ex : Human Revolution as soon as wine 1.5.13 gets packaged in Wine PPA. RawInput support was the last bit for this game to get gold or platinium support.
http://bugs.winehq.org/show_bug.cgi?id=31691
llie@nano.exofire.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |llie@nano.exofire.net
--- Comment #4 from llie@nano.exofire.net 2012-09-13 09:08:53 CDT --- Confirmed that patch *does* smooth out mouse behavior on Anarchy Online.
http://bugs.winehq.org/show_bug.cgi?id=31691
--- Comment #5 from voidcastr cephryx@gmx.net 2012-09-13 10:39:37 CDT --- Yet, I just found another, more subtle bug:
When trying to turn the view in Guild Wars 2, every SECOND time -- this is exactly reproducible -- the camera rotation (by right-clicking and dragging the mouse) stops like when the (invisible) cursor hit the edge of the screen. The other time, I can rotate the view without such a limit.
These two cases literally take turns. In both of them, the cursor properly re-appears at the position I started dragging, as soon as I release the mouse button.
The first rotation attempt is unlimited.
http://bugs.winehq.org/show_bug.cgi?id=31691
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |54efd8a430e52d6fd8977d169bf | |c01df0385f845 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Austin English austinenglish@gmail.com 2012-09-13 14:41:45 CDT --- (In reply to comment #2)
Yes, it does. Actually, in GW2, mouse input is now smoother than under Windows.
I hope this also helps for AO and other games. Thanks a bunch!
http://source.winehq.org/git/wine.git/commitdiff/54efd8a430e52d6fd8977d169bf...
http://bugs.winehq.org/show_bug.cgi?id=31691
--- Comment #7 from voidcastr cephryx@gmx.net 2012-09-13 16:12:57 CDT --- (In reply to comment #6)
http://source.winehq.org/git/wine.git/commitdiff/54efd8a430e52d6fd8977d169bf...
Yep, that's the patch attached in comment #1. Anyway, it's still affected by the bug described in comment #5.
http://bugs.winehq.org/show_bug.cgi?id=31691
Samuel Nelson valczir.darkvein@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valczir.darkvein@gmail.com
--- Comment #8 from Samuel Nelson valczir.darkvein@gmail.com 2012-09-13 19:41:43 CDT --- (In reply to comment #7)
(In reply to comment #6)
http://source.winehq.org/git/wine.git/commitdiff/54efd8a430e52d6fd8977d169bf...
Yep, that's the patch attached in comment #1. Anyway, it's still affected by the bug described in comment #5.
Confirmed the bug from comment #5. I'm assuming that someone should make another bug report, yes?
http://bugs.winehq.org/show_bug.cgi?id=31691
--- Comment #9 from Austin English austinenglish@gmail.com 2012-09-13 20:16:48 CDT --- (In reply to comment #8)
(In reply to comment #7)
(In reply to comment #6)
http://source.winehq.org/git/wine.git/commitdiff/54efd8a430e52d6fd8977d169bf...
Yep, that's the patch attached in comment #1. Anyway, it's still affected by the bug described in comment #5.
Confirmed the bug from comment #5. I'm assuming that someone should make another bug report, yes?
Please.
http://bugs.winehq.org/show_bug.cgi?id=31691
--- Comment #10 from voidcastr cephryx@gmx.net 2012-09-14 02:22:48 CDT --- Alright, I should have opened another bug directly -- sorry.
Anyway, Samuel Nelson already did so: http://bugs.winehq.org/show_bug.cgi?id=31702
http://bugs.winehq.org/show_bug.cgi?id=31691
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2012-09-14 13:33:55 CDT --- Closing bugs fixed in 1.5.13.
http://bugs.winehq.org/show_bug.cgi?id=31691
Jay jaynobyl@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|jaynobyl@gmx.de |