Search Unity

Question Battery preformance: VSync vs Application.targetFrameRate

Discussion in 'Android' started by ByMedion, Feb 26, 2021.

  1. ByMedion

    ByMedion

    Joined:
    May 10, 2018
    Posts:
    19
    Hi! I ran a battery performance test today and got very strange results.
    The app under test is a simple 2D puzzle game made exclusively with IU.
    The test conditions were as follows:
    • 20 minutes of continuous application work.
    • 50% screen brightness.
    • Internet is disconnected and airplane mode is set.
    • 2 devices: xiaomi redmi note 3 (worn out battery) and xiaomi redmi note 8
    First test: VSync = Every B Blank
    Second test: VSync = Dont sync, Application.targetFrameRate = 60

    Results:
    • VSync off, target framerate = 60:
      • battery at start:
        • redmi 3: 86%
        • redmi 8: 42%
      • battery at the end:
        • redmi 3: 71%
        • redmi 8: 39%
      • spent charge:
        • redmi 3: 15%
        • redmi 8: 3%
      • heat:
        • redmi 3: moderate
        • redmi 8: small
      • fps: ~60 on both devices
    • VSync on:
      • battery at start:
        • redmi 3: 67%
        • redmi 8: 39%
      • battery at the end:
        • redmi 3: 56%
        • redmi 8: 36%
      • spent charge:
        • redmi 3: 11%
        • redmi 8: 3%
      • heat:
        • redmi 3: no
        • redmi 8: no
      • fps: ~60 on both devices
    As you can see from the test, VSync has proven to be more effective than fps capping.
    Why is this happening?
    And what recommendations can you give to optimize battery consumption in general?
     
  2. unity_X2mWNhy54HhGgg

    unity_X2mWNhy54HhGgg

    Joined:
    Nov 27, 2020
    Posts:
    7
    did you find the solution?
     
  3. ByMedion

    ByMedion

    Joined:
    May 10, 2018
    Posts:
    19
    Hi! Unfortunately, not yet
     
  4. ByMedion

    ByMedion

    Joined:
    May 10, 2018
    Posts:
    19