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 TSSTUDIOS · Aug 17, 2014 at 10:12 PM · meshdrawcallscombinecombinemeshes

Drawcalls vs MeshCombiners

I have a question

Lets say i create a cilinder in game and save it as prefab, then i create a group of cilinder and make their parent an empty game object, should i combine them to create a new mesh and save it as prefab or should i just save the empty game object as prefab.

Thing is when i dont combine to make a new mesh its gonna use more drawcalls which is a no no for mobile gaming, but also if i combine meshes its gonna take more time to load, or am i mistaken.

I'm currently on unity free so no dynamic batching

This is the games series i'm developing

https://play.google.com/store/apps/developer?id=Tiago+Serra+Studios

Thanks in advance

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 DESTRUKTORR · Aug 17, 2014 at 11:03 PM

This really depends on how many cylinders you're making. If it's a LOT (somewhere in the order of 10,000+), then you may want to consider it. Otherwise, dynamically creating meshes in Unity can be a bit messy. You would need to take the vertices, triangles, uv coordinates, and normals of all the individuals, as well as the materials they used, and basically slap them all into a single mesh, and its renderer (respectively).

You can find a pretty good example on the Unity Forums.

If you're not creating that many cylinders, (only a few hundred, max), then I really see no reason to combine the meshes. The game will run a bit slower, sure, but unless the system is incredibly old, it will likely not even be noticeable. Unity is (believe it or not) very good at optimizing a lot of things, and will generally only hiccup if you try to manage memory, manually, by constantly creating and destroying things.

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

23 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

Related Questions

CombineMeshes() Not Working Properly? 0 Answers

Assertion failed on expression: '(int)lastVertex < GetVertexCount()' 1 Answer

CombineMeshes not working on one machine but is on another 1 Answer

Combining meshes clears old mesh 0 Answers

skinned mesh renderer, combine meshes can't see the result, what am I doing wrong/ missing? 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