Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Showcase Tips for optimize mobile game

Discussion in 'Code Editors & IDEs' started by Rachan, Aug 24, 2023.

  1. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    767
    Hi there!

    today I want to share what I found in mobile optimization as much as possible, I working around about a week, I has looked a wrong point, such as Shader Graph at first I thought it heavy

    But, actually I found What's drain my game FPS!

    1. Do not use

    GameObject.FindGameObjectOfType
    or
    GameObject.FindGameObjectsOfType

    and also GetComponent something

    in

    "Update"

    any update that can works replace a lots of times, Don't use it!! You can just call 1 time on start But don't update,

    2. use Texture Crunching in texture setting and set a quality just about 50-75, the game size also reducing a bit

    3 set a maximum size of texture as it should, don't just let them 2048 x 2048 all by default.


    That is,

    it should be a small tips that can make my game better FPS.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,767
    #1 you practically find everywhere as best practice. ;)