I decided to learn how to program games on unity by making my first ever project on ios. Unfortunately, I realised that my player has a laggy movement once I try to test my game. Could you please help me solve the problem.
public class PlayerMovement : MonoBehaviour
public Rigidbody Rb;
public float speed = 5000f;
Rb = GetComponent();
// Update is called once per frame
Screen.sleepTimeout = SleepTimeout.NeverSleep;
transform.Translate(Input.acceleration.x, 0, -Input.acceleration.z);