Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Karsnen_2 · Sep 12, 2012 at 03:44 PM · iosterrainperformanceipad

Performance woe - full log given

Target Platform : >iPad2

Top-Down view

Gameplay :

My game is set in such a way that the player moves from the top to the bottom. He travels around the leaves and branches untill he reaches the ground.

Requirement :

I would like to have trees and branches on the level as they are a very important part of the gameplay.

Problem :

Hence as branches were required, I went on to use the unity3d trees and placed one. I bought the tree from the asset store. It had around 2500-5000 tris. The device just choked. I also read the data from the device during it's most choked moment and it read like this.

Expectations :

As branches are very important part of my gameplay, I really need to find a way to fit branches and leaves. I would also like to find an optimal way.

I require some assistance, with the best you devs could offer. I am not able to think beyond as of how to accomplish it.

Thank you.

EDIT : The Scene is something like this : sample scene

Those are the branches and the cube is the player. The branches do not posses any leaves for the moment. It is just a blind prototype of how the scene would be. You are also looking at X-Z axis. Please note that the above stats do not resemble with the above picture. The above picture does not have leaves whereas the stats was taken out of iPad with leaves and branches. The picture is just a image to show how the scene is oriented. If I am not defined, pls let me know. I will try to provide a better definition.

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 liszto · Sep 12, 2012 at 03:54 PM 0
Share

What do you mean by Unity3d trees ?

avatar image Karsnen_2 · Sep 12, 2012 at 05:39 PM 0
Share

Fattie - I have updated the question and so did I use the "amazing add photo" button :) . Hope I get some answer.

avatar image Karsnen_2 · Sep 12, 2012 at 06:44 PM 0
Share

liszto - I mean this => http://docs.unity3d.com/Documentation/Components/terrain-Trees.html

avatar image Bunny83 · Sep 12, 2012 at 09:45 PM 0
Share

It's pretty pointless to use terrain trees in this case. Even the use of the terrain seems quite pointless since it's top-down. It looks like you just have one tree, or at most "some" trees. The terrain engine is designed to render thousands of trees on the terrain. The point of the terrain engine is an automatic level-of-detail switching.

You probably will get way better results when you just put the tree mesh in the scene as normal gameobject. Also the ground can be a simple plane. The terrain-engine uses quite complex shaders.

avatar image Karsnen_2 · Sep 13, 2012 at 02:30 PM 0
Share

Bunny83, I use the terrain engine to give LOD functionality as it could help me in the future. There are lot of leaves in my environment and I would have to do some sort of LOD functionality. $$anonymous$$oreover, as I am moving so close to the leaves, it clogs a lot of fillrate. EVery the Unity Doc say that it uses a lot of fillrate.

Say I use the trees as models along with the leaves - is there any option I have to create an efficient system? I am much concerned about the leaves.

Show more comments

1 Reply

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

Answer by Graham-Dunnett · Sep 15, 2012 at 10:17 PM

So, the profile stats you upload say that the CPU is constantly waiting for the GPU. You are GPU bound. This means that the GPU is spending huge amounts of time rendering your tree and the CPU is sitting doing nothing a lot of the time. I fully expect that what is taking time is the rendering of the leaves. This may seem surprising to you. However, the iOS GPU (in fact all mobile GPUs) are designed to sort all triangles in depth order before rendering. What they are trying to do is eliminate all triangles that cannot be seen. For something like leaves on a tree, where you have large numbers of triangles all at different orientations, and overlapping in strange ways, this sorting can take a lot of time. Each leaf potentially is sorted against every other leaf. (Caveat - I do not have the data to confirm that this is your problem, however, it is what I expect your problem is.) If this is your problem, then I think it falls into the category of your game design not being suited to the technical limitations of the hardware. It's because we have all grown up with PC GPUs that render everything you throw at them that this seems surprising. PC GPUs do not have to worry about limited battery life.

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 Fattie · Sep 16, 2012 at 07:57 AM 1
Share

thanks for that informative note.

avatar image Karsnen_2 · Sep 16, 2012 at 10:24 PM 0
Share

That was really informative. Thank you Graham.

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

13 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

Related Questions

Error linker IOS / Unity - XcODE 2 Answers

Abysmal performance with Unity 5 on a Retina iPad - was fine with Unity 4.6 1 Answer

A node in a childnode? 1 Answer

Android Tablet vs iOS iPad performance difference 0 Answers

Profiler does not show objects when hooked to an iPad 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