i have wrote below code in Update() method to move up my game object. But its flashing(moving back and front) each time it moves. how can I fix it?

    transform.Translate(Vector3.up * Time.deltaTime * speed);

it is printing fine but with some lag spikes, i bet you have a camera script that maybe movetowards or lerps towards the player, following him, and gives that effect