Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Best optimizations for battery life on mobile devices?

Discussion in 'Android' started by tydygunn, Dec 26, 2013.

  1. tydygunn

    tydygunn

    Joined:
    Aug 9, 2012
    Posts:
    13
    We're wrapping up a project right now that is 95% 2D animation and GUI based, and battery life is a pretty significant issue for us. Are there any general optimizations we can run for extending battery life? We've already set targetFrameRate to 30, and Unity still eats device batteries like candy. We're going from a 100% to 20% in just about an hour's use.

    What affects battery life the most? Draw calls? What can we do to squeeze more battery life from our devices? I've also noticed that the device gets hot after prolonged use.
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    Try to get as much idle time for GPU and CPU as you can. You can check from Unity profiler what functions are stressing the CPU and what drawing operations are eating most of the GPU time.

    And if your game has lots of network usage, try to reduce it.