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 MasterLetch · Feb 25, 2013 at 10:29 AM · optimizationbatchingdrawcalls

Batching Nightmare, What affects dynamic Batching!?

so i have a problem, that can't be fully described with words... I have a script that can organize gameobjects into a small "box" uniformly in 3-space and to the orientation of the object its creating, it does this procedurally through code. this script has scroll functions and all sorts.

so heres the problem... in some instances it decides to create objects that don't dynamically batch even tho they should. and sometimes certain shaders batch... and other times they don't... on the same objects. with no way of knowing why this is trouble shooting it has been unbearable.

so this is a list of things i have figured out effect batching in very unexpected ways...

  1. Realtime Shadows - These stealthily unoptimized things can hinder dynamic batching even in objects that are not even in the raycast. use with extreme caution on low end computers

  2. Parenting - even if you think your scales are all uniform and correct, parents with scale will still change way it dynamically batches

  3. Import Settings - sounds strange, though many of these options effect vertex counts in your seemingly small models. esspecially such options like "Split Tangents", "Generate Lightmap uv's"

  4. Transparencies - Something thats also a bit odd, with alot of transparencies you run into problems (like with trees and branches) with distance sorting and other transparency related operations decreasing how much actually batches.

so to help get an answer I have a this Link, to a test scene that better explains what it is that is happening. this scene comes with the procedural code aswell (tho not commented the best, its there for more indepth reference)

I have also seen Dynamic Batching and Instantiating, which seems like a similar issue.

any help at all would be appreciated

Comment
Add comment · Show 3
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 AlucardJay · Feb 25, 2013 at 12:34 PM 0
Share

Refer to the answer by nerophon here : http://answers.unity3d.com/questions/36050/why-isnt-dynamic-batching-working.html . Sorry that's all I have apart from the API : http://docs.unity3d.com/Documentation/$$anonymous$$anual/DrawCallBatching.html . $$anonymous$$ain considerations are : vertex information, instanced materials, using SetTextureOffset, transparency, scaling. Check the information under Dynamic Batching in the Unity docs (the second link)

avatar image MasterLetch · Feb 25, 2013 at 02:06 PM 0
Share

wow to add to the list of things to check for... Post processing effects can add a draw call for every object on the screen... doesn't make much sense, colour correction added 250 draw calls to a scene with 125... watch out for these sneaky buggers :P

avatar image Fattie · Feb 26, 2013 at 07:23 AM 1
Share

"a problem, that can't be fully described with words..." love it ..

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

11 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

Related Questions

Batching on moving objects[Solved] 1 Answer

Drawcalls or Batched, which is more important to performace? 1 Answer

Batching problem. (objects with shared material are not being batched) 2 Answers

Level creation, draw calls, and texturing 3 Answers

Why aren't my particle systems batched? 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