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
0
Question by CPX_Chris · Sep 18, 2015 at 12:32 PM · scalingbatching

Negative Scale and Dynamic Batching

I have 4 copies of a prefab in a scene with just a camera. Unity 5.2.0f3. Camera is perspective, prefab is mesh, material + texture. A (0, 0, 0) B (5, 0, 0) C (0, 0, 10) D (10, 0, 10)

First Question: All 5 of them dynamically batch into a single draw call. If I set any of them to a negative scale on X, the batch is broken. Now, I would like for the negatively scaled asset to also batch, but of more concern to me is that if I set B or C this way, I get not 2 but 3 draw calls. Groups of opaque renderers should not have their batching interrupted like this. Can anyone shed some light on this?

Second Question: If I have more than one of them with negative scale, those ones do not batch. Unity documentation states that multiple objects with non-uniform scale will batch with each other, so even if they don't batch with the non-scaled ones, they should still batch with each other. Can anybody explain why this is the case?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Dave-Carlile · Sep 18, 2015 at 12:35 PM

There are lots of things that can prevent batching. According to the documentation,

Generally, objects should be using the same transform scale.

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 CPX_Chris · Sep 18, 2015 at 08:12 PM 0
Share

I had two very specific questions about the inner workings of dynamic batching, and you linked me to the batching overview page and then quoted it. That doesn't provide any new information on either of my questions. I specifically mentioned in my second question that the objects which aren't batching do have the same transform scale.

avatar image Dave-Carlile CPX_Chris · Sep 19, 2015 at 03:47 AM 0
Share

Well, you know, sometimes things get misread, so have patience. The point was, batching can be finicky and it's easy to miss something.

Searching around it seems like there are issues with negative scales breaking batches, but I wasn't able to find anyone who could say why. Workarounds included reversing the texture or rotating the object and using a positive scale, but those folks were using sprites so that probably isn't a solution for you. $$anonymous$$aybe one of the smart people will chime in.

avatar image
0

Answer by jackerlo · Oct 07, 2018 at 04:39 AM

October 2018 and back to this question, any solvets yet?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Is it possible to mirror a gameobject in shader ? 1 Answer

Should I build my level with few meshes or many meshes on the iPhone? 1 Answer

Batching problem: Poor forest tiles don't batch [fixed but not sure why xD] 1 Answer

Are batching and atlas almost useless ?!!! 2 Answers

Vertex colours - can they improve performance? Do they affect batching? 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