Moving platform jitters when windowed, but works perfectly full screen

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

I have a moving platform node that has this structure:

KinematicBody2D
  CollisionShape2D
  ColorRect

And this is the code for its movement:

func _physics_process(delta):
    position += Vector2(150,0)*delta

My player has a Camera2D with smoothing_enabled = true.

When smoothing is enabled and the player is on the platform, I notice jittering, like in this video. I turned off my art assets, which makes it hard to see what’s going on, but my player is standing on the platform, which is moving right with constant velocity. The player standing on the platform also jitters, in step with it.

In full screen there is no jittering at all. If smoothing is disabled, there is also no jittering. So the problem seems to be with the smooth camera when in windowed mode.

Any ideas how to fix it?