Search Unity

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

Discussion in 'Visual Scripting' started by piscopancer, Sep 28, 2021.

Thread Status:
Not open for further replies.
  1. piscopancer

    piscopancer

    Joined:
    Jul 24, 2021
    Posts:
    15
    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! ((


    upload_2021-9-28_19-17-15.png
     
  2. piscopancer

    piscopancer

    Joined:
    Jul 24, 2021
    Posts:
    15
    I do need 60fps on android! No ideas!:(
     
  3. ericb_unity

    ericb_unity

    Unity Technologies

    Joined:
    Nov 24, 2017
    Posts:
    167
    Some phones also lock the fps depending of the screen refresh rate. What kind of phone are you building on?
     
  4. piscopancer

    piscopancer

    Joined:
    Jul 24, 2021
    Posts:
    15
    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.
     
  5. Berthil

    Berthil

    Joined:
    Aug 26, 2013
    Posts:
    22
    Hi. Did you managed to gat more than 30 FPS on android using URP? Im stucked in this same problem. Thanks
     
    Hozgen90 likes this.
  6. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    398
    What if you turn on Performance Mode?
     
    haroldo7 likes this.
  7. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    56
    Documentation to let you change the fps:
    https://docs.unity3d.com/ScriptReference/Application-targetFrameRate.html

    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.
     
    deus0 and haroldo7 like this.
  8. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
  9. zankenpon

    zankenpon

    Joined:
    Feb 27, 2019
    Posts:
    3
    How do you change the fps limit
     
  10. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,499
    Please don't necropost. The answer to your question was posted on the thread so please read threads before posting.

    Thanks.
     
Thread Status:
Not open for further replies.