Why is this pixel perfect platformer movement a little jittery?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By andrebariani

My current project is a 2d pixel perfect platformer, and when I was researching about making a low-resolution game I’ve stumbled upon and applied the following settings: Using pixel snap in 2d rendering, setting Stretch mode to Viewport and defining the window size to 400x224.

I am satisfied with the result, but sometimes when the Player (the helmet and poncho sprite) lands on a plataformer it jitters and doesn’t quite snap to the floor. Why is that even happening?

enter image description here

I think that the Camera2D set to current at the Player (KinematicBody2D) is positioning itself off because of the drag margin floating-point value. Any ideas?

:bust_in_silhouette: Reply From: jujumumu

I do not think it is because from my understanding the player is jittering leading to the camera also jittering. It might be that the safe margin for your KinematicBody2D character is to small leading it to jitter. Godot is fixing this hopefully in the next update.