Godot Version
4.6.1
Question
Hello, so im doing 3d coop game with camera attached to player. The issue is while moving fast my mouse on 280Hz is working perfect, on 144 Hz is quite okay, but if i go lower 120Hz etc I see like few frames on screen, so it feels like ghosting. My engine settings: V-sync enabled, physics interpolation is on (except for camera and head node). Head of player is top level in order to satify this page of docs which i was looking https://docs.godotengine.org/en/stable/tutorials/physics/interpolation/advanced_physics_interpolation.html. Here are fragments of player script:
func _unhandled_input(event: InputEvent) -> void:
if !is_multiplayer_authority():
return
if event is InputEventMouseMotion:
rotation_degrees.y -= event.relative.x * 0.05
camera_pitch -= event.relative.y * 0.05
camera_pitch = clamp(
camera_pitch, -70,70
)
func _process(delta: float) -> void:
if !is_multiplayer_authority():
visual_head.rotation.x = lerp_angle(visual_head.rotation.x, sync_head_tilt, delta * lerp_speed)
return
%Head.global_position = get_global_transform_interpolated().origin + Vector3(0, 1.5, 0)
%Head.global_rotation_degrees = Vector3(camera_pitch, global_rotation_degrees.y, 0)
visual_head.rotation_degrees.x = clamp(
- %Head.rotation_degrees.x, -70,70
)
So idk if i dont understand something good, or my eyes are super sharp and im perfectionst, or i made same mistaked. I would be very glad if you would help me ![]()
