Pixel perfect cause jittery background

Hello everyone,

I’m currently working on a 2D game in Unity and I’ve been facing issue with my background appearing jittery during player movement. I’m using a Rigidbody2D for the player, Pixel perfect component for the camera and a Cinemachine camera to follow the player. However, despite my efforts to achieve smooth movement, the background become noticeably jittery when the player moves. Here is more information:

  1. My rigidbody interpolation is set to interpolate.

  2. My pixel perfect camera ppu is 32 same as my sprites ppu

  3. My game resoultion is 1920x1080 so i use 470x280 refrnece resoultion

  4. Im using defualt cinemachine brain settings and no damping on my virtual camera

  5. Im using the cinemachine pixel perfect extension but its not seem to do anything

  6. This is how i move my player:

public class Player : MonoBehaviour
{
    public float moveSpeed = 5f; 
    Rigidbody2D rb;
    Animator anim;
    Vector2 movement;
    private void Awake()
    {
        rb = GetComponent<Rigidbody2D>();
        anim = GetComponent<Animator>();
    }
    void OnMovement(InputValue value)
    {
        movement = value.Get<Vector2>();
    }
    private void FixedUpdate()
    {
        rb.MovePosition(rb.position + movement * moveSpeed * Time.fixedDeltaTime);
    }
}

I tryed to solve this issue for so long but nothing appear to help i would realy appreciate if someone will help me fix this problem thanks.

Have you tried removing Cinemachine and making the camera simply a child of your player? If you do that, does it still jitter?

FYI: This is a duplicate thread of: Pixel perfect camera causing jittery background

:slight_smile:

Hello, thank you for your response and sorry for being a little late.
I’ve tried removing Cinemachine and setting the camera as a child of the player, but I’m still experiencing jitter. I also tested the game on another computer, and while the jitter was significantly reduced, there was still some noticeable background blurring during movement. This suggests that the issue might be linked to my computer’s setup. I’ve tested with and without VSync, but the problem persists.
Could you suggest ways to fix this and any insights into what might be causing it on my computer?