FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
549 stars 107 forks source link

Mouse problem #395

Open Kodpact opened 5 years ago

Kodpact commented 5 years ago

In-game when i'm moving mouse with high speed it fully stops recognition of mouse moving. This is not my mouse problem or windows, cause in original engine [GoldSrc] it works OK.

a1batross commented 5 years ago

Strange, I remember it was happening only on original engine. Can you send engine version? Enter host_ver in console.

Kodpact commented 5 years ago

1215 0.19.2

a1batross commented 5 years ago

And which platform?

Kodpact commented 5 years ago

Win32 i386

mittorn commented 5 years ago

SDL2-2.0.8 bug?

Kodpact commented 5 years ago

this still happens on current 'master' build (SDL 2.0.7)

Jayman2000 commented 5 years ago

I've been experiencing this same issue. Workarround:

  1. Disable VSync. From the main menu, go to "Configuration" > "Video" > "Video modes". There should be a checkbox for "Vertical Sync" at the bottom of the screen. After you uncheck the box, click "Ok".
  2. Quit the game.
  3. Launch Xash3D with the launch parameter -console.
  4. Open the developer console, and type fps_max 125. The higher the value, the less this bug will affect you. I'd recommend using a number from here.

There is several issues with this workaround, as several mechanics in Half-Life are affected by framerate. Most notably, the higher your FPS is, the slower that NPCs will turn.

a1batross commented 5 years ago

Another solution may be using m_rawinput 1. This is Win32 only bug. :(

Instead of warping mouse every frame into window center(that's why higher FPS may help), it will try to read relative values over SDL2.

Jayman2000 commented 5 years ago

Another solution may be using m_rawinput 1. This is Win32 only bug. :(

I'm running Kubuntu 18.10, and I'm experiencing this bug at 60 FPS.

a1batross commented 5 years ago

@Jayman2000 where did you get client.so? Built from hlsdk-xash3d or from Steam?

Jayman2000 commented 5 years ago

I got it from Steam.

a1batross commented 5 years ago

That's awkward. I never encountered this on Linux at all.

mittorn commented 5 years ago

Mouse works bad on win32/sdl2 clients without m_rawinput If we capture mouse with SDL2, it will not work with legacy clients at all, so capture is disabled