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 Ross_S · Mar 18, 2013 at 10:38 AM · iosspriteiphonebatchingatlas

Batching to IOS not working ???

So my game 'appears' to be well optimised. In the Unity player the batching appears to be working - there are only 6 or 7 draw calls ... However when i build to iPhone... the batching is simply not working... i'm losing 20 frames per second just for putting 40 quite small sprites on screen. it's an iphone4 and i'm really sure the problem is not in the update loop or anthing. it's the simple act of rendering a few objects that should be batched that is slowing it down. I do create all my own gameObjects in code. This has never been a problem exporting to Android but this is the first time i've gone Unity to IOS and this has just cropped up right at the end.

Any clues Greatly appreciated!

EDIT

here is the output from the IOS built in profiler

iPhone Unity internal profiler stats: cpu-player> min: 22.6 max: 51.0 avg: 25.6

cpu-ogles-drv> min: 1.0 max: 1.9 avg: 1.1

cpu-present> min: 0.8 max: 5.4 avg: 1.5

frametime> min: 26.9 max: 66.9 avg: 30.8

draw-call #> min: 11 max: 11 avg: 11 | batched: 92

tris #> min: 298 max: 302 avg: 300 | batched: 200

verts #> min: 632 max: 640 avg: 637 | batched: 405

player-detail> physx: 0.4 animation: 0.0 culling 0.0 skinning: 0.0 batching: 1.2 render: 7.4 fixed-update-count: 1 .. 3

mono-scripts> update: 15.5 fixedUpdate: 0.0 coroutines: 0.0

mono-memory> used heap: 5312512 allocated heap: 7921664 max number of collections: 1 collection total duration: 20.3

thanks :)

Comment
Add comment · Show 6
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 Graham-Dunnett ♦♦ · Mar 18, 2013 at 11:06 AM 0
Share

What does the built in profiler say?

avatar image Ross_S · Mar 18, 2013 at 11:55 AM 0
Share

Hi Graham, hmm i don't have PRO IOS ... so the profiler isn't connecting... i think... i have UNITY PRO just not the pro ios...

avatar image Fattie · Mar 18, 2013 at 12:13 PM 0
Share

purely FWIW . not to sound like a broken record but if you use 2DToolkit, which is extremely popular for 2D in Unity, it utterly takes care of everything for you. you get "one draw call" implementation no matter what the platform etc. it's pretty hard to beat.

avatar image Graham-Dunnett ♦♦ · Mar 18, 2013 at 12:35 PM 0
Share

I asked what the built-in profiler says, not the Pro-only profiler. :-)

avatar image Ross_S · Mar 18, 2013 at 01:15 PM 0
Share

ah thanks for the tip... hmm, i'm getting the feeling i was wrong about the batching... i've pasted the output from the profiler in an edit above...

Show more comments

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

Texture atlases on iphone 3 Answers

Same Sprite in multiple sprite atlases breaks dynamic batching 2 Answers

Is it possible to utilize iphone dynamic batching with "traditional" animated sprite techniques? 1 Answer

Unity iOS sdk question 1 Answer

iOS Shader - Emulator vs Device Inconsistency 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