- mapped "Smooth mouse" back to m_filter CVAR and removed smooth_mouse.

The option effectively disables per frame mouse checks.
The motivation to add it was that many wireless mice 10-15 years ago had update rates of less than 35Hz, and on these it was necessary to sync mouse input with the playsim to properly interpolate between updates.
Today this is totally useless and even counterproductive because modern mice have significantly higher update rates, so this option no longer smoothes things but instead makes the mouse feel more choppy.
This commit is contained in:
Christoph Oelckers 2020-06-10 12:54:17 +02:00
parent 20381a5929
commit 82af7f4f68
2 changed files with 3 additions and 6 deletions

View file

@ -797,9 +797,6 @@ void G_BuildTiccmd (ticcmd_t *cmd)
cmd->ucmd.sidemove <<= 8; cmd->ucmd.sidemove <<= 8;
} }
//[Graf Zahl] This really helps if the mouse update rate can't be increased!
CVAR (Bool, smooth_mouse, false, CVAR_GLOBALCONFIG|CVAR_ARCHIVE)
static int LookAdjust(int look) static int LookAdjust(int look)
{ {
look <<= 16; look <<= 16;
@ -857,7 +854,7 @@ void G_AddViewPitch (int look, bool mouse)
} }
if (look != 0) if (look != 0)
{ {
LocalKeyboardTurner = (!mouse || smooth_mouse); LocalKeyboardTurner = !mouse;
} }
} }
@ -872,7 +869,7 @@ void G_AddViewAngle (int yaw, bool mouse)
LocalViewAngle -= yaw; LocalViewAngle -= yaw;
if (yaw != 0) if (yaw != 0)
{ {
LocalKeyboardTurner = (!mouse || smooth_mouse); LocalKeyboardTurner = !mouse;
} }
} }

View file

@ -726,7 +726,7 @@ OptionMenu "MouseOptions" protected
StaticText "" StaticText ""
Slider "$MOUSEMNU_SENSITIVITY", "mouse_sensitivity", 0.5, 2.5, 0.1 Slider "$MOUSEMNU_SENSITIVITY", "mouse_sensitivity", 0.5, 2.5, 0.1
Option "$MOUSEMNU_NOPRESCALE", "m_noprescale", "NoYes" Option "$MOUSEMNU_NOPRESCALE", "m_noprescale", "NoYes"
Option "$MOUSEMNU_SMOOTHMOUSE", "smooth_mouse", "YesNo" Option "$MOUSEMNU_SMOOTHMOUSE", "m_filter", "YesNo"
StaticText "" StaticText ""
Slider "$MOUSEMNU_TURNSPEED", "m_yaw", 0, 2.5, 0.1 Slider "$MOUSEMNU_TURNSPEED", "m_yaw", 0, 2.5, 0.1
Slider "$MOUSEMNU_MOUSELOOKSPEED", "m_pitch", 0, 2.5, 0.1 Slider "$MOUSEMNU_MOUSELOOKSPEED", "m_pitch", 0, 2.5, 0.1