AmbientRun / Ambient

The multiplayer game engine
https://ambient.run
Apache License 2.0
3.79k stars 122 forks source link

First person camera is jittery on low mouse DPI #497

Open airidaceae opened 1 year ago

airidaceae commented 1 year ago

when using a mouse with low DPI (100 was used for the attached video) in first person camera, camera movement appears jittery as if it is constrained to a grid of potential points https://cdn.discordapp.com/attachments/1007545572208689234/1118326481844699218/ambient_jitter.mp4

I tested this in both flowerpot and the client first person camera example

FredrikNoren commented 1 year ago

I wonder if there's something around precision loss here (like if it's ever converting from f32 to i32).

@airidaceae Just to confirm, in other games you don't have this problem?

airidaceae commented 1 year ago

@FredrikNoren I do not have this problem in other games. I also tested it in the third person camera example and the same behavior exists there