Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Efficiency issue with android games

Discussion in 'Android' started by unityusing, Aug 23, 2014.

  1. unityusing

    unityusing

    Joined:
    Nov 25, 2013
    Posts:
    11
    Hi community!

    I have made a 2D game for android and it is running fluently in the unity game view. But on my Device (Galaxy Note 1) it is a little bit sluggy. So I have to boost the performance of the game and I am wondering where to start. So this should be a general discussion about the Efficiency issue with android games. My Questions are:

    1. Is it more important to check the code for expensive methods (like Gameobject.Find()) or to decrease the resolution and size of the Sprites used in the game. What is heavier for an android device?

    2. What is the best practise I mean the best tactic to boost the efficiency of a completed game project? Changing things could be problematic for the funcionality you know.
     
  2. AgusB

    AgusB

    Joined:
    Jun 20, 2013
    Posts:
    65
    You could use a profiler to see what takes the most juice from your device.
    Anyway, I believe expensive methods are more important in terms of performance, try to see if you can replace some of them in the Update or FixedUpdate calls into the Start so that it calculates it at the beginning only.
    Use mobile shaders and see if you can replace some meshes with quads, be careful with your alpha settings and reduce the camera sight distance a bit
     
    unityusing likes this.
  3. unityusing

    unityusing

    Joined:
    Nov 25, 2013
    Posts:
    11
    Thanks for these cool advices. What is a profiler? Where can I get it?
     
  4. AgusB

    AgusB

    Joined:
    Jun 20, 2013
    Posts:
    65