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
0
Question by WillModelForFood · Jan 04, 2013 at 12:28 PM · batchingcombinechildren

How to reduce drawcalls on duplicated trees?

I tried the combine script putting it on an empty game object then adding all the duplicated trees as children but it did not help. I have 500 draw calls and very low fps. I imported the tree as fbx and then dragged it onto the scene then duplicated it. How can I go about this? Here is a pic of the order- alt text

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 Kryptos · Jan 04, 2013 at 01:10 PM 0
Share

Problem is your tree use a Skinned $$anonymous$$esh Renderer. And I guess that your tree model is not low-poly.

Try using a simple $$anonymous$$esh Renderer and/or use the Terrain facility to manage your trees.

avatar image Karsnen_2 · Jan 04, 2013 at 03:18 PM 0
Share

Like $$anonymous$$ryptos says - I just found that Skinned $$anonymous$$esh do not batch. But give a try with the static option. It might help. I am not sure though.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Karsnen_2 · Jan 04, 2013 at 02:42 PM

Like Kryptos said -> Try to use a simple mesh renderer.

I could give you some more options. You problem right now is batching and I am going to forget the poly count on your mesh.

  1. Lets say that you tree is static throughout the game, then try to activate the static button on the top right hand corner of your screenshot. It will batch all similar meshes to produce one draw call.

  2. If you do not want it to be static, then make sure that tree which are similar share the same material.

  3. Make sure that you do use Spotlight or PointLights near the trees.

  4. If you are duplicating i.e. Adding and Removing trees during runtime, then I would actually pool the trees.

  5. When you said that you use a Combine Script, are you combining all the trees into one single mesh (during runtime) or are you just parenting them? For the former, I would not be doing that as engine would also recognize the vertices which are not part of the camera frustum throughout the game. Even though you are combing, you could only do it while the mesh is static. I would just use the Unity's own static option. For the latter, which is parenting - it does not affect drawcalls, it only cleans the hierarchy window.

  6. If none of the above works, then the problem should be with Skin Mesh Renderer.

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

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

10 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

Related Questions

(Unity3.3 standard)How to CombineChildren and keep Dynamic Batching? 0 Answers

Why isn't dynamic batching working? 3 Answers

Dynamically disabling Dynamic Batching on iPhone 2 Answers

Point lights break dynamic batching even when using Unlit 1 Answer

Dynamic batching line renderer 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