platformer – position locking and smooth lerping side scroller camera follows the player with jittering delay

I’ve seen this question:

How to smoothly move camera when the player is climbing a diagonal staircase in 2D tile-based side-scroller?

And here’s my code:

export default class Camera {

  target: Point;
  frustum: Rect;

  update() {
    this.frustum.x += ( - this.frustum.x) * 0.1;
    this.frustum.y += ( - this.frustum.y) * 0.1;

// usage

export class User {

  camera: Camera

  update() {
    if ( > 8 * TileSize) { = this.player.position;

  render() {


So basically, camera has a frustum that smoothly approaches to target position. If the player position is greater than some distance, the camera target position is set to player position.

This results in something like this:

camera jitter

As you can see camera stops for a second, then follows then stops again, if I decrease the distance threshold to follow the camera, the jitter happens on the player.

Why is this happening to me, just why?