shinyquagsire23 / OpenJKDF2

A cross-platform reimplementation of JKDF2 in C
Other
517 stars 45 forks source link

Horizontal mouse movement is improperly interpolated #139

Closed Goofbaal closed 1 year ago

Goofbaal commented 1 year ago

There's a similar bug in the vanilla game. Mouse movement polls independently from the framerate: Geometry, characters, and particles appear smooth at any framerate, but the camera moves at what appears to be 60hz. This quirk only affects the X Axis.

shinyquagsire23 commented 1 year ago

Hmmm, the original game one was because physics were ticked at 50Hz and the mouse only applies angular acceleration to the player Thing, but I set physics to tick at 150Hz now so I would have thought it ticks faster.

I have noticed in MoTS the scope zoom is weirdly quantized though (can't fine-tune the aim), I suspect that might create something that looks like a 60Hz update.

Goofbaal commented 1 year ago

I was wrong! Using a framerate monitor, I discovered that OpenJKDF2's mouse movement wasn't the problem. Running the game in fullscreen caps the framerate at 100hz, leading to jitterier camera movement overall. Running in windowed mode allows for an uncapped framerate.

rickomax commented 1 year ago

Necro this bc I've discovered playing the game without vsync causes the same issue here in latest debug version