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 Eugenius · Apr 18, 2016 at 07:29 PM · uicanvasframerate

UI Canvas performance

Hi everyone,

I have a simple 2D, incremental game.

Right now the game has all of it's UI under one canvas with panels and subpanels acting as hierarchy. All of the UI elements are active at the same time (mostly because it's scrollable).

Unfortunately, I'm seeing FPS goes under 15 on my android device (Samsung Galaxy Camera GC100).

The profiler shows huge spikes coming from EventsSystem.Update().

What are the my best possible options in this case?

Thanks in advance!

Comment
Add comment · Show 2
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 callen · Apr 18, 2016 at 07:49 PM 0
Share

All I can say is I've definitely noticed the same thing. However my spikes tend to be on the Canvas' rendering. I have seen the console emit a warning about On$$anonymous$$ouse_ events being inefficient. Since you said it's on EventSystem, that might be one place to try, but only if you actually have scripts with On$$anonymous$$ouse_ events

avatar image Eugenius callen · Apr 18, 2016 at 07:52 PM 0
Share

Thank callen. Actually I don't use On$$anonymous$$ouse events in my scripts at all and I don't receive any Unity Warnings.

Even the scripts that are triggered by buttons are pretty limited...so I don't believe that's where my issue is.

I'm wondering if using multiple canvases would be more efficient than using only one?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Eugenius · Apr 27, 2016 at 03:31 PM

Sorry for the late reply here - the issue was actually because of all the objects that were visible at the same time (lots of which were not visible).

I fixed the issue by hiding everything that shouldn't be visible by using canvas groups on all of the objects.

Comment
Add comment · Share
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
1

Answer by eses · Apr 18, 2016 at 08:06 PM

Hi,

if by scrollable you mean that you have used ScrollRect, then that might be the issue. I've noticed myself that it can be really slow on weaker devices. There has been discussions about this on Unity forums, in UI area threads like this:

http://forum.unity3d.com/threads/scroll-rect-is-tooo-slow.396366/#post-2600808

Comment
Add comment · Show 1 · Share
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 Eugenius · Apr 18, 2016 at 08:10 PM 0
Share

Thanks a lot!

This may actually help a lot! I'm not sure if I can get rid of the scroll rects but I do have a high number of UI Texts with Outline/Shadow on them so that may be it :)! I'll come back with results tomorrow!

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

60 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

Related Questions

Canvas appearing over my cursor doesn'tr trigger OnPointerExit ! 0 Answers

Menu not getting Keyboard Input 0 Answers

Dialogue box wont show in game unless it's in the canvas but... 2 Answers

Canvas items turned to be blank images 0 Answers

Everything inside One Canvas 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