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 .hooligan · Dec 09, 2010 at 06:17 AM · iphonedrawcalls

Draw calls when deploying to iPhone?

I was just checking my games draw calls, and its hovering around 24 - 28 draw calls when it has about 30 - 35 objects on the screen which is the most at the moment. But I intend to have a couple more with projectiles and so on.

I haven't got an apple developer account yet so I cant test the game on an iPhone but I heard a while back that you don't want your draw calls to be more then say 15 - 20 when deploying to the iPhone. Is this correct?

Im using unity pro. I have set dynamic and static batching to true but doesn't change much.

It's a simple 2d game so all the objects are 2 triangle planes.

The stats show are this at its worst. At the moment :)

Draw Calls: 28 batched: 0 Tris:56 Verts:112 Used Textures: 4 - 491.7KB Render Textures: 2 - 1.6MB

I'm not using SpriteManager.

My questions are. Will my draw calls change once its deployed? Do I have to do something else to make use of dynamic and static batching or do those kick in when the fps tanks? Or should I try my luck with sprite manager?

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
Best Answer

Answer by Eric5h5 · Dec 09, 2010 at 08:43 AM

It depends on what you want to target. 1st generation devices can handle rather fewer draw calls than the latest ones because the CPU is quite a bit faster now. There is no one answer.

You have to mark objects as static for static batching to do anything, plus they have to share a material. Dynamic batching works on objects that share a material and are fewer than 300 vertices (supposedly...some people seem to have a lower number; I don't know for sure). It's not something that "kicks in"...it either works or it doesn't.

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 .hooligan · Dec 09, 2010 at 10:03 AM 0
Share

Thanks Eric. That means Dynamic should be working for me. $$anonymous$$y objects have 4 verts and all share the same material.

How do you mark and object as static? For static batching?

I guess I'm not going to know how well it will do until I test it out. I think I might go with Sprite$$anonymous$$anager though. The draw calls will drop heaps.

avatar image Eric5h5 · Dec 09, 2010 at 07:25 PM 0
Share

You mark objects as static by checking the box that says "static", above the tag and layer info. It also seems to depend on the shader used; for example diffuse doesn't batch according to the stats and vertex lit does, but I don't know how accurate the stats actually are.

avatar image
0

Answer by bigdaddio · Dec 29, 2010 at 08:51 AM

Lots of the "Rules of Thumb" seem to be based on pre 3GS hardware. I have apparently broken all the rules people have quoted many times (draw calls, 7k verts etc) and still get over 30fps on 3GS and newer hardware. Personally I ignore pre 3GS hardware, Their numbers are small and getting smaller.

You really would be best served to get signed on with Apple and get an iPod or some such. The older version of the iPod runs as well as a 3GS and the new one is apparently similar to iPhone 4.

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

No one has followed this question yet.

Related Questions

Few questions about optimizing graphic performance for mobile devices. 1 Answer

Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer

Help Please - Unity3D project very slow on XCode-IPhone... 1 Answer

One material Two DrawCalls 1 Answer

What are the implications of re-writing or porting a game to the iPhone? 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