Hello! First time poster here, I’m having an issue with choppy mouse movement when running my game. When running it on my desktop with a Logitech G502 mouse, I get completely smooth mouse movement. However, when using my ASUS Vivobook pro 15, and a Corsair Dark Core RGB SE, or even the mousepad on this laptop, I get really choppy mouse input.
The fps is smooth 60 on both machines, just a noticeable difference in mouse movement that is not keeping up. It seems like 2 or 3 frames go by before the mouse updates its position. Here is my _Input event that handles all mouse movement:
func _input(event):
# This handles camera and player rotation
if event is InputEventMouseMotion:
if freelooking:
neck.rotate_y(-deg_to_rad(event.relative.x) * mouse_sense_x)
neck.rotation.y = clamp(neck.rotation.y, deg_to_rad(-110), deg_to_rad(110))
else:
rotate_y(-deg_to_rad(event.relative.x) * mouse_sense_x)
head.rotate_x(-deg_to_rad(event.relative.y) * mouse_sense_y)
head.rotation.x = clamp(head.rotation.x, deg_to_rad(-89), deg_to_rad(89))
I did try using Godot 4.5, but the issue was present there as well, so I just went back to 4.3.
any and all help would be greatly appreciated. Thank you!
Sorry for the late reply. They are 0.4 for x, and 0.3 for y by default. I have also now tried both, the jittering appears with both. From what I can tell, it’s from “_input” Not running every frame. I’m going to head back in and see if there is an easy way to do mouse movement in the _process function.