Game is 30fps on android and 1000+fps on PC

I spent 2 days on this game. It only has a rocket (sprite) that moves forward and some asteroids (sprite) that spawn time by time and interract with each other (as being rb2D).
I am using URP in order to create a shader for the space background where stars appear from noise texture.

Optimisation:

  1. Vsync is off
  2. Shadows are off
  3. The only global light 2D
  4. the amount of objects in the scene is less than 10
  5. Set Target Frame Rate did not help! ((

I do need 60fps on android! No ideas!:frowning:

Some phones also lock the fps depending of the screen refresh rate. What kind of phone are you building on?

My phone is Samsung galaxy a20. However I also tried this game on different androids and they still lag there. So it is not for a specific device but I made some mistakes when building(colmpiling) a game.

Hi. Did you managed to gat more than 30 FPS on android using URP? Im stucked in this same problem. Thanks

1 Like

What if you turn on Performance Mode?

1 Like

Documentation to let you change the fps:

The doc also mention this for mobile.

  • On mobile platforms the default frame rate is less than the maximum achievable frame rate due to the need to conserve battery power. Typically on mobile platforms the default frame rate is 30 frames per second.
2 Likes

AFAIK That only works for Android for Unity 2021.

Which Unity are you using @piscopancer ?

How do you change the fps limit

Please don’t necropost. The answer to your question was posted on the thread so please read threads before posting.

Thanks.