Shpoike / Quakespasm

Extra bloaty junk to modernise stuff a bit.
http://triptohell.info/moodles/qss/
GNU General Public License v2.0
190 stars 41 forks source link

Fix joystick movement being framerate-dependent #121

Open Macil opened 1 year ago

Macil commented 1 year ago

This fixes a bug that when host_maxfps > 72, movement joystick sensitivity would effectively raise proportionally with the framerate. Pushing the stick halfway would make you walk at 72 fps but make you run at maximum speed at 180 fps, etc.

This is because the joystick movement would be summed together over multiple client frames. Only mouse-based movement should be summed together over multiple frames. For joystick-based movement, only the most recent values should be used.

sezero commented 1 year ago

Is this needed in mainstream qs? (if it is, send me a patch.)

Macil commented 1 year ago

It won't be needed there. This is specific to QSS (and well vkQuake) because of a bug in the way it splits the rendering framerate to be separate from the game framerate.