Author Topic: Mouse control speed  (Read 1156 times)

0 Members and 1 Guest are viewing this topic.

Offline Nohiki

  • 28
  • Graf von Kaffeetrinken
    • Minecraft
    • Skype
    • Steam
Hi,

I have encountered quite strange behavior with mouse control. When playing on a regular build, the mouse is incredibly sluggish. I tried plugging in different mouse, I tested it against keyboard (behaves normally) and strangely, the behavior does not appear using a debug build. Sensitivity is all the way up and the DPI button on the mouse has no effect whatsoever

Specs:
Win 8.1 64-bit
CPU: I5 4460
GPU: geForce GTX 750 Ti

Video of the problem

Log attached, but as I said, everything was fine on the debug build.

[attachment DELETED!! by Strong Bad]
:::ALSO PROUD VASUDAN RIGHTS SUPPORTER:::

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Please try one of the SDL builds to see if that resolves the issue. I see this crop up more often as 4K resolutions become more popular.

I think you could also try adjusting the DPI setting of the application itself, AdmiralRalwood and some of the other Hard-light crew know how to do this, so hopefully they'll chime in before too long. :)
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Nohiki

  • 28
  • Graf von Kaffeetrinken
    • Minecraft
    • Skype
    • Steam
So I did some testing, and I tracked the bugger down to the combination of two settings:

-no_vsync
-no_fps_capping

I have no idea why that causes mouse control specifically to slow down, I'd expect it to slow down the keyboard too, but alas that's the thing. My solution is to turn off the -no_fps_capping, but as to why that is even a problem, I have no idea. If it was a lacking GPU, it would have been slow regardless of control input, but as I said, keyboard pitch/yaw worked at the correct speed.

Fun fact: 3.7.0 is immune to BFU setting things up like that since -no_fps_capping is not even present in the launcher's settings.
:::ALSO PROUD VASUDAN RIGHTS SUPPORTER:::

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
So I did some testing, and I tracked the bugger down to the combination of two settings:

-no_vsync
-no_fps_capping

I have no idea why that causes mouse control specifically to slow down, I'd expect it to slow down the keyboard too, but alas that's the thing. My solution is to turn off the -no_fps_capping, but as to why that is even a problem, I have no idea. If it was a lacking GPU, it would have been slow regardless of control input, but as I said, keyboard pitch/yaw worked at the correct speed.

Fun fact: 3.7.0 is immune to BFU setting things up like that since -no_fps_capping is not even present in the launcher's settings.
Fun fact: it doesn't show up in the launcher's settings not because the executable doesn't know what it means, but because we intentionally weren't exposing that setting to the launcher (it got added to the list of exposed flags during an overhaul and nobody's gotten around to removing it again). High FPS values cause all kinds of issues, not just mouse control ones; timers don't work correctly with extremely low frametimes, which affects almost every aspect of the game from user input, to events, to animated textures. -no_fps_capping should not be used except for testing purposes; that's why we didn't used to advertise its existence to the launcher.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Nohiki

  • 28
  • Graf von Kaffeetrinken
    • Minecraft
    • Skype
    • Steam
Ah, so it was problem between keyboard and chair :D Good to know.
:::ALSO PROUD VASUDAN RIGHTS SUPPORTER:::