Hello everybody,
So after trying everything searching the whole internet and implementing any solution remotely relatable, i’ve opted for re-installing unity and scratching the project to the bones : the most minimal case as it is often recommended here to identify where the problem comes from.
I’ve started a new project where i have barely just camera moving, and some gameobjects.
Here is a video of the jitter : 20240425_212637.mp4 - Google Drive
it happens around second 8 or 9 to give just one example (but actually it happens 3 to 4 times in the video, that’s just the clearest example from this bad recording) : The GameObject seems to stop and reload again & sometimes it seems as if the whole screen stutters.
Parameters of the game object : Imgur: The magic of the Internet
Here is the code for the gameobject.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PrototypeWhiteCat : MonoBehaviour
{
private Rigidbody2D rb;
void Start()
{
rb = GetComponent<Rigidbody2D>();
}
}
Code of the Camera Movement.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class cameraMovement : MonoBehaviour
{
public static float cameraSpeed;
void Start()
{
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 60;
cameraSpeed = 6f;
}
private void Update()
{
transform.position += new Vector3(cameraSpeed * Time.deltaTime, 0, 0);
}
}
The camera is set inside a simple GameManager, like this : Imgur: The magic of the Internet
The problem happens whether i put the transform.position of the CameraMovement into Update, LateUpdate or FixedUpdate.
It happens whether i have a camera moving or just the GameObject moving either with transform/rb.velocity or lerp.
At first i had a SpawnCats script, but to get a really minimal case, i removed it and put just some 10 GameObjects in the game screen.
I’ve tried in a second device and still : the same problem. The only solution i’ve still haven’t tried is prayers.
If anyone has even an inkling of a hint of where the problem may come from, i would be forever grateful.
Thanks in advance.