Search Unity

Android UI Performance

Discussion in 'UGUI & TextMesh Pro' started by abitofjohn, Nov 26, 2015.

  1. abitofjohn

    abitofjohn

    Joined:
    Nov 6, 2012
    Posts:
    27
    Hi

    Were currently working on a UI heavy game for mobile. We get a solid 60fps on an iphone4s and above but on 2 comparable android devices (nexus 7 1st Gen and Moto G 2nd Gen) we get between 20 and 35 fps. I've seen a few posts from people having similar problems but have yet to see any solid solutions. Has anyone else had the same experience or know of a fix? We've tried building using both 5.2 and 5.3 with the same result.

    Cheers
     
  2. Deepscorn

    Deepscorn

    Joined:
    Aug 13, 2015
    Posts:
    25
    Edit -> Project Settings -> Quality... Without details I can say only that
     
  3. DaDonik

    DaDonik

    Joined:
    Jun 17, 2013
    Posts:
    258
    The solution for me was switching from deferred to forward rendering.
     
  4. abitofjohn

    abitofjohn

    Joined:
    Nov 6, 2012
    Posts:
    27
    Thanks for the reply Deepscorn

    I've attached a screenshot from the editor showing the quality and the basic hierarchy of one of the screens, this is a good 60fps on iphone4s 25-35fps on the android devices we've tested. You guys might spot something we haven't.

    Cheers
     

    Attached Files:

  5. abitofjohn

    abitofjohn

    Joined:
    Nov 6, 2012
    Posts:
    27
    Thanks DaDonik, we are using Forward rendering, was there anything else you did you can remember?

    Thanks
     
  6. DaDonik

    DaDonik

    Joined:
    Jun 17, 2013
    Posts:
    258
    Nope, sorry. All i did was changing to forward rendering.

    Your UI doesn't seem too heavy to me...
    My project too has several canvas elements and i don't have any performance problems.

    These are the devices i try my apps on:
    - Samsung Galaxy S3
    - LG L40
    - Nexus 7 (2013)
    - Samsung Note 10.1 (2014)
     
  7. abitofjohn

    abitofjohn

    Joined:
    Nov 6, 2012
    Posts:
    27
    Thanks for that DaDonlk!
    Just out of curiosity, what version of unity are you using to build?
     
  8. DaDonik

    DaDonik

    Joined:
    Jun 17, 2013
    Posts:
    258
    I'm currently using 5.2.1p3

    All the Android devices i listed above are running on the latest OS version i can get for each device. I don't have them at hand right now, but i can check it tomorrow if it's of interest.
     
  9. jhkimblue

    jhkimblue

    Joined:
    Mar 27, 2015
    Posts:
    14
    nope, you can't use 5.2.1p3, if you care about performance specially in mobile device. use 5.1.3 or 5.1.4. or you can use 5.3 beta. there were huge performance regression at 5.2. and it hasn't fixed until now.
     
  10. abitofjohn

    abitofjohn

    Joined:
    Nov 6, 2012
    Posts:
    27
    No thats fine DaDonik thanks was just curious. Still trying various things, building with 5.3 hasn't fixed anything unfortunately.