[Bug 32913] New: Planetside 2: Mouse Jittering

classic Classic list List threaded Threaded
36 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug 32913] New: Planetside 2: Mouse Jittering

Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

             Bug #: 32913
           Summary: Planetside 2: Mouse Jittering
           Product: Wine
           Version: unspecified
          Platform: x86-64
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: -unknown
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]
    Classification: Unclassified


Created attachment 43472
  --> http://bugs.winehq.org/attachment.cgi?id=43472
Logfile Wine-Output

Hey folks,

We'v encountered a weird bug in Planetside 2, it's like the mouse is jumping or
not responding at all when aiming in the free world.

If you go on foot, or sits behind a turret you can turn your mouse but it looks
and feels like the mouse is one step behind and starts to jitter around, which
makes aiming almost impossible.
The curious part is that it doesn't happen in the menus, or if you'r in a
vehicle. Can't describe it better.

What we have done so far:

- Using a native imm32.dll to enable ingame menus
- d3dx9_43 (via Winetricks)
- d3dcompiler_43 (via Winetricks)

tested myself with native dinput.dll and dinput8.dll and turning off
mouse-acceleration.

Using wine-1.5.23 non-patched on Ubuntu 12.10 64bit

Game Homepage: planetside2.com



Hope I have mentioned everything, log is attached - sry it's the first time I
post a bugreport myself

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

Felix Hellmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Felix Hellmann <[hidden email]> 2013-02-06 17:06:14 CST ---
*** Bug 32914 has been marked as a duplicate of this bug. ***

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #2 from [hidden email] 2013-02-07 07:53:04 CST ---
Created attachment 43479
  --> http://bugs.winehq.org/attachment.cgi?id=43479
WINEDEBUG=-all | mrTransitTasks.cpp

Adding a new log from some extended play and WINEDEBUG=-all to avoid all those
d3d-fixmes, showing up hopefully the bad behaviour source

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

Michael Cronenworth <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

John Marszalek <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #3 from John Marszalek <[hidden email]> 2013-03-11 13:00:52 CDT ---
I can also confirm this is happening.  Ubuntu 12.04 64-bit running Crossover.

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

Chase Adams <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #4 from Chase Adams <[hidden email]> 2013-03-19 10:05:26 CDT ---
I would really like to see this fixed and would like to offer a bounty for
fixing it. When this bug gets fixed and PS2 reaches Gold status on Ubuntu, I'll
donate $100 to the wine development fund.

If any other PS2 players would like to contribute to this bounty, please speak
up. Offer just $1 on the bounty and you'll help get this bug fixed faster.

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #5 from [hidden email] 2013-03-19 15:08:29 CDT ---
20$ here for the greater goal

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #6 from [hidden email] 2013-03-28 12:21:19 CDT ---
Confirming this bug. Running Gentoo (Linux 3.8.0) and wine-1.5.24, but I've
tried at least 5 different wine versions with the same result.

Only bug making the game playable is this mouse jitter bug, really hope it can
get fixed asap.

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #7 from [hidden email] 2013-03-28 15:02:28 CDT ---
Correction from my last post, I meant to say the only bug making the game
unplayable* is this bug.

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

Mike <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

Linards <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #8 from Linards <[hidden email]> 2013-05-15 12:33:54 CDT ---
Confirming on 1.5.25 @ fedora 18 x64

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #9 from Felix Hellmann <[hidden email]> 2013-07-30 02:54:47 CDT ---
The bug still exists with wine 1.6 and the current game version, the beta
workarounds (windowed in emulated desktop) still haven't returned to work.

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

Captain Crutches <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #10 from Captain Crutches <[hidden email]> 2013-10-26 19:10:06 CDT ---
Confirming that this bug is still present in Wine 1.7 (I'm running 1.7.3 on
Funtoo Linux 3.11.6).

--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #11 from [hidden email] ---
Confirming that this bug is still mostly present in Wine 1.7.18 on Arch 64-bit,
with a 32-bit wineprefix.
By mostly present I mean that the mouse is not "one step behind", there is no
lag.

However, it does still stutter. It seems like the game buffers all mouse input
and applies it once every 50-100 ms when playing as a human or a tank driver.
Mouse works perfectly in menus, tank gunner seats, and aerial vehicles. MAX
suits not tested.
If it weren't for this bug, the game would be almost perfectly playable.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=32913

Anastasius Focht <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |download
             Status|UNCONFIRMED                 |NEW
                URL|                            |https://www.planetside2.com
                   |                            |/
                 CC|                            |[hidden email]
            Version|unspecified                 |1.5.23
     Ever confirmed|0                           |1

--- Comment #12 from Anastasius Focht <[hidden email]> ---
Hello folks,

confirming on behalf of last commenters.

Regards

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

Patrick Rudolph <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #13 from Patrick Rudolph <[hidden email]> ---
I've investigated into this issue. On Windows every relative mouse movement is
compared against the mouse threshold, more information here:
http://msdn.microsoft.com/en-us/library/ee500883.aspx
http://msdn.microsoft.com/en-us/library/aa227574%28v=vs.60%29.aspx

It looks like windows sends two / four mouse movements events, as soon as the
threshold limits are exceeded. On wine there's only one event, with much larger
values, resulting in the jumping.
I'm trying to patch user32 asap and provide a patch.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #14 from [hidden email] ---
(In reply to Patrick Rudolph from comment #13)
> I've investigated into this issue. On Windows every relative mouse movement
> is compared against the mouse threshold, more information here:
> http://msdn.microsoft.com/en-us/library/ee500883.aspx
> http://msdn.microsoft.com/en-us/library/aa227574%28v=vs.60%29.aspx
>
> It looks like windows sends two / four mouse movements events, as soon as
> the threshold limits are exceeded. On wine there's only one event, with much
> larger values, resulting in the jumping.
> I'm trying to patch user32 asap and provide a patch.

Oh, great to see someone working on fixing this. Really looking forwards to a
patch if you figure it out!

Keep up the good work!

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
http://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #15 from Patrick Rudolph <[hidden email]> ---
There're two input-modes in PS2, the default method is WM_MOUSEMOVE and
DirectInput and the second method, that can be activated by "Use Raw Mouse
Input" ,is WM_INPUT and GetRawInputData.

However on WINE it makes no difference, as both methods have exactly the same
data source. dinput.dll on WINE uses a mouse hook to emulated relative mouse
movement. It should use WM_INPUT as Windows does, more information here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ee418864%28v=vs.85%29.aspx

WM_INPUT and WM_MOUSEMOVE is generated by the wineserver from winex11.drv
XEvents.
The relative mouse-movement for WM_INPUT is emulated, too. This is why windows
dinput.dll might not fix this problem.

In fact WM_INPUT should deliver "raw" HID data that has nothing to do with
cursor coordinates, as it's just for relative movment.

I've split the WM_INPUT messages into lots of smaller ones, but that doesn't
seem to fix the problem.

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


Reply | Threaded
Open this post in threaded view
|

[Bug 32913] Planetside 2: Mouse Jittering

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=32913

--- Comment #16 from Patrick Rudolph <[hidden email]> ---
Created attachment 49978
  --> https://bugs.winehq.org/attachment.cgi?id=49978
hack to use Xinput2 data only for relative mouse movement

This patch fixes the mouse jittering in Planetside 2. However you have to use
Xinput2 ! XInput2 is disabled in virtual desktop mode! It is enabled whenever a
fullscreen window requests exclusive mouse access. Click once to enable mouse
movements,
This patch might break other apps !

Brief problem description:
* XInput2 is only enable under special circumstandes.
* XInput isn't very accurate (It notices sub-pixel mouse movement, but reports
only pixel coordinates)
* Even with XInput2 enabled it might drop events because they are from a
different "serial"
* XInput and XInput2 events are both sent to the same low level message
function which expects pixel coordinates but XInput2 reports relative sub pixel
movement

* Planetside2 expectes "unproccessed" sub pixel coordinates like the ones
reported from XInput2

--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


12