LWJGL
May 19, 2013, 10:14:31 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Mouse DX/DY alternates between high and low values  (Read 691 times)
steamednotfried
Newbie
*
Posts: 5


« on: July 20, 2012, 04:03:35 »

Upon implementing a first person camera, I noticed some jitteryness when using the mouse for turning/looking. I tried printing out the mouse's DX in each frame and noticed something odd. When the mouse was moving at an approximately steady speed in real life, what was reported in the printout was something like this:

219, 160, 252, 171, 273, 177, 267, 167 and so on.

These are the successive DX's in each frame. Notice how they alternate between high and low values. This general pattern happens every time I run the program and at all times within each run. I have checked that the same time elapses between the successive DX's. The same thing happens with different mice. But all of the mice work fine while playing other fps games on the same computer. Is this a bug in LWJGL or is there something else that I'm missing?

Thanks.

Edit: I should add that the same thing happens with the DY's.
Logged
CaleyM
Newbie
*
Posts: 4


« Reply #1 on: July 20, 2012, 05:04:30 »

Out of curiosity I tried commenting out Display.sync() and the feed looked like that.
Logged
steamednotfried
Newbie
*
Posts: 5


« Reply #2 on: July 20, 2012, 05:24:14 »

Out of curiosity I tried commenting out Display.sync() and the feed looked like that.

Thanks, but I haven't commented it out and my feed looks like that.
Logged
princec
Nerdus Imperius
*****
Posts: 1867



WWW
« Reply #3 on: July 20, 2012, 09:06:58 »

This may be related to an ongoing discussion about issues with getDX/DY on Windows which causes it to be unreliably jittery. See here.

Cas Smiley
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!