Low FPS in game on Android

Hello, in my game the ball is rolling, which is controlled by the player. On a PC, it rolls at a normal speed, FPS 100, but on the android the ball rolls slower in 2 times and FPS 30-40, what’s the problem?

However you are moving the ball is frame rate dependent. You need to change it to not be.


// Pseudo
float ballSpeed = 1f;

// In update
transform.Translate(Vector3.forward *  ballSpeed * Time.deltaTime);

// If you are moving via physics (addforce/velocity) then use FixedUpdate() - then you shouldn't see an issue

The key is multiplying the delta time to your speed, and then framerate isn’t an issue.