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 robinking · Sep 28, 2010 at 09:18 AM · iphoneoptimizationlevelbatchingocclusion

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

I'm creating a game for the iPhone where the level is a maze laid out in a grid (think pac man). You'll be in the maze, first person perspective. Given the occlusion culling and static batching on the iPhone, should I make each block in the grid a separate mesh? As I understand it, the batching will make it so the whole level only takes up one draw call (as long as I make a texture atlas) but those blocks outside view will not be rendered, so reducing the triangle count. Am I correct in this? Or should I make the whole level into one mesh? (As I understand it, I should probably do that for a Mac/PC build to reduce draw calls as there is no batching currently in those builds.)

Back to the iPhone - if I keep them separate and create a texture atlas, does it limit my lightmapping options?

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 Eric5h5 · Sep 28, 2010 at 09:25 AM

Unity 3 does have batching for Mac/PC. Ideally you should use objects that are separate enough for occlusion culling to work well, and use static batching. Both of those require Unity Pro. Dynamic batching has more overhead and is limited compared to static batching.

Comment
Add comment · Show 5 · 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 robinking · Sep 28, 2010 at 09:35 AM 0
Share

Great! Thanks. That'll really help if I come to port it to other platforms. Is one object per grid cube separate enough/too separate? And do I need to do anything special to enable static batching, or is it automatic if meshes use the same materials?

avatar image Eric5h5 · Sep 28, 2010 at 11:16 PM 0
Share

@Robin $$anonymous$$ing: One object per grid cube seems O$$anonymous$$, though I'm not sure. You need to mark static objects as static, and enable static batching in the player settings.

avatar image robinking · Sep 29, 2010 at 11:56 AM 0
Share

Right... I've not come across marking objects as static yet. Is that in Unity iPhone? I'm coding so far in Unity Indie 2.6.1... And is it possible to create static objects at runtime, either from prefabs or otherwise?

avatar image Eric5h5 · Sep 29, 2010 at 03:22 PM 0
Share

@Robin $$anonymous$$ing: Actually I was talking about Unity 3. As I mentioned, static batching requires Pro. Dynamic batching (works in Pro and Basic) is in Unity iPhone 1.7, but not Unity 2.6.

avatar image robinking · Sep 29, 2010 at 03:58 PM 0
Share

Cool... Thanks for clearing that up!

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

No one has followed this question yet.

Related Questions

Dynamic batching 6 Answers

Optimizing large numbers of trail renderers 0 Answers

Batching on moving objects[Solved] 1 Answer

How to make common material for CPU optimization? 1 Answer

Why is my game doing 175 SetPass calls and 2319 batches? 2 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