bevy_fps_controller icon indicating copy to clipboard operation
bevy_fps_controller copied to clipboard

Some jitter when strafing

Open DGriffin91 opened this issue 3 years ago • 4 comments

When strafing, where is some visible jitter in the camera movement. It is exaggerated when moving faster, but also still there when moving slower.

https://user-images.githubusercontent.com/33357138/183528245-3854ef44-5065-4106-8f95-ff3b3766f396.mp4

DGriffin91 avatar Aug 08 '22 22:08 DGriffin91

Hmm yeah, I think this has to do with interpolation & rapier. Will take a look, thank you for making an issue

qhdwight avatar Aug 08 '22 23:08 qhdwight

Do you still notice this? I made all systems sequential by abusing system tags.

https://github.com/qhdwight/bevy_fps_controller/blob/7111389955fbe2731da7f1e92ed53fd1ef439519/src/controller.rs#L23

On my computer seems perfectly fine, but I also have 165 hz display which may mask effect.

qhdwight avatar Feb 28 '23 22:02 qhdwight

Just tried out the minimal example. I think this issue is resolved. I do see some jitter at with a 165hz display with both vsync on and off, but's much more subtle and may not have anything to do with the physics controller. I set my monitor to 60hz and couldn't see the jitter at all.

DGriffin91 avatar Mar 11 '23 19:03 DGriffin91

Hmm maybe I have to schedule the movement before the Rapier physics set or something.

qhdwight avatar Mar 12 '23 16:03 qhdwight