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 /
  • Help Room /
avatar image
0
Question by ifumi · Jan 09, 2017 at 07:59 AM · performanceoptimization

Android Performance Issues

Hello guys,

I am relatively new to unity and I am trying to make a simple game in unity as a university project. The game is just a simple maze in a cave, with some obstacles, key/door puzzles and other irrelevant stuff.

My problem is, that the game gets very slow and laggy when I try to run it on my android device. I tried it on two devices (OnePlus X and OnePlus 3) and both are equally slow. Also, I used the profiler on my PC to find the problem, but I simply just can't. Using the built in android GPU and CPU profiler (onscreen display from developer settings) I found out that the GPU is doing too much work.

Some more information on the project: My main scene is a map containing many stones stacked for building the cave, some torches (around 50 torches with 2 particle systems ... around 80 particles per torch), and a terrain. Also I am using the standard unity first person controller.

What I already tried: I set the quality in the quality settings to "fastest". I also disabled all shadows, filters and other stuff which could have negative impact on the performance I changed all camera clipping panes to the minimum (about 200 on far) I tried to disable torches and/or stones/gameobjects but it did not help The rocks/stones I use from the cave are from the asset store. I compressed all used textures for android to the smallest size possible. * I changed the shaders of my particle systems to mobile shaders.

Here is a screenshot of the profiler running on my pc: alt text

What am I doing wrong? Can somebody guess the problem?

Thanks for any help in advance, Denis

upload-2017-1-7-18-0-3.png (196.7 kB)
Comment
Add comment
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

1 Reply

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

Answer by AurimasBlazulionis · Jan 09, 2017 at 09:58 AM

So since it is a GPU problem, you will need to check how many vertices are being drawn. In game view, press stats. 1 million is the maximum a modern phone can handle. To solve that, use LODs.

Also, try to look how many SetPass calls are. The lower the number, the better. You can open frame debugger and see what takes the most draw calls. Transparent objects are the performance killers on mobile. Transparent objects are only being drawn in forward queue.

Lastly, image effects are terrible on mobile. Try to use as few as possible.

HDR and linear rendering also come at a cost, but it is not that significant.

You can also experiment setting different global shader LOD levels to see if that has something to do with actual shaders.

Comment
Add comment · Show 2 · 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 AurimasBlazulionis · Jan 11, 2017 at 11:24 AM 0
Share

Remember to accept the correct answers so others can easily know the solution.

avatar image ifumi · Jan 11, 2017 at 01:08 PM 0
Share

First of all thank you for your helpful answer.

Indeed it was an image effect (depth of field) which was causing the problems in my starting scene (game menu)...

In my main scene (the game itself) there are probably just too many vertices (1.8 million)... I think I'm just going to have to reduce the amount of gameobjects used for the cave walls and the roof, as adding LODs seems too complicated for me in such a simple project.

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

106 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

Related Questions

Sprite optimization for animation 0 Answers

World Scale optimization for processing and rendering 1 Answer

Is Removing Ngons a Good Thing to do in Unity? 0 Answers

Sprite size much bigger than originally - how to resolve 0 Answers

Need help on light baking 0 Answers


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