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
2
Question by kalkass · Mar 16, 2017 at 08:34 PM · scenehierarchybatchingtriangles

About batches and triangles

Hi

I have this problem. I'm making a 2d game. All it has are some images grouping together to form entities. No materials, no meshes, no texturing. Only images and text floating around. In one of my two scenes I'm instantiating 15 copies of my main prefab. In the rendering stas window I see ~3k triangles and 40-50 batches. In the other scene, for 33 copies of the same prefab I have ~7k triangles nad 500+ batches! I played around in the editor and I noticed this. In the first scene, the relation between prefabs-batches-triangles is this. With no prefabs the batches are 30. If I add 1 prefab the batches go to 41.(the triangles are increasing normally, ~250 per prefab). But when I add more prefabs the number of batches stays the same! 41 for 1 prefab and 41 for 15 prefabs! In the second scene. the same prefab cost 15 batches each. So, 1 prefab = 15 batches and 10 prefabs = 150 batches! And that is a problem. Of course the prefabs are not thrown just like that in the scene. In both scenes there's a canvas then a hierarchy of objects and layouts and then the prefabs. Maybe somewhere in the hierarchy is the problem. In another experiment, I made an empty scene with only one canvas. When I put some prefabs in, each prefab cost about 15 batches. Then I made some empy objects like this:
Canvas
|-Collection
| |-Rows
| | |-Row1
| | | |-Prefab
| | | |-Prefab
| | |-Row2
| | | |-Prefab
| | | |-Prefab
| | |-Row3
| | | |-Prefab
| | | |-Prefab
No batches reduction. But, when I adjusted the size, position and layout of the objects, all of a sudden, the batches went to a low number and followed the behaviour pattern which my first scene had(no matter how many prefabs, the number of batches stayed the same)

Any explanations? Where should I start looking?

Thank you

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 remali · Mar 17, 2017 at 08:24 PM 1
Share

Great question my friend!!

avatar image remali · Mar 17, 2017 at 08:35 PM 1
Share

I have the same question as you! Please someone answer this!!!

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Callback for when an object is deleted from the scene by the user in EditorMode. 3 Answers

How can I permanently display (`EditorApplication's) current scene name in Editor? 1 Answer

Unloaded scenes continuously keep adding? 1 Answer

Overwrite the inspector window on Scene Asset heading chosen in the hierarchy window 0 Answers

Reload a scene without closing the inspector and hierarchy 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