Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Hotshot10101 · Jun 05, 2017 at 02:02 PM · androidperformanceprofiler

Profiling a really slow android app

I am creating an app that is all UGUI. I am trying to figure out why it is running so slowly on iOS and Android. I can't seem to attach the profiler to my iOS, but I can attach to Android, so I will ask about that.

The device is an LG Tablet running Android 5.01.

I assume the way to know what is killing performance is to see what is taking the most time in the profiler.

The thing that is at the top of the list most of the time is this:

Graphics.PresentAndSync - 48.5% 160.53ms |__Device.Present - 48.5% - 160.52ms |__Present.BlitToCurrentFB - 0.4% - 1.32ms |__Present.SecondarySurfaces - 0.0% - 0.15ms

So that is taking 160.52ms and yet the child items are taking hardly any time at all.

Can someone explain this to me? If that isn't what is really taking all the processing, then what is?

Some of the other things taking time are:

WaitForJobGroup - 21.7% - 71.75ms |__Canvas.SplitInstructionsJob - 0.3% - 1.26ms

Again, the parent is a long time, but the only child is very short.

Unaccounted time between: Physics.UpdateCloth and CanvasRenderer.SyncWorldRect - 12.2% - 40.38ms

PutGeometryJobFence - 10.3% - 34.27ms |__WaitForJobGroup - 9.3% - 30.83ms

Camera-Render - 3.4% - 11.36ms |__Drawing - 3.1% - 10.27ms

I have deep profiling turned on, so I should be seeing all children, right?

What else can I do?

How do I get better performance?

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · Jun 05, 2017 at 07:35 PM 0
Share

Can you show a screenshot of the stats window from the game view when running the performance critical portion of the game in editor? Did you pack the your sprites? Is the hierarchy structure large and you're modifying rects a lot?

avatar image Hotshot10101 · Jun 05, 2017 at 07:53 PM 0
Share

There are not a lot of sprites on the screen.

There is a pretty good hierarchy. I have about 15 copies each of 2 different UI panels (30 total). On those panels are 60 "LEDs". They are just UI Image objects with a white circle PNG file that I tint with a color value.

So there are hundreds of these "LEDs". I suspect is has something to do with this, but can't figure out what to do about it.

This is totally a UI based app. No 3D objects.

avatar image Hotshot10101 · Jun 05, 2017 at 07:57 PM 0
Share

Stats window from editor. Note that it runs great in the editor, only slow on Android and iOS.

https://drive.google.com/open?id=0B3P6IntD-$$anonymous$$kaclE3Tms4YW5veVE

avatar image Hotshot10101 · Jun 05, 2017 at 07:58 PM 0
Share

Everything seems to indicate that the app is cpu bound. I just can't tell from the profiler what code is causing it.

avatar image Hotshot10101 · Jun 08, 2017 at 12:26 PM 0
Share

Did the stats image give you any clues?

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

141 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What could be causing my super low performance on my Android tablet? 3 Answers

Spikes with Physics.Simulate() in empty scene? 0 Answers

Profiler Alpha Mobile 0 Answers

Unity 2019.3 LWRP strange Performance Issue on android 0 Answers

RenderTexture.SetActive causing performance issue. android profiler 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges